azure devops powershell error 176 Reputation points

I installed the azure cli with the script below on my Windows 10 PC.

And when I use the az command, it says it doesn't exist.
But when I use it on the target PC, it works fine.

$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi238378-%E1%84%8C%E1%85%A6%E1%84%86%E1%85%A9%E1%86%A8-%E1%84%8B%E1%85%A5%E1%86%B9%E1%84%8B%E1%85%B3%E1%86%B7.png

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,347 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points


    Can you try the admin elevated PS to run the command.?

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.