Jump to content

Sardius

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

About Sardius

Profile Information

  • OS
    XP Pro x86

Sardius's Achievements

0

Reputation

  1. Fantastic! It doesn't solve my problem but that's some really interesting information.
  2. Hi all, I have a VB script that I'm attempting to run at T-9 (via SetupParams in WINNT.SIF). I've simplified the script for readability: 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 script works just fine if run manually as a user, but it fails when run at T-9. The reason for failure is "Object required" (0x1A8). After a bit of debugging, it seems that "Obj" does not return an object (I'm not really sure what it returns...but it certainly doesn't work). After browsing these forums, I saw comments that WMI wasn't available at T-12/T-13. Is this also the case for T-9? As a workaround, I can probably run the script via RunOnceEx...but it bugs me that I can't get this to work at T-9. Any other thoughts or clever tricks?
×
×
  • Create New...