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
Leave a Reply