Set execution policy on the target computer

For AppInsight, the Execution Policy needs to be set to RemoteSigned.

  1. Open a PowerShell session in the Administrator context (Right-click and select Run as Administrator).
  2. Enter the following command: Set-ExecutionPolicy RemoteSigned