You cannot run this script on the current system. For more information about running scripts and setting execution policy

Could you please try below a

  1. Install the module for all accounts: Installing to AllUsers places the module under C:\Program Files\WindowsPowerShell\Modules, which is visible to service accounts. Alternatively copy the module folder to that pathc
       # Run in an elevated admin prompt
       Install-Module -Name VstsTaskSdk -Scope AllUsers -Force
    
  2. Check / adjust execution policy;ย in PowerShell:
       Set-ExecutionPolicy RemoteSigned -Scope Process

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *