Quote:

Quote:

what value are you giving $computer




$computer = @WKSTA




I'm a dumbass...

$UserNames = WMIQuery('UserName','Win32_ComputerSystem',$Computer)
for each ....
_________________________
How to ask questions the smart way <-----------> Before you ask