Jooel,

I have tried to run your code as you wrote it (with the exception of replacing $computername with and actual computer name) and I get an error on the second line.
Code:
$Dsks = GetObject("winmgmts://$computername").ExecQuery("select * from Win32_DiskDrive")  



The error is: Error: unexpected command!

What am I doing wrong? Kix 4.21 if it matters.