Rollo,

This should work as well, and allows you to select the computer you want to use in case you want to run it as an Admin script.



$computer=@WKSTA
$systemset  = GetObject("winmgmts:" + "{impersonationLevel=impersonate}!\\" + $computer + "\root\cimv2")



[ 03. March 2003, 20:28: Message edited by: NTDOC ]