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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird script failure

Status
Not open for further replies.

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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top