Running commands within runas in admin Hardware and Software Microsoft Windows by Siberian mklink can be run from any command path, therefore I'm trying to run mklink though runas by means of runas /noprofile /users:AdminUser mklink but I can get error that The system cannot find the file specified ? How can I tell runas to run the command mklink as I would when running mklink from any command prompt ? Re: Running commands within runas in admin Hardware and Software Microsoft Windows by rproffitt If it can't find runas, then why not use the full path. This might vary from PC to PC but here it was C:\Windows\System32\runas.exe If it can't find mklink then that path could be supplied. Re: Running commands within runas in admin Hardware and Software Microsoft Windows by milesb Follow this link for a good explanation and examples of setting up Runas: http://www.howtogeek.com/124087/how-to-create-a-shortcut-that-lets-a-standard-user-run-an-application-as-administrator/ Running a Root/Administrator Console from any Folder Hardware and Software Microsoft Windows by WolfPack …" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_root\command] @="runas /user:[COLOR=Red]COMPUTER_NAME[/COLOR]\\[COLOR=Red]AdministratorName[/COLOR] \"…" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd_root\command] @="runas /user:[COLOR=Red]COMPUTER_NAME[/COLOR]\\[COLOR=Red]AdministratorName[/COLOR] \"… Running a Root/Administrator Console from any Folder Hardware and Software Microsoft Windows by WolfPack … Administrator. Of course there is the Runas menu for executables, but you don'…HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_root\command] @="runas /user:COMPUTER_NAME\\AdministratorName \"Cmd.exe /k…\SOFTWARE\Classes\Drive\shell\cmd_root\command] @="runas /user:COMPUTER_NAME\\AdministratorName \"Cmd.exe /k… EXE to run php from Win Server 2008 Programming Web Development by humanerror24 …3. assigned to users (it does not start there) exec('runas /user:hostname\Adam D:\cod2\cod2start.bat | sanur Adampass'); … not connect to .. 5. cod2start.BAT run this file runas /profile /env /user:hostname\adam"D:\cod2\CoD2MP_s…run the game not at all ... nothing happens .. exec('runas /profile /env /user:hostname\adam"D:\cod2\CoD2MP_s.… Re: Running a Root/Administrator Console from any Folder Hardware and Software Microsoft Windows by WolfPack …" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\cmd_root\command] @="runas /user:[COLOR=Red]COMPUTER_NAME[/COLOR]\\[COLOR=Red]AdministratorName[/COLOR] \"…" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\cmd_root\command] @="runas /user:[COLOR=Red]COMPUTER_NAME[/COLOR]\\[COLOR=Red]AdministratorName[/COLOR] \"… Re: Run as administrator ?! Hardware and Software Microsoft Windows by skatamatic …comp tech) showed me how to use runas to try and run the specific commands as… the code: @echo off echo Starting Aero runas /laptop-pc\kyle c:\windows\system32\dwm.exe… timeout /T 2 /nobreak runas /laptop-pc\kyle "net stop \"…;uxsms\"" runas /laptop-pc\kyle "net start \"… Re: Problems with takeown takeover Hardware and Software Microsoft Windows by mikegrace … 2 keys you suggested Key Name: HKEY_CLASSES_ROOT\*\shell\runas Key Name: HKEY_CLASSES_ROOT\*\shell\runas\command and I set VLC as the default…, at the moment they are still there). HKEY_CLASSES_ROOT\Directory\shell\runas\command There are 2 lines both saying cmd.exe /c… Re: Using PHP to run an executable Programming Web Development by cereal …box, unfortunately I cannot test and I'm realizing that runas never accepts pipes or redirections (with the pro edition,…. If the user that you have to call through `runas` is static, then you could change the apache user …privileges. At that point you should be able to avoid `runas`. Anyway, while waiting for more appropriate support from windows … Problems with takeown takeover Hardware and Software Microsoft Windows by mikegrace … in the register I have found the following: HKEY_CLASSES_ROOT\*\shell\runas\command There are 2 lines both saying cmd.exe /c…” && icacls “%1” /grant administrators:F HKEY_CLASSES_ROOT\Directory\shell\runas\command There are 2 lines both saying cmd.exe /c… Re: Problems with takeown takeover Hardware and Software Microsoft Windows by Suspishio … for the media files. Key Name: HKEY_CLASSES_ROOT\*\shell\runas Key Name: HKEY_CLASSES_ROOT\*\shell\runas\command The .avi key should have been further… Re: Registry manipulation Programming Software Development by RenanLazarotto …) Handles MyBase.Load subregstr = regstr.OpenSubKey("*\shell\runas", True) subregstr.CreateSubKey("runas") subregstr.SetValue("", "Value… End Class[/CODE] The new value should be inside the 'runas' sub key, but it is not. What I did wrong… IE randomly popping up & search engine ads Hardware and Software Information Security by KLL0203 …:\Program Files (x86)\Dell DataSafe Local Backup\Components\DSUpdate" /RUNAS "C:\Program Files (x86)\Dell DataSafe Local Backup\Components…:\Program Files (x86)\Dell DataSafe Local Backup\Components\DSUpdate" /RUNAS "C:\Program Files (x86)\Dell DataSafe Local Backup\Components… Re: IE randomly popping up & search engine ads Hardware and Software Information Security by KLL0203 …:\Program Files (x86)\Dell DataSafe Local Backup\Components\DSUpdate" /RUNAS "C:\Program Files (x86)\Dell DataSafe Local Backup\Components…:\Program Files (x86)\Dell DataSafe Local Backup\Components\DSUpdate" /RUNAS "C:\Program Files (x86)\Dell DataSafe Local Backup\Components… C# to VB.NET - Not changing Wallpaer Style Programming Software Development by Cronicle8 …proc.StartInfo.UseShellExecute = true; proc.StartInfo.Verb = "runas"; proc.Start(); proc.WaitForExit(); if (proc.ExitCode != … proc.StartInfo.UseShellExecute = True proc.StartInfo.Verb = "runas" proc.Start() proc.WaitForExit() If proc.ExitCode =… Using PHP to run an executable Programming Web Development by Jamblaster … the closest I have come is with this: echo exec('runas /user:<Computer>\<User> "notepad.exe… supposed to be able to fill in passwords for the runas call, but I'm not sure how to call it… Re: Using PHP to run an executable Programming Web Development by Jamblaster … version (Windows 7 Home) doesn't allow piping values into runas. So, my question is the same as before still. One… cannot be accessed for some reason: //$results = array(); //$results = exec('runas /user:Windows7-PC\James "notepad.exe"'); $results = exec… Re: Run Multiple Skype Programming Software Development by Comatose …("Enter The Name") Shell(windir & "\system32\RUNAS.exe /profile /user:" & Uname & " /savecred C…;Enter The Name") wsh.run windir & "\system32\RUNAS.exe /profile /user:" & Uname & " /savecred C… Re: Registry manipulation Programming Software Development by RenanLazarotto …("*\shell", True) subregstr.CreateSubKey("runas") subregstr = regstr.OpenSubKey("*\shell\runas", True) subregstr.SetValue("", "… Re: Using PHP to run an executable Programming Web Development by cereal Try with a pipe: exec('echo "password" | runas /user:<Computer>\User "notepad.exe"'); *Reference: [http://technet.microsoft.com/en-us/library/bb490982(en-us).aspx](http://technet.microsoft.com/en-us/library/bb490982(en-us).aspx)* create shortcut to run as a different user Hardware and Software Microsoft Windows by paradox814 … the shortcut I even created a shortcut to the command runas usign the /savecred options, but that requires you to enter… Re: create shortcut to run as a different user Hardware and Software Microsoft Windows by tayspen … for me. Perhaps that is the same thing as [quote] runas usign the /savecred options [/quote] But, I am not sure… Re: create shortcut to run as a different user Hardware and Software Microsoft Windows by paradox814 … do that, that's why I posted the question. The runas option at least will save the password for the entire… Re: create shortcut to run as a different user Hardware and Software Microsoft Windows by ¤| battousai |¤ … drivers load as the admin user, so using the cmd runas or something.:p Re: create shortcut to run as a different user Hardware and Software Microsoft Windows by jwnaron got that RunAs program in an EXE format? Re: create shortcut to run as a different user Hardware and Software Microsoft Windows by jwnaron Got that RunAs program as an EXE? I don't have VB6 installed Allow Secondary Logon But Deny Interactive Logon Hardware and Software Microsoft Windows by Gantlett … As..." feature. The error I receive is this: [code]RUNAS ERROR: Unable to run - Microsoft Visual SourceSafe 6.0 1385… system() help Programming Software Development by vs49688 …; and ||, but the bugger wont work. [code] #define runasc "runas /profile /user:tsc\\staffuser" system( runasc programc );[/code] programc… Re: system() help Programming Software Development by vijayan121 [CODE]std::string runasc "runas /profile /user:tsc\\staffuser" ; system( ( runasc + " " + programc ).c_str() ) ;[/CODE]