Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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 ???????????/

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

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
×
×
  • Create New...