[Confused]
I got it working with user system I changed the line. from this
code:
 $systemset = GetObject("winmgmts:{impersonationLevel=impersonate}!//@WKSTA") 

to this
code:
 $systemset = GetObject("winmgmts:\\.") 

I also dimmed the vars this all seemed to fix it

[ 03. March 2003, 15:34: Message edited by: rollo ]