[wpkg-users] cpau vs. 2 WPKGs for machine and local AD logon scripts

To... Bi.... totalbillig at gmx.de
Sat Sep 8 10:36:47 CEST 2007


it use AutoIt to solve this problem.

There ist a command in AutoIt where you can run programs with other 
users rights.


So you can write an AutoIt-Script (and compile it into a exe-File) which 
runs the wpkg-script with higher rights.


RunAsSet("<user>", "<domain>", "<password>")
RunWait(@ComSpec & " /c " & @ScriptDir & "\wpkg.cmd", at ScriptDir)

And this script 
this executable will be run as logon script.

I hope this will solve your problem.

Best regards


Tomasz Chmielewski schrieb:
> Peter Hartmann schrieb:
>> I have packages that are profile specific.  Therefore I'd really like
>> to run wpkg from AD when the user logs in rather than as  machine
>> policy.   But when non-administrators log in they get many errors
>> about installers failing due to insufficient rights.  I've heard that
>> some people use cpau. 
> Search for Active Directory on WPKG website.
> With AD, it's possible to start a custom script (like a .bat containing 
> "cscript ...\wpkg.js ...") when the machine starts, shuts down, and I 
> think there were options to run the script when the user logs in, too 
> (with SYSTEM privileges).

More information about the wpkg-users mailing list