UAC and Remote logon
Just noticed that there is a solid document on UAC here:
It mentions the following:
"When a user with an administrator account in a Windows Vista computer's local Security Accounts Manager (SAM) database remotely connects to a Windows Vista computer, the user has no elevation potential on the remote computer and cannot perform administrative tasks. If the user wants to administer the workstation with a SAM account, the user must interactively log on to the computer to be administered."
We came across an interesting manifestation of this when using the "net use" command to connect to an admin share on a Vista machine (MachineV for now) from an XP machine (MachineX). Both machines were in separate unrelated domains. When using "net use m: \\MachineV\c$ * /user:MachineA\Abby" from MachineX (where Abby is member of the administrators group on MachineV) we got an error 5 or Access Denied. So apparently when the SAM account Abby was logged on to MachineV, we got the filtered token. If Abby were a domain account and both machines were in the same domain, I would be able to connect to the admin share c$.
There is however a UAC flag in the registry that allows you to toggle this behavior for local accounts:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system\LocalAccountTokenFilterPolicy.
- 0 - build filtered token (Remote UAC enabled)
- 1 - build elevated token (Remote UAC disabled)
If you set the DWORD entry to 1, you will be able to connect to the admin share since the remote login is not filtered.
Obviously this is not restricted to "net use" but applies to all variations of remote account logins.
Maarten
Comments
Anonymous
August 07, 2007
I can connect to a remote admin share, using a local admin user, but I am getting access denied (5) when then trying to view the HKLM registry key in regedit, or trying to view event logs on the remote machine. If I connect to the admin share with my domain credentials, and my domain ID is in the local admins group on the remote machine, I can view the HKLM key and event logs. Have you run across this issue? Both machines are in the same domain. Running Vista Enterprise.Anonymous
July 06, 2008
PingBack from http://blog.stefan-macke.com/2008/07/06/zugriff-auf-administrative-freigaben-von-vista-mit-windows-xp/Anonymous
January 17, 2009
PingBack from http://www.hilpers.com/1148225-zugriff-auf-freigaben-klappt-nichtAnonymous
January 18, 2009
PingBack from http://www.keyongtech.com/2969584-can-you-enable-the-adminAnonymous
June 15, 2009
PingBack from http://mydebtconsolidator.info/story.php?id=21030