I was attempting to access some admin shares on a machine, using a local administrator account as I did not want to use a domain account. Seems I was getting access denied even though the user is in the local administrators group. It appears that there is an UAC enforcement to prevent local admins from accessing administrative shares. In order to fix this, you have to create a DWORD32 registry key of
LocalAccountTokenFilterPolicywith a value of 1 in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System. With that change, you can then access those administrative shares.