5 pts.
 What security token is used when using UNC path remotely under domain admin context?
I came across what I deemed a strange behavior while trying to automate a file copy on Windows 7. Perhaps someone could shed some light. Environment: Windows 2008 domain with Windows 7 clients. Scenario and facts: Goal is to copy/replace a single file in the Default profile. Because of newly implemented security configuration on the Default profile folder in Win 7 even the local admin is denied permission to override anything under that folder; not unless the copy operation is being executed under the elevated admin security token or (from my research) under the local SYSTEM account’s security context. This behavior is true when the copy operation is executed locally using either the UNC path or standard path. However the copy/override operation succeeds when it originates from a remote Windows 7 machine via UNC path (ex: \TargetWin7C$UsersDefault...TargetFolder) and this copy operation is executed using the Domain Admin account under standard, non-elevated token (note: Domain Admin account is a Local Admin on the target PC). All of the above is true when using any CLI or programmatical approach – ex: xCopy, VBS FileSystemObject.copyFile method. Question: What is the difference between executing the operation locally and doing so remotely in this case? It seems that when doing it over the network the session is treated as being with UAC “HIGHEST Privileges”. Note: THis is not a question about the missing "Copy To" button in the Profiles of Windows 7. The Default Profile is used as example - I'm only interested in the security aspect of the above.

Software/Hardware used:
Windows 7, Windows 2008 Domain
ASKED: November 5, 2011  1:33 PM
UPDATED: November 7, 2011  7:39 PM

Answer Wiki:
Basically when you access files remotely UAC is bypassed. The UAC on the location system that your copy process is running on doesn't know if UAC is supposed to be enforced on the remote file system and even if it did, it wouldn't know if the files that you were looking at were supposed to be protected by UAC or not as that isn't the local system.
Last Wiki Answer Submitted:  November 7, 2011  7:39 pm  by  Denny Cherry   64,550 pts.
All Answer Wiki Contributors:  Denny Cherry   64,550 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _