Thread: GetObject Trap
View Single Post
  #1 (permalink)  
Old November 19th, 2004, 08:09 AM
bostek bostek is offline
Authorized User
 
Join Date: Jul 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default GetObject Trap

Set oReg=GetObject("winmgmts:{impersonationLevel=imper sonate}!\\" & _
            ComputerName & "\root\default:StdRegProv")

statement somehow traps itself and does not return any value (scrpit stops working - freezes).

There are few computers among 6000 comps in the corp. This is just cut-out of the script which is working fine untill this few computers are on (I think because of platform NT 4 which doesn not support automatition objects).

I'm asking: how to make somekind of thread or timer which runs independent from other script and skips the iteration when automatition object does not respond in timely fashion (let's say 10 sec).

I'm already pinging the computer and that works fine the problem is that I cannot get automatition object


Thanx in advance
__________________
regards
Reply With Quote