i think you have some type of syntax error going on.

this line is the problem.

$Computer=GetObject("WinNT://$Domain/$ComputerName,computer")

what is happening is the variable $computer is not being assigned to a com object, so when you try $computer.create you get an error.

change that line to this.

$Computer=GetObject("WinNT://$Domain/$ComputerName","computer")

And always check to make sure that the com object was loaded right.

code:

if valtype($computer) <> 9
? "warning!! unable to load COM object!!"
exit(1)
endif

Bryce

[ 28 February 2002: Message edited by: Bryce ]