Jump to content
Sign in to follow this  
Alan D. Ayers

RunAsSet

Recommended Posts

Alan D. Ayers

K I have two processes that use RunAsSet.

One works fine running from my computer

The other same userid, password etc running from my computer gives me access denied

The second script is just a msgbox saying hello.

Anyone have any idea what is happening here

Share this post


Link to post
Share on other sites
Alan D. Ayers

RunAsSet ($asAdminIDs, @LogonDomain, $AdminPassword)

$sRunCMD = "Test.exe"

$val = RunWait($sRunCMD,@ScriptDir,@SW_MAXIMIZE)

msgbox(0,"","done")

;

; Clean up and leave

;

RunAsSet()

Share this post


Link to post
Share on other sites
Alan D. Ayers

By the looks of it it must have something to do with the share I am running on... However I am looking at the security for all the folders and the files and Everyone has full control. It is stumping me

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×