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
- 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 - Check / adjust execution policy;Â in PowerShell:
Set-ExecutionPolicy RemoteSigned -Scope Process