130 Part III: Connect Server and Additional Privileges
the variable strAuth. Because I am using Kerberos in the script, I can also use a UPN, as is
shown in the strUsr variable. If you do not use a UPN, it is perfectly acceptable to use the
domain\username form of supplying credentials.
W32DiskDriveUseKerberos.vbs
wmiNS = "\root\cimv2"
wmiQuery = "Select * from win32_DiskDrive"
strUsr ="londonadmin@nwtraders.msft"'Blank for current security. Domain\Username
strPWD = "P@ssw0rd"'Blank for current security.
strLocl = "MS_409" 'US English. Can leave blank for current language
strAuth = "kerberos:acapulco"'if specify domain in strUsr this must be blank
iFlag = "0" 'only two values allowed here: 0 (wait for connection) 128 (wait max two ...