After upgrading from Powershell v2 to Powershell v4, I am no longer able to run any of my scripts that require administrator rights to run.
I have checked the executionpolicy after the upgrade. It is set to remotesigned.
I am opening Powershell v4 via the ISE, and I am doing so as an administrator. However, when PowerShell opens, it does not indicate that I am running it as an Administrator. When I run a script that checks to make sure I am running Powershell is running as an administrator, i receive an error indicating that I need to run Powershell as an administrator.
My environment
OS: Windows 7 SP1 64-bit
Powershell version: V4
I am wondering if this is the cause. In my environment, my administrator account is not local to the machine I am running PowerShell on. It is a account that resides in Active Directory and has been granted local administrator rights to all computers connected to the domain via GPO.
Any ideas on this one?