"If @error=0" would be the correct coding for verifying a success of GetObject.

Have you broken down your script to verify you are getting the ADSI computer object?
_________________________
Home page: http://www.kixhelp.com/hb/