PerryRaptor 1 Posted March 31, 2004 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
Valik 478 Posted March 31, 2004 (edited) You mean $DomainUserName, not the string literal "DomainUserName", I believe. Edited March 31, 2004 by Valik Share this post Link to post Share on other sites
PerryRaptor 1 Posted March 31, 2004 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
Jos 2,164 Posted March 31, 2004 (edited) Think you also need to split up the domain and username like: $DomainUserName = "TheBoss" $DomainName = "MyNetwork" $UserPassword = "1234567890" RunAsSet($DomainUserName, $DomainName, $UserPassword) Edited March 31, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Share this post Link to post Share on other sites
PerryRaptor 1 Posted April 3, 2004 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