Run all commands as Administrator on Windows Server 2008 R2

file-permissionswindows-server-2008-r2

I'm having issues with permissions on Windows Server 2008 R2.

I'm used to (from Windows Server 2003) being able to open up a CMD prompt and type something like: `copy \some\file /y' and overwrite a file in the current directory.

The permissions on the directory/file allow modifying by 'Administrators', but I get Access is denied. unless I specifically run the cmd.exe 'as Administrator' which is unacceptable for how I need to manage my server. I need to be able to on-the-fly perform tasks without having to go and open a new cmd prompt, switch to the directory, retype the command, etc.

So how can I make it so my user who is a member of Administrators can by-default, run commands as an Administrator?

Best Answer

I would never recommend this, but here goes

On a stand-alone Windows Server 2008 R2, do the following:

  1. Go to Control Panel
  2. Choose User Accounts -> User Accounts
  3. Click "Change User Account Control Settings"
  4. Take the Slider down to the bottom where it says "Never Notify"
  5. Press OK.
  6. Press OK in your last UAC Prompt
Related Topic