You would have to test this but you may be able to use the WinNT:// provider to set the PrimaryGroupID on the computer account and then check it the same way.

code:
$CompAcct = GetObject("WinNT://DomainName/CompName1$$,user")
$PrimaryGrpID = $compAcct.Get("PrimaryGroupID")



[ 10. October 2003, 01:13: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/