我需要使用 gMSA 帐户获取 VM 详细信息
$Username = 'domain\gMSA-Auto$'
Connect-VIServer -server 192.xxx.xxx.xxx -User $Username
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
Set-PowerCLIConfiguration -WebOperationTimeoutSeconds -1 -Scope Session -Confirm:$false
Get-VM
我使用 gMSA 来安排脚本,但不知道如何在这里使用它。
请如果有人可以帮助我