Sign in to follow this  
Followers 0
pmt82

RunAsSet - Credentials not applying

2 posts in this topic

Hi,

I have been playing around with this program on and off for the past week. I'm using it because I was looking for a solution to run program installs that could be launched by login scripts etc. with administrator credentials. This seems to fit the bill...

Problem:

Below is the script I have created:

if Not FileExists("C:\Program Files\MasterSpec LINK\licence.txt")Then

RunAsSet("login","domain","password",2)

RunWait("\\serverch6\NETLOGON\Installs\MSsetup.exe","\\serverch6\NETLOGON\Installs")

;sleep("4000")

;Send("{ENTER}")

;Sleep("2000")

;Send("{ENTER}")

;Sleep("2000")

;Send("{ENTER}")

;WinWaitActive("Automated Program Install","MasterSpec install completed")

;Send("{ENTER}")

RunAsSet()

EndIf

Exit

The issue is the exe does not launch with administrator privileges and will show an error during install regarding to permissions. I have done some searching and looked at a few other examples and cannot see where this is going wrong, I have tried to keep it as simple as possible yet it still is not working correctly. Any help would be much appreciated :)

Share this post


Link to post
Share on other sites



Bump... any ideas?

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  
Followers 0