To access remote computer just change the '.' in line 9 to computer name without slashs ('\'), like my $Machine = "wks", I've test with success on my enviroment. But remeber that WMI must be installed on remote machine. WMI is installed by default just for Win2K or later.
Sao Paulo - Brazil