Hi,

you can use following code to create groups on PCs

code:
  

;Create Group
$oComputer=GetObject("WinNT://Computername,computer") ;Replace the computername with your real pc name
$oGroup=$oComputer.Create("group","Groupname")
$oGroup.Put("grouptype",4) ;2=global(in domain) and 4=lokal
$oGroup.setinfo

;Add Users

$oGroup.add("WinNT://Domain/Username")


;show group members

for each $e in $oGroup.members
? $e.name
next


I hope it helps

_________________________
Greetings,

Michael