Skip to content

Insufficient user privileges to report ESXi host licensing #123

Open
@Big-Giant-Head

Description

@Big-Giant-Head

Bug description

Everytime I run a new report this error gets thrown.
New-AsBuiltReport: Index operation failed; the array index evaluated to null.
Also, in a -verbose it states:
VERBOSE: [ 11:10:43:637 ] [ Document ] - Insufficient user privileges to report ESXi host licensing. Please ensure the user account has the 'Global > Licenses' privilege assigned.

but iit is run with [email protected]

Command-line input

New-AsBuiltReport -Report VMware.vSphere -Target 'vcenter.ad.local' -Username '[email protected]' -Password 'password' -Format Word -OutputPath "C:\Reports" -ReportConfigPath "C:\Reports\1Script\Config\fullBuiltReport.VMware.vSphere.json" -TimeStamp -EnableHealthcheck -verbose

Steps to reproduce

"InfoLevel": {
"comment": "0 = Disabled, 1 = Enabled / Summary, 2 = Adv Summary, 3 = Detailed, 4 = Adv Detailed, 5 = Comprehensive",
"vCenter": 4,
"Cluster": 4,
"ResourcePool": 4,
"VMHost": 2, << if this is set higher than 2, it failes
"Network": 4,
"vSAN": 0,
"Datastore": 4,
"DSCluster": 4,
"VM": 4,
"VUM": 4

Expected behaviour

for it to work.

Screenshots

No response

Operating System

Windows 11

PowerShell Version

Name Value


PSVersion 7.4.5
PSEdition Core
GitCommitId 7.4.5
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

PowerShell Modules

Name Version


AsBuiltReport.Core 1.4.0
AsBuiltReport.VMware.vSphere 1.3.4.1
PScribo 0.10.0

Additional Context

No response

Before submitting

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions