bestsmr 0 Posted September 25, 2011 Hello I tried this code to run an application as administrator , but it failed . can someone correct my code ????????. ************ RunAs ( "administrator", @ComputerName , "password", 0, "C:\windows\notepad.exe" ) ************ Share this post Link to post Share on other sites
Ramzes 1 Posted September 25, 2011 Are you sure your password to Administrator is "password"? Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font] Share this post Link to post Share on other sites
jazzyjeff 5 Posted September 25, 2011 What OS are you using? Share this post Link to post Share on other sites
bestsmr 0 Posted September 25, 2011 Ramzes : the pasword is "123456" and I write it in position "Password"jazzyjeff : my Operating System is "microsoft windows 7" I am waiting for help.............. Share this post Link to post Share on other sites
bestsmr 0 Posted September 26, 2011 why ther is no one help me ??????????????? I am waiting................................. ..................................... .................................... Share this post Link to post Share on other sites
MrVietA2 0 Posted September 26, 2011 Run("Notepad") , why you don't select it ? You can R.Click -> Run as administrator or add "#RequireAdmin" to your script . I hope it work Share this post Link to post Share on other sites
bestsmr 0 Posted September 26, 2011 thanks MrVietA2 really it is what I was searching for Share this post Link to post Share on other sites