You may need to check the $objservice object for errors (if it has an error property) as well as @ERROR.

You could try disabling UAC and see how you get on.