Hello,
I run a script during the unattended install of my XP clients which moves them out of the default Computers OU in AD, into another OU. To attach to the WMI (and ultimately get the computer name), I use the following line;
This has worked fine for months, but yesterday, I decided to slipstream SP3 into my build folder using nLite and now this line throws the following error;
Error: Invalid Syntax
Code: 800401E4
I'm assuming some object has changed between SP2 and SP3 which means I can't connect to the WMI in this way, but does anybody know what I can do to get around it?
Many thanks,
Paul
I run a script during the unattended install of my XP clients which moves them out of the default Computers OU in AD, into another OU. To attach to the WMI (and ultimately get the computer name), I use the following line;
Code:
Set oWMI = GetObject("winmgmts:\\.\root\cimv2")
This has worked fine for months, but yesterday, I decided to slipstream SP3 into my build folder using nLite and now this line throws the following error;
Error: Invalid Syntax
Code: 800401E4
I'm assuming some object has changed between SP2 and SP3 which means I can't connect to the WMI in this way, but does anybody know what I can do to get around it?
Many thanks,
Paul