Jump to content

RunAsSet w/ Domain Authorization


Recommended Posts

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........

Link to comment
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 !!!

Link to comment
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 ???????????/

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...