Could you please, @Anders, tell me what are the requirements for this script to work? Thanks for contributing an answer to Super User! it's not my script, I read it on a german blog several years ago. Type command or command prompt in the Start Search box to locate the Windows Command Prompt. Type cmd in the search bar. It works like this too: runas /user:administrator notepad. 1. Notepad automatically closes after printing. Did you enjoy this tip? Enter Notepad in the selected command-line interpreter. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. Right-click and choose Run as administrator. You can contact him at anup@technewstoday.com. 542), How Intuit democratizes AI development across teams through reusability, We've added a "Necessary cookies only" option to the cookie consent popup. It wont ask for an admin password but it will ask for UAC permissions. Right-click on the program that appears in the search results, and select " Run as administrator ". You will receive a verification email shortly. Way 6: Run as Administrator from Task Manager. You see a User Account Control (UAC) warning appear. @techie007 is right. Approach/Algorithm to solve this problem. Start an elevated or admin Command Prompt. Drag-and-drop executable files directly onto . Open CMD. The command to launch a program using another user credentials is given below. Normally you would right click and then select 'run as administrator' - but i would like to set this as a property on the command line, so that you dont have to right click every time. Make sure you have a check mark beside "Create this task with administrative privileges". type start notepad++. 1. Type " notepad " in the Cortana search box on the taskbar. In the More menu, select Run as administrator.. How can I recognize one? How do I save a file as an administrator? Step 2 Compile the class; it will create an out folder in IntelliJ and bin folder in Eclipse. Sign-in to an admin account on your PC. Alternatively, press WIN + X and select Disk Management. Learn more about Stack Overflow the company, and our products. How can I always run the command prompt as administrator? value="hi">Hindi