Avatar of exhuser
exhuser
 asked on

Windows 2008 Server

I am getting this error when trying to copy a file on the C-drive:
"you'll need to provide administrator permission to copy to this folder"

The user is a member of the local admin group.
How can I disable this specific notification?
Windows Server 2008Microsoft Server OSMicrosoft Legacy OS

Avatar of undefined
Last Comment
exhuser

8/22/2022 - Mon
John

You need to open cmd.exe in Admin Mode. Right click on cmd.exe and select Run as Administrator.

If you are using Notepad, say for the Hosts file, you need to open Notepad with Run as Administrator.
exhuser

ASKER
How does it fix the copying files issue?
John

It normally allows copying to protected areas like user folders and program folders
Your help has saved me hundreds of hours of internet surfing.
fblack61
exhuser

ASKER
OK. How can I disable this message permanently?
John

The message comes up when you need permissions , so it does not go away permanently . However you should not see the message if you have adequate permissions
exhuser

ASKER
I understand this. Are you saying there is no way to disable this message if the user is a member of the local admin group?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
John

If you are admin and you are trying also to go where further elevated permissions are needed (examples above), there is no way to eliminate the message.
NVIT

The security permissions on the folder may be amiss. One solution is to adjust the Security for the folder or file. Clear then reassign the users / groups.
John

I assume in my information above that folder permissions are correct (as is normal on a server) so please let us know if not.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
exhuser

ASKER
The security permissions are standard -- right after the installation.
John

Then you need to live with the message unless you first use elevated permissions.
ASKER CERTIFIED SOLUTION
neel_7575

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
John

NEVER - NEVER disable UAC on a Server. Don't. That is the WRONG thing to do.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Lee W, MVP

Question - WHY are you copying FILES to the root of the drive?  There is RARELY a good reason to do so.  You can easily make new folders and copy files to folders.  If you really MUST copy a file or two to the root, fine, deal with the error message, complete the copy - but don't do something every professional IT person I know would consider absolutely foolish - like disabling UAC!
R. Andrew Koffron

I like the good comment option, but maybe a bad comment button is needed, for suggesting you remove UAC, I can't imagine when I'd consider doing this on a production server.

As for copying files to the Root, I can think of a couple reasons I'd consider it like avoiding local paths, being long than my User Paths, by making initial Shared C:\net but making the share "Network Shared Files" especially when moving company files from other hardware.

Basic Production Servers really shouldn't have people logged into them enough for the elevated permsions "run as Administrator" to be a big issue.
exhuser

ASKER
I actually found a registry fix, but as this Microsoft article says, "Under certain constrained circumstances, disabling User Account Control (UAC) on Windows Server can be an acceptable and recommended practice"
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23