When we face any permission related issues while executing the PowerShell scripts, we need to check the following to fix it.
1. Check Window PowerShell execution policy
Get-Execution Policy
2. If the return value is "Restricted" and then set the value as "RemoteSigned"
Set-Execution Policy "RemoteSigned"
3. In addition to the above, also need to ensure that UAC (User Access Control) is disabled.
That's it.
1. Check Window PowerShell execution policy
Get-Execution Policy
2. If the return value is "Restricted" and then set the value as "RemoteSigned"
Set-Execution Policy "RemoteSigned"
3. In addition to the above, also need to ensure that UAC (User Access Control) is disabled.
That's it.