习惯了Linux, 用不惯 Windows
sudo apt update
sudo apt install -y curl gnupg apt-transport-https
curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/microsoft.gpg
sudo echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-buster-prod buster main" > /etc/apt/sources.list.d/microsoft.list
sudo apt update
sudo apt install -y powershell
pwsh
PS /root>
PS /root> Install-Module -Name VMware.PowerCLI
PS /root> Get-Module -ListAvailable
PS /root> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $false
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
Import-Module VMware.PowerCLI
Get-Module -Name VMware.PowerCLI -ListAvailable
标签:PS,Set,sudo,apt,powershell,powercli,debian11,root,microsoft
From: https://blog.51cto.com/first01/6524034