quote:
The script was working now, BUT i need to run it in workstation local administrator context. So i rewrote it to use alternate credentials, but it don't function at all
sounds like you run the script as User A but try to authenticate against the same computer as User B in order to gain local admin rights.

See also the FnWMIAuthenticate() UDF and the 'How to install applications as an admin' FAQ in the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.