Network Drives / Shares Disconnected In Visual Studio Run As Administrator
I noticed all my network drives were not connecting. Due to the requirement for some sharepoint projects to be run as administrator, I started Visual Studio 2010 with administrative priveleges. If you have UAC (User Access Control) enabled, this will happen:
http://technet.microsoft.com/en-us/library/ee844140(WS.10).aspx
Since a group policy object that enables UAC is pushed out every 15 mins in my organization, I ended up creating a UACdisable.reg to disable it more quickly when I need to open up a project on a network share that requires Admin privs.
copy and paste this into a .reg file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"consentpromptbehavioradmin"=dword:00000000
"consentpromptbehavioruser"=dword:00000001
"disablecad"=dword:00000000
"dontdisplaylastusername"=dword:00000001
"dontdisplaylockeduserid"=dword:00000003
"enableinstallerdetection"=dword:00000001
"enablelua"=dword:00000000
"enablesecureuiapaths"=dword:00000001
"enablevirtualization"=dword:00000001
"filteradministratortoken"=dword:00000001
"legalnoticecaption"=""
""
"promptonsecuredesktop"=dword:00000001
"scforceoption"=dword:00000000
"shutdownwithoutlogon"=dword:00000001
"undockwithoutlogon"=dword:00000001
"validateadmincodesignatures"=dword:00000000
"EnableLinkedConnections"=dword:00000001
"LogonType"=dword:00000000
"ReportControllerMissing"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\kerberos]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\kerberos\parameters]
"supportedencryptiontypes"=dword:7ffffffc
As always, make a backup before applying any registry changes.