you cannot get computer OU info from the ingroup function.

you can do:
code:
	$Computers = GetObject($LDAPofOU)
For each $Item in $computers
$cn=$Item.name
$name=right($cn, len($cn)-3)
next

or wrap this in a function...
_________________________
How to ask questions the smart way <-----------> Before you ask