Sardius
Programmer
- Jun 17, 2011
- 1
I have a script (modified from Microsoft code) to query WPA on an XP installation. The script generally works well.
However, the script fails in an unattended install of XP, executing from WINNT.SIF [SetupParams] at T-9 of installation. The chunk of script in error is as follows:
FOR EACH Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("win32_WindowsProductActivation")
WScript.Echo Obj.ProductID
IF (Err <> 0) THEN
WScript.Echo Err.Description, ": 0x" & Hex(Err.Number)
END IF
NEXT
The failure occurs due to an "Object Required" error (0x1A8). Like I said, the script works fine when run as a normal user.
Anyone have any ideas how I can debug my unattended install?
However, the script fails in an unattended install of XP, executing from WINNT.SIF [SetupParams] at T-9 of installation. The chunk of script in error is as follows:
FOR EACH Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf("win32_WindowsProductActivation")
WScript.Echo Obj.ProductID
IF (Err <> 0) THEN
WScript.Echo Err.Description, ": 0x" & Hex(Err.Number)
END IF
NEXT
The failure occurs due to an "Object Required" error (0x1A8). Like I said, the script works fine when run as a normal user.
Anyone have any ideas how I can debug my unattended install?