How do I run a script as administrator in cmd?

Press Windows+R to open the “Run” box. Type “cmd” into the box and then press Ctrl+Shift+Enter to run the command as an administrator.

How do I give administrator rights to a user in Windows XP?

How Do I Get Administrative Privileges on Windows XP?

  1. Right-click on My Computer.
  2. Click on Manage.
  3. Expand Local Users and Groups.
  4. Click on Groups.
  5. Double click on Administrators.
  6. Click on Add.
  7. Enter the account name on this machine that you want to assign administrative privileges to.
  8. OK your way back out.

How do I get administrator privileges using cmd?

Type cmd, right-click the Command Prompt tile, and then click Run as administrator.

How do I run a Command Prompt as administrator in Windows XP?

Press Windows+R to open “Run” box. Type “cmd” and then click “OK” to open a regular Command Prompt. Type “cmd” and then press Ctrl+Shift+Enter to open an administrator Command Prompt.

How do I run cmd as administrator in batch file?

To do what I think you are trying to do is:

  1. Create the batch file.
  2. Create a shortcut to the batch file.
  3. Right click on the batch file shortcut.
  4. Select properties.
  5. Go to the Shortcut tab.
  6. Click on the Advanced button.
  7. Click the checkbox next to Run as Administrator.
  8. Click on OK.

How do I run a Windows script as administrator?

How do I change permissions on Windows XP?

To set permissions on Windows XP: Select Start Settings Control Panel. In the Control Panel, open Administrative Tools. In Administrative Tools, open Local Security Policy….Setting System Access Permissions on Windows XP

  1. Click Add User or Group.
  2. Specify the user ID that requires this permission.
  3. Click OK.

How do I run Windows XP as Administrator without password?

How do I log into Windows XP as administrator without password? Press Ctrl + Alt + Delete twice to load the user login panel. Press OK to attempt to log in without a username or password. If that doesn’t work, try typing Administrator into the Username field and pressing OK.

How do I run a batch file as Administrator in Windows XP?

#2 To run the batch file with Administrative privalges right click on the File,Click on Compatibility TAB and check mark at the bottom, run as administrator.

How do I run a script as administrator?