Ghost21 Posted August 20, 2007 Posted August 20, 2007 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........
Ghost21 Posted August 20, 2007 Author Posted August 20, 2007 Compe on people I know someone uses this command am I missing something for the domain Auth eg. \\ or somethign stupid like that ???????/
cramaboule Posted August 20, 2007 Posted August 20, 2007 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 !!! My Autoit programs: MAC Address - - Delete Temp Files - - Ping Test - - Play Video with VLC full screen dual monitors - - Set IP - - Pics Converter - - AutoUpdater - - CPU Usage - - Ending Script Nicely - - GDI+ GUI crossfades (slide transitions) - - Beamer - - Search and Search in Files - - Silent Ninite Others: Export Icons into Dll - - My website
Ghost21 Posted August 20, 2007 Author Posted August 20, 2007 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 ???????????/
cramaboule Posted August 20, 2007 Posted August 20, 2007 (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 August 20, 2007 by cramaboule My Autoit programs: MAC Address - - Delete Temp Files - - Ping Test - - Play Video with VLC full screen dual monitors - - Set IP - - Pics Converter - - AutoUpdater - - CPU Usage - - Ending Script Nicely - - GDI+ GUI crossfades (slide transitions) - - Beamer - - Search and Search in Files - - Silent Ninite Others: Export Icons into Dll - - My website
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now