Invoke-PasswordPolicyManager
fails to get workload domain vCenter Server (Local User)
#89
-
If I generate a Password Policy Report for a Workload Domain, the section "INFO Collecting vCenter Server (Local User) Password Policies for Workload Domain (xxxxxxx)" fails. Invoke-PasswordPolicyManager -sddcManagerFqdn $sddcManagerFqdn -sddcManagerUser $sddcManagerUser -sddcManagerPass $sddcManagerPass -sddcRootPass $sddcRootPass -reportPath $reportPath -darkMode -workloadDomain $workloadDomain `
INFO Collecting vCenter Server (Local User) Password Policies for Workload Domain (xxxxxx).
Invoke-VMScript : 8/9/2023 9:31:01 AM Invoke-VMScript Could not find VirtualMachine with name 'xxxxxxxx'.
At C:\Program Files\WindowsPowerShell\Modules\PowerValidatedSolutions\2.5.0.1010\PowerValidatedSolutions.psm1:16905 char:19
+ ... $output = Invoke-VMScript -VM $vmName -ScriptText $scriptCommand -G ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (xxxxxx-vc01:String) [Invoke-VMScript], VimException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript
Get-LocalPasswordComplexity : 8/9/2023 9:31:01 AM Invoke-VMScript Value cannot be found for the mandatory parameter VM
At C:\Program Files\WindowsPowerShell\Modules\VMware.CloudFoundation.PasswordManagement\1.2.0.1005\VMware.CloudFoundation.PasswordManagement.psm1:3251 char:37
+ ... Get-LocalPasswordComplexity -vmName ($vcfVcenterDetails.f ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-LocalPasswordComplexity
Invoke-VMScript : 8/9/2023 9:31:13 AM Invoke-VMScript Could not find VirtualMachine with name 'xxxxxxxx'.
At C:\Program Files\WindowsPowerShell\Modules\PowerValidatedSolutions\2.5.0.1010\PowerValidatedSolutions.psm1:17089 char:19
+ ... $output = Invoke-VMScript -VM $vmName -ScriptText $scriptCommand -G ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (xxxxxx-vc01:String) [Invoke-VMScript], VimException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript
Get-LocalAccountLockout : 8/9/2023 9:31:13 AM Invoke-VMScript Value cannot be found for the mandatory parameter VM
At C:\Program Files\WindowsPowerShell\Modules\VMware.CloudFoundation.PasswordManagement\1.2.0.1005\VMware.CloudFoundation.PasswordManagement.psm1:3360 char:37
+ ... Get-LocalAccountLockout -vmName ($vcfVcenterDetails.fqdn. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-LocalAccountLockout
[08-09-2023_09:31:13] INFO Collecting NSX Manager Password Policies for Workload Domain (xxxxxxxx). --> This Section is empty in the Report. Generating a Report for MANAGEMENT Domain works fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @dgr-en 👋, Thanks for posting this item in the discussions. Please feel free to open a bug report for the issue and provide the requested details. We'll review and prioritize a milestone. Please ensure that the markdown formatting for PowerShell is use for clear readability. As always, contributions are welcomed. Ryan Johnson |
Beta Was this translation helpful? Give feedback.
Ref: #90