Sign in to follow this  
Followers 0
PerryRaptor

Runasset

5 posts in this topic

I'm pretty sure the answer is right under my nose, but I just can't see it.

$DomainUserName = "MyNetwork\TheBoss"

$UserPassword = "1234567890"

RunAsSet("DomainUserName", @computername, "UserPassword")

RunWait(..........)

The RunWait line fails, telling me that username and/or password is bad. I'm looking for a way to use my Domain Group credentials in lieu of the remote computer's local admin account to run programs. Is this forbidden? Can I not use the "\" in the detail?

Any Ideas Welcome.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You mean $DomainUserName, not the string literal "DomainUserName", I believe.

Edited by Valik

Share this post


Link to post
Share on other sites

Yes, you are correct...It is late for me and not at work right now. I'm wondering if the"\" in the construct is being implemented as a math divide command. I don't have a Win2K - XP setup at home to work through this. I was hoping to hit some folks who have found the solution.

RunAsSet($DomainUserName, @computername, $UserPassword)

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Think you also need to split up the domain and username like:

$DomainUserName = "TheBoss"

$DomainName = "MyNetwork"

$UserPassword = "1234567890"

RunAsSet($DomainUserName, $DomainName, $UserPassword)

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Looking with a fresh mind I discovered that the RunAsSet() options are specific.

RunAsSet($AccountName, $AuthenticateWith, $Password)

$AuthenticateWith can be a local account or a network account. A network account can be a member of the network administrator group.

Using a network group administrator account it in this manner, At user loggon the script runs. But only during the loggon and cannot be ran manually.

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