• Home
  • About 404TS
  • Contact

404 Tech Support

Where IT Help is Found

  • Articles
    • Code
    • Entertainment
    • Going Green
    • Hardware, Gadgets, and Products
    • Management
    • Network
    • News
    • Operating Systems
    • Security and Privacy
    • Software
    • System Administration
    • Talking Points
    • Tech Solutions
    • Web
    • Webmaster
  • Reviews
  • Media
    • Infographics
    • Videos
  • Tech Events
  • Tools
    • How do I find my IP address?
    • Browser and plugin tests
  • Get a Technical Consultation
You are here: Home / Articles / Tech Solutions / Run As… trick to work as an admin without logging somebody off

Run As… trick to work as an admin without logging somebody off

2008-01-09 by Jason

Method #1

General note that might make things easier for other people if they don’t know this keen trick. Right-click on an Internet Explorer 6 shortcut while holding down Shift, go up to ‘Run as…’. Use an admin log in (local or your own) and then use the IE window to go to My Computer or C: or Control Panel or Desktop and you can have Admin privileges without having to annoyingly log off the user.

This is convenient for not having to get people to login over and over again. It’s also convenient for taking care of problems (installing software, moving to AD, etc) that requires admin privileges without having to log a person off if remote desktop is not available and not to mention faster.

Method #2

In the case that the user has Internet Explorer 7 installed, the above trick will not work or it will not work as easily because of IE7’s sandboxing method. Instead, go to Start, Run and enter:
runas /env /user:{domainusername} “C:WINDOWSexplorer.exe /separate”

This second method will also work with IE6 installed, but the first method is just faster without the need to memorize any commands.

In either case, if you have an executable, you can hold Shift, Right-click on it and do a “Run As…” with a prompt to provide a log-in. It won’t work for .msi files when trying to install something, but just use either of the above tricks to run the .msi from an Admin level Explorer window with the: runas /user:{domain}{username} “C:Windowsexplorer.exe /separate” command and then browse and double-click the .msi file.

Another tip to improve upon this even more, is to throw the command from the second method into a .cmd file that you can invoke just by double-clicking the file. Put it on your jump-drive or somewhere equally convenient (machine image perhaps?) and that way you don’t have to memorize that command or key it in every time.

Method #3

In the case that you are trying to create batch files for users to run, but the batch file invokes a command or accesses a folder that only Admin’s can normally access, you’ll need a version of the Run As that allows you to provide a password in the command. But, if the user is able to run the command, they could also open it in Notepad and view the command and obviously the password there.

In order to use this method, I use another tool called lsrunase.exe It allows you to pass an encrypted password along with the command. You can get the file from here. It will consist of the lsrunase executable and another executable used to encrypt the password.
Use this command:
“\serversoftwarelsrunase.exe” /user:UserName /domain:Domain /password:EnCrYpT3dPaSsWoRd /runpath:\serversoftwaretools /command:”printmig.exe -b c:printers.cab”

Filed Under: Tech Solutions

Trending

  • Using the Registry to control the position of icons on the Windows Desktop
    In System Administration, Tech Solutions
  • Using RunAs With Active Directory Users And Computers and Group Policy Management Console
    In Code, Security and Privacy, System Administration
  • Sony’s Chief Information Security Officer Reports Another Breach of The PSN
    In Security and Privacy

Latest Media Posts

Find Out Where To Download SNES ROMs

Find Out Where To Download SNES ROMs

Multifunctional Video Conversion Tools – Wondershare Video Converter

Multifunctional Video Conversion Tools – Wondershare Video Converter

  • Popular
  • Latest
  • Today Week Month All
  • How to ‘Unblock’ multiple files at a time with PowerShell How to 'Unblock' multiple files at a time with PowerShell
  • Increase IIS Private Memory Limit to improve WSUS availability Increase IIS Private Memory Limit to improve WSUS availability
  • Command line to take ownership and change permissions Command line to take ownership and change permissions
  • Creating and editing views in phpMyAdmin Creating and editing views in phpMyAdmin
  • Read the Event Logs on Windows Server Core Read the Event Logs on Windows Server Core
  • How to Purchase Cryptocurrencies? How to Purchase Cryptocurrencies?
  • Top 6 necessary aspects to consider when hiring Angular developers Top 6 necessary aspects to consider when hiring Angular developers
  • Full guide on drawbacks and benefits of Node.js for making the perfect choice for your business Full guide on drawbacks and benefits of Node.js for making the perfect choice for your business
  • Benefits of End-To-End Testing That Will Match Company Expectations Benefits of End-To-End Testing That Will Match Company Expectations
  • 3 Key Features of Pets Health Monitoring Systems 3 Key Features of Pets Health Monitoring Systems
Ajax spinner

Elevator Pitch

404 Tech Support documents solutions to IT problems, shares worthwhile software and websites, and reviews hardware, consumer electronics, and technology-related books.

Subscribe to 404TS articles by email.

Recent Posts

  • How to Purchase Cryptocurrencies?
  • Top 6 necessary aspects to consider when hiring Angular developers
  • Full guide on drawbacks and benefits of Node.js for making the perfect choice for your business

Search

FTC Disclaimer

404TechSupport is an Amazon.com affiliate; when you click on an Amazon link from 404TS, the site gets a cut of the proceeds from whatever you buy. This site also uses Skimlinks for smart monetization of other affiliate links.
Use of this site requires displaying and viewing ads as they are presented.

Copyright © 2023 · Magazine Pro Theme on Genesis Framework · WordPress · Log in