Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMI - slows Windows XP boot

Status
Not open for further replies.

mizzy

IS-IT--Management
Jun 28, 2001
277
AU
Hi everyone

We use AD here on Windows 2003 DC's totally patched.
All our workstations are XP totally patched.

I use a computer GPO to install antivirus software (if it is not already installed). I use the following vb script to do this

' * Set the current parameter with value of SCS Installation
Current_SCS = """{0698cecb-9072-47b1-aea1-94ca350989b8}"""

' * Find Out version installed to this computer

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Product where IdentifyingNumber =" & Current_SCS ,,48)

' * If latest version of scsc installed then quit
For Each objItem in colItems

' * Correct version installed quit
wscript.quit

next

Otherwise continue and install Symantec AV
etc etc etc


When I disable this GPO (calling vbscript above) the boot up process speeds up dramatically (when enabled the boot up can take 5-10 minutes, when disabled 30 seconds. By boot up I mean the time it takes from powering on to the moment I see the Ctrl+Alt+Del screen)
Can someone tell me why the piece of code above is slowing things down. Maybe perhaps doing this in a GPO is daft, I'd appreciate if someone could advise.

Many many thanks
 
This looks like a VBScript question, rather than VB6. Check out faq222-2244 for forum usage guidelines then repost this in forum329

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top