Sign in to follow this  
Followers 0
Ghost21

RunAsSet w/ Domain Authorization

5 posts in this topic

Trying to get RunAsSet("user","blahdomain","password",0) to actually use my Networking Administration user /pass for updating file....

tried

RunAsSet("user","blahdomain","password",0)

RunAsSet("user","blahdomain","password",1)

RunAsSet("user","blahdomain","password",2)

RunAsSet("user","blahdomain","password",3)

Any help would be great........

Share this post


Link to post
Share on other sites



Compe on people I know someone uses this command am I missing something for the domain Auth eg. \\ or somethign stupid like that ???????/

Share this post


Link to post
Share on other sites

Trying to get RunAsSet("user","blahdomain","password",0) to actually use my Networking Administration user /pass for updating file....

tried

RunAsSet("user","blahdomain","password",0)

RunAsSet("user","blahdomain","password",1)

RunAsSet("user","blahdomain","password",2)

RunAsSet("user","blahdomain","password",3)

Any help would be great........

Yeee Had the same problem.

the thing is:

RunAsSet() works ONLY with Run() and RunWait()

If you want to use in the same script, FileCopy()... it doesn't work the way you want !

I know... it is a bit trickky !

I simply ran with RunAsSet() on an another script with admin rights, with the FileCopy() in it !!!

Share this post


Link to post
Share on other sites

Yeee Had the same problem.

the thing is:

RunAsSet() works ONLY with Run() and RunWait()

If you want to use in the same script, FileCopy()... it doesn't work the way you want !

I know... it is a bit trickky !

I simply ran with RunAsSet() on an another script with admin rights, with the FileCopy() in it !!!

RunAsSet("user","blahdomain","password",0)

RunWait("netsh interface ip set address local source=dhcp", @WindowsDir,@SW_HIDE)

sleep(1000)

RunWait("netsh interface ip set dns ""Local Area Connection"" dhcp",@WindowsDir,@SW_HIDE)

sleep(1000)

RunWait("netsh interface ip delete wins ""Local Area Connection"" all",@WindowsDir,@SW_HIDE)

RunAsSet()

I can't get it to run off a remote machine that only has Power User PErmissions ???????????/

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

RunAsSet("user","blahdomain","password",0)

RunWait("netsh interface ip set address local source=dhcp", @WindowsDir,@SW_HIDE)

sleep(1000)

RunWait("netsh interface ip set dns ""Local Area Connection"" dhcp",@WindowsDir,@SW_HIDE)

sleep(1000)

RunWait("netsh interface ip delete wins ""Local Area Connection"" all",@WindowsDir,@SW_HIDE)

RunAsSet()

I can't get it to run off a remote machine that only has Power User PErmissions ???????????/

RunWait(@ComSpec & " /c netsh interface ip set address "&chr(34)& "Local Area Connection" & chr(34)&" dhcp", "", @SW_HIDE)

I used to use netsh like that !

try like that

SetIp in my signature !

EDIT: and I do not think you need admin for that !

Edited by cramaboule

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