uninstall assemblies from GAC - Access Denied

On a SharePoint 2010 development server running Windows Server 2008 R2, I had to uninstall some assemblies in the GAC and keep getting access denied, when trying to delete them.
So, looking for at a way to do this, I had to change a Local Security Policy, in order to allow them to be deleted:
* Open Local Security Policy MMC
* Goto Security Settings -> Local Policies -> Security Options
* Locate “User Account Control: Run all administrators in Admin Approval” and change the setting from Enabled to Disabled
* Reboot and now the assemblies can be deleted
IMPORTANT! Never ever do this on a production system, and always turn it back on afterwards.

Comments

Popular posts from this blog

SharePoint 2016 and 2019 Ports

PsConfig step by step /Configuration Wizard. “Upgrade Available” vs “Upgrade required”

Unlock the SharePoint site using Powershell command