Hi,
I only posted the code that I believe is the problem. I have been running the same code prior to locking down the user rights (previously we only used Admin user).
The only "new" code regarding user rights are the
Local $iReturn = RunAsWait($sUsername, @ComputerName, $sPassword, 2, '"' & $filesyncprog & '"' & " " & $filesyncbatchprog, "", @SW_HIDE)
As well as new variables for username and password.
JLogan3o13: It always return 0, but it does not start the program
Old code:
Local $iReturn = ShellExecuteWait ( $filesyncprog, $filesyncbatchprog )
Old code works fine, and the new code works fine on my laptop (runs as admin), but not on the computer that runs as a User.