code:
$objWshNetwork=CreateObject("WScript.Network")
$objWshShell=CreateObject("WScript.Shell")
$objADSysInfo = CreateObject("ADSystemInfo")
$strComputerName = $objWshNetwork.ComputerName
$strComputerDN = $objADSysInfo.computername

$objGroup=GetObject("LDAP://CN=GroupName,OU=GroupOU,DC=Domain,DC=com")

If $objGroup.IsMember("LDAP://"+$strComputerDN)
run "rundll32 printui.dll,PrintUIEntry /ga /c \\$strComputerName"+" /n <\\printserver\sharedprintername>"
EndIf

something like that...

[ 31 July 2002, 21:18: Message edited by: Lonkero ]
_________________________
!

download KiXnet