You must set the PowerShell Execution Policy from Restricted to RemoteSigned or Unrestricted to allow local PowerShell scripts to be run.
Prerequisites
Log in as a Windows administrator.
Verify that Microsoft PowerShell is installed on the installation host before agent installation. The version required depends on the operating system of the installation host. See Microsoft Help and Support.
For more information about PowerShell Execution Policy, run
help about_signing
orhelp Set-ExecutionPolicy
at the PowerShell command prompt.
Procedure
- Select .
- For Remote Signed, run
Set-ExecutionPolicy RemoteSigned
. - For Unrestricted, run
Set-ExecutionPolicy Unrestricted
. - Verify that the command did not produce any errors.
- Type Exit at the PowerShell command prompt.