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?
I would never recommend this, but here goes
On a stand-alone Windows Server 2008 R2, do the following:
It sounds like you're asking "how do I bypass UAC?" Well you can't bypass UAC. You can turn off UAC however.
From this relevant blog post by Margosis:
I always have this issue on a new Win 2008R2 server. The problem is in the Start Menu properties. (I always forget this.)
Right Click and choose Properties. On the Start Menu tab select . In the context menu find "Enable context menus and dragging and dropping" and check the box. Then
Now when you right click a program in the start menu you will get the pop-up with the options like "Run as administrator", "Pin to Taskbar", etc.
Now you just have to remember to start your PowerShell or cmd window with Run as Administrator.