Your Ad Here

Calendar

January 2012
SunMonTueWedThuFriSat
 << < > >>
1234567
891011121314
15161718192021
22232425262728
293031    

Announce

Who's Online?

Member: 0
Visitor: 1

rss Syndication

Archives

Anything u Want

28 May 2008 
Set objNewOU = GetObject("LDAP://OU=Finance,DC=fabrikam,DC=com")

Set objMoveComputer = objNewOU.MoveHere _
("LDAP://CN=atl-pro-03,CN=Computers,DC=fabrikam,DC=com", "CN=atl-pro-03")


harvey_kumar · 104 views · 0 comments
28 May 2008 
On Error Resume Next

Set objComputer = GetObject _
("LDAP://CN=atl-dc-01,CN=Computers,DC=fabrikam,DC=com")

objProperty = objComputer.Get("Location")
If IsNull(objProperty) Then
Wscript.Echo "The location has not been set."
Else
Wscr


harvey_kumar · 99 views · 0 comments
27 May 2008 
Set objRootDSE = GetObject("LDAP://rootDSE")

Set objSchema = GetObject _
("LDAP://" & objRootDSE.Get("schemaNamingContext"))
strSchemaMaster = objSchema.Get("fSMORoleOwner")
Set objNtds = GetObject("LDAP://" & strSchemaMaster)
Set objCompute


harvey_kumar · 109 views · 0 comments
27 May 2008 
Const ADS_SCOPE_SUBTREE = 2

Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"

Set objCOmmand.ActiveConnecti


harvey_kumar · 102 views · 0 comments
27 May 2008 
Const JOIN_DOMAIN = 1
Const ACCT_CREATE = 2
Const ACCT_DELETE = 4
Const WIN9X_UPGRADE = 16
Const DOMAIN_JOIN_IF_JOINED = 32
Const JOIN_UNSECURE = 64
Const MACHINE_PASSWORD_PASSED = 128
Const DEFERRED_SPN_SET = 256
Const INSTALL_INVOCATION = 262144


harvey_kumar · 106 views · 0 comments
27 May 2008 
The VBScript Code to disable a Global Catalog Server
strComputer = "atl-dc-01"

Const NTDSDSA_OPT_IS_GC = 1

Set objRootDSE = GetObject("LDAP://" & strComputer & "/rootDSE")
strDsServiceDN = objRootDSE.Get("dsServiceName")
Set objDsRoot = GetObj


harvey_kumar · 102 views · 0 comments
27 May 2008 
strComputer = "atl-pro-040"

set objComputer = GetObject("LDAP://CN=" & strComputer & _
",CN=Computers,DC=fabrikam,DC=com")
objComputer.DeleteObject (0)



harvey_kumar · 97 views · 0 comments
27 May 2008 
strComputer = "atl-pro-002"
strComputerUser = "fabrikam\lewjudy"

Const ADS_UF_PASSWD_NOTREQD = &h0020
Const ADS_UF_WORKSTATION_TRUST_ACCOUNT = &h1000
Const ADS_ACETYPE_ACCESS_ALLOWED = &h0
Const ADS_ACETYPE_ACCESS_ALLOWED_OBJECT = &h5
Const ADS_F


harvey_kumar · 87 views · 0 comments
17 May 2008 
On Error Resume Next

sDomain = Array("dc1","dc2","dc3")

UserID = InputBox("Please Enter User Name","User Name")

if UserID ="" then wscript.quit


For iCount = lbound(sDomain) To ubound(sDomain)
set UserS = GetObject("WinNT://" & sDomain(


harvey_kumar · 117 views · 0 comments
17 May 2008 
On Error Resume Next

Const HKEY_CURRENT_USER = &H80000001

strComputer = "."
Set objReg = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}\\" & strComputer & _
"\root\default:StdRegProv")

strKeyPath = "Software\Microsoft\


harvey_kumar · 113 views · 0 comments
17 May 2008 
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name = 'MSSQLServer'")

If


harvey_kumar · 110 views · 0 comments
17 May 2008 
Set objComputer = CreateObject("Shell.LocalMachine")

Wscript.Echo "Computer name: " & objComputer.MachineName
Wscript.Echo "Shutdown allowed: " & objComputer.IsShutdownAllowed
Wscript.Echo "Friendly UI enabled: " & objComputer.IsFriendlyUIEnabled
Ws


harvey_kumar · 132 views · 0 comments
15 May 2008 
strSiteRDN = "cn=Ga-Atl-Sales"
strSiteLinkRDN = "cn=DEFAULTIPSITELINK"
strSiteLinkType = "IP"

Const ADS_PROPERTY_APPEND = 3

Set objRootDSE = GetObject("LDAP://RootDSE")
strConfigurationNC = objRootDSE.Get("configurat


harvey_kumar · 142 views · 1 comment
15 May 2008 
On Error Resume Next

Set objContainer = GetObject _
("LDAP://ou=Sales,dc=NA,dc=fabrikam,dc=com")

strExistingGPLink = objContainer.Get("gPLink")

strGPODisplayName = "Sales Policy"
strGPOLinkOptions = 2
strNewGPLink = "[" & GetGPOADsPath


harvey_kumar · 172 views · 0 comments
15 May 2008 
Thoughts claim our attention incessantly, and waste our time and energy on unimportant and useless matters. They actually rule our life. We have become so used to this slavery, that we take it for granted, and have become unconscious of this habit, except


harvey_kumar · 111 views · 0 comments
15 May 2008 
Mind is a bundle of habits. Bad habits and prejudices hidden in one's nature will necessarily be brought to the surface of the mind when the proper opportunity comes. If you change the habits, you can also change your character. You sow an act; you reap a


harvey_kumar · 107 views · 0 comments
15 May 2008 
Mind is the subtle form of this physical body. The physical body is the outward manifestation of the mind. So when the mind is rough, the body is rough too. As a man of rough appearance generally cannot invoke love and mercy of others, so a rough-minded m


harvey_kumar · 130 views · 0 comments
15 May 2008 
/* Configuring Trust Relationship Properties */

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\MicrosoftActiveDirectory")

Set colTrustList = objWMIService


harvey_kumar · 47 views · 0 comments
15 May 2008 
The Following code creates sample users to a security group
We use this code to add bulk users to a security group
the code is as follows


Set objRootDSE = GetObject("LDAP://rootDSE")
Set objContainer = GetObject("LDAP://cn=Users," & _
objRoo


harvey_kumar · 49 views · 0 comments
09 May 2008 
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery("Select * from Win32_CacheMemory")



1, 2  Next page