Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vsphere8-v1r1-stig - Unable to determine PowerCLI Module version, is it installed? #259

Open
kb7791 opened this issue Sep 25, 2024 · 2 comments
Assignees
Labels
bug Something isn't working inspec

Comments

@kb7791
Copy link

kb7791 commented Sep 25, 2024

Describe the bug

Ive been trying to test using this project to Audit and Remediate a test server with VMware ESXi, 8.0.2, 23305546.

When running /vsphere/8.0/v1r1-stig/vsphere/powercli/VMware_vSphere_8.0_STIG_ESXi_InSpec_Runner.ps1 with all the proper variables populated. It seems to not render the json, ckl files. Gets to the following lines....

cinc-auditor exec $inspecPath -t vmware:// --input vmhostName=$name --input-file $inputsFile --show-progress --reporter=json:$reportFile

Invoke-Command -ScriptBlock $command

The ps1 script is being ran by running a bash script locally.

`#!/bin/bash

VCENTER='10.XX.XX.XXX'
HOSTS='10.XX.XX.XXX'
REPORT_PATH=/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit
INPUTS_FILE_PATH=/Git/vmware-cyber/vsphere/powercli/inputs/vmware-vsphere-8.0-stig-esxi-inspec-runner-inputs.yml
ATTESTATION_FILE_PATH=/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/inputs/vmware-vsphere-8.0-stig-esxi-inspec-runner-attestation.yml
INSPEC_PATH=/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/inspec/vmware-vsphere-8.0-stig-baseline/esxi'

'pwsh /Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/VMware_vSphere_8.0_STIG_ESXi_InSpec_Runner.ps1 \
-vcenter ${VCENTER} \
-hosts ${HOSTS} \
-reportpath ${REPORT_PATH} \
-inspecPath "${INSPEC_PATH}" \
-inputsFile "${INPUTS_FILE_PATH}" \
-attestationFile "${ATTESTATION_FILE_PATH}"`

Output being generated:

Trying to import module VMware.VimAutomation.Core
VERBOSE: Loading module from path '/home/xxxxxx/.local/share/powershell/Modules/VMware.VimAutomation.Core/13.3.0.24145081/VMware.VimAutomation.Core.psd1'.
WARNING: Please consider joining the VMware Customer Experience Improvement Program, so you can help us make PowerCLI a better product. You can join using the following command:

Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true

VMware's Customer Experience Improvement Program ("CEIP") provides VMware with information that enables VMware to improve its products and services, to fix problems, and to advise you on how best to deploy and use our products.  As part of the CEIP, VMware collects technical information about your organization’s use of VMware products and services on a regular basis in association with your organization’s VMware license key(s).  This information does not personally identify any individual.

For more details: type "help about_ceip" to see the related help article.

To disable this warning and set your preference use the following command and restart PowerShell: 
Set-PowerCLIConfiguration -Scope User -ParticipateInCEIP $true or $false.
VERBOSE: Populating RepositorySourceLocation property for module VMware.VimAutomation.Core.
VERBOSE: Loading module from path '/home/vern/.local/share/powershell/Modules/VMware.VimAutomation.Core/13.3.0.24145081/VMware.VimAutomation.Core.psm1'.
VERBOSE: Exporting function 'HookGetViewAutoCompleter'.
VERBOSE: Exporting cmdlet 'Add-PassthroughDevice'.
VERBOSE: Exporting cmdlet 'Add-VirtualSwitchPhysicalNetworkAdapter'.
VERBOSE: Exporting cmdlet 'Add-VMHost'.
VERBOSE: Exporting cmdlet 'Add-VMHostNtpServer'.
VERBOSE: Exporting cmdlet 'Complete-VIOAuth2ClientSecretRotation'.
VERBOSE: Exporting cmdlet 'Connect-VIServer'.
VERBOSE: Exporting cmdlet 'Copy-ContentLibraryItem'.
VERBOSE: Exporting cmdlet 'Copy-DatastoreItem'.
VERBOSE: Exporting cmdlet 'Copy-HardDisk'.
VERBOSE: Exporting cmdlet 'Copy-VMGuestFile'.
VERBOSE: Exporting cmdlet 'Disconnect-VIServer'.
VERBOSE: Exporting cmdlet 'Dismount-Tools'.
VERBOSE: Exporting cmdlet 'Export-ContentLibraryItem'.
VERBOSE: Exporting cmdlet 'Export-LcmClusterDesiredState'.
VERBOSE: Exporting cmdlet 'Export-LcmVMHostDesiredState'.
VERBOSE: Exporting cmdlet 'Export-VApp'.
VERBOSE: Exporting cmdlet 'Export-VMHostProfile'.
VERBOSE: Exporting cmdlet 'Format-VMHostDiskPartition'.
VERBOSE: Exporting cmdlet 'Get-AdvancedSetting'.
VERBOSE: Exporting cmdlet 'Get-AlarmAction'.
VERBOSE: Exporting cmdlet 'Get-AlarmActionTrigger'.
VERBOSE: Exporting cmdlet 'Get-AlarmDefinition'.
VERBOSE: Exporting cmdlet 'Get-AlarmTrigger'.
VERBOSE: Exporting cmdlet 'Get-AlarmTriggerArgumentAttributeName'.
VERBOSE: Exporting cmdlet 'Get-Annotation'.
VERBOSE: Exporting cmdlet 'Get-ApplianceBackupJob'.
VERBOSE: Exporting cmdlet 'Get-ApplianceBackupPart'.
VERBOSE: Exporting cmdlet 'Get-CDDrive'.
VERBOSE: Exporting cmdlet 'Get-Cluster'.
VERBOSE: Exporting cmdlet 'Get-ContentLibrary'.
VERBOSE: Exporting cmdlet 'Get-ContentLibraryItem'.
VERBOSE: Exporting cmdlet 'Get-CustomAttribute'.
VERBOSE: Exporting cmdlet 'Get-Datacenter'.
VERBOSE: Exporting cmdlet 'Get-Datastore'.
VERBOSE: Exporting cmdlet 'Get-DatastoreCluster'.
VERBOSE: Exporting cmdlet 'Get-DrsClusterGroup'.
VERBOSE: Exporting cmdlet 'Get-DrsRecommendation'.
VERBOSE: Exporting cmdlet 'Get-DrsRule'.
VERBOSE: Exporting cmdlet 'Get-DrsVMHostRule'.
VERBOSE: Exporting cmdlet 'Get-EsxCli'.
VERBOSE: Exporting cmdlet 'Get-EsxTop'.
VERBOSE: Exporting cmdlet 'Get-EventType'.
VERBOSE: Exporting cmdlet 'Get-FloppyDrive'.
VERBOSE: Exporting cmdlet 'Get-Folder'.
VERBOSE: Exporting cmdlet 'Get-HAPrimaryVMHost'.
VERBOSE: Exporting cmdlet 'Get-HardDisk'.
VERBOSE: Exporting cmdlet 'Get-Inventory'.
VERBOSE: Exporting cmdlet 'Get-IScsiHbaTarget'.
VERBOSE: Exporting cmdlet 'Get-LcmClusterDesiredStateRecommendation'.
VERBOSE: Exporting cmdlet 'Get-LcmHardwareCompatibility'.
VERBOSE: Exporting cmdlet 'Get-LcmImage'.
VERBOSE: Exporting cmdlet 'Get-Log'.
VERBOSE: Exporting cmdlet 'Get-LogType'.
VERBOSE: Exporting cmdlet 'Get-Metric'.
VERBOSE: Exporting cmdlet 'Get-NetworkAdapter'.
VERBOSE: Exporting cmdlet 'Get-NicTeamingPolicy'.
VERBOSE: Exporting cmdlet 'Get-OSCustomizationNicMapping'.
VERBOSE: Exporting cmdlet 'Get-OSCustomizationSpec'.
VERBOSE: Exporting cmdlet 'Get-OvfConfiguration'.
VERBOSE: Exporting cmdlet 'Get-PassthroughDevice'.
VERBOSE: Exporting cmdlet 'Get-PowerCLIConfiguration'.
VERBOSE: Exporting cmdlet 'Get-PowerCLIVersion'.
VERBOSE: Exporting cmdlet 'Get-ResourcePool'.
VERBOSE: Exporting cmdlet 'Get-ScsiController'.
VERBOSE: Exporting cmdlet 'Get-ScsiLun'.
VERBOSE: Exporting cmdlet 'Get-ScsiLunPath'.
VERBOSE: Exporting cmdlet 'Get-SecurityPolicy'.
VERBOSE: Exporting cmdlet 'Get-Snapshot'.
VERBOSE: Exporting cmdlet 'Get-Stat'.
VERBOSE: Exporting cmdlet 'Get-StatInterval'.
VERBOSE: Exporting cmdlet 'Get-StatType'.
VERBOSE: Exporting cmdlet 'Get-Tag'.
VERBOSE: Exporting cmdlet 'Get-TagAssignment'.
VERBOSE: Exporting cmdlet 'Get-TagCategory'.
VERBOSE: Exporting cmdlet 'Get-Template'.
VERBOSE: Exporting cmdlet 'Get-UsbDevice'.
VERBOSE: Exporting cmdlet 'Get-VApp'.
VERBOSE: Exporting cmdlet 'Get-VIAccount'.
VERBOSE: Exporting cmdlet 'Get-VICredentialStoreItem'.
VERBOSE: Exporting cmdlet 'Get-VIEvent'.
VERBOSE: Exporting cmdlet 'Get-View'.
VERBOSE: Exporting cmdlet 'Get-VIOAuth2Client'.
VERBOSE: Exporting cmdlet 'Get-VIObjectByVIView'.
VERBOSE: Exporting cmdlet 'Get-VIPermission'.
VERBOSE: Exporting cmdlet 'Get-VIPrivilege'.
VERBOSE: Exporting cmdlet 'Get-VIPrivilegeReport'.
VERBOSE: Exporting cmdlet 'Get-VIProperty'.
VERBOSE: Exporting cmdlet 'Get-VIRole'.
VERBOSE: Exporting cmdlet 'Get-VirtualNetwork'.
VERBOSE: Exporting cmdlet 'Get-VirtualPortGroup'.
VERBOSE: Exporting cmdlet 'Get-VirtualSwitch'.
VERBOSE: Exporting cmdlet 'Get-VM'.
VERBOSE: Exporting cmdlet 'Get-VMGuest'.
VERBOSE: Exporting cmdlet 'Get-VMGuestDisk'.
VERBOSE: Exporting cmdlet 'Get-VMHost'.
VERBOSE: Exporting cmdlet 'Get-VMHostAccount'.
VERBOSE: Exporting cmdlet 'Get-VMHostAdvancedConfiguration'.
VERBOSE: Exporting cmdlet 'Get-VMHostAuthentication'.
VERBOSE: Exporting cmdlet 'Get-VMHostAvailableTimeZone'.
VERBOSE: Exporting cmdlet 'Get-VMHostDiagnosticPartition'.
VERBOSE: Exporting cmdlet 'Get-VMHostDisk'.
VERBOSE: Exporting cmdlet 'Get-VMHostDiskPartition'.
VERBOSE: Exporting cmdlet 'Get-VMHostFirewallDefaultPolicy'.
VERBOSE: Exporting cmdlet 'Get-VMHostFirewallException'.
VERBOSE: Exporting cmdlet 'Get-VMHostFirmware'.
VERBOSE: Exporting cmdlet 'Get-VMHostHardware'.
VERBOSE: Exporting cmdlet 'Get-VMHostHba'.
VERBOSE: Exporting cmdlet 'Get-VMHostModule'.
VERBOSE: Exporting cmdlet 'Get-VMHostNetwork'.
VERBOSE: Exporting cmdlet 'Get-VMHostNetworkAdapter'.
VERBOSE: Exporting cmdlet 'Get-VMHostNetworkStack'.
VERBOSE: Exporting cmdlet 'Get-VMHostNtpServer'.
VERBOSE: Exporting cmdlet 'Get-VMHostPatch'.
VERBOSE: Exporting cmdlet 'Get-VMHostPciDevice'.
VERBOSE: Exporting cmdlet 'Get-VMHostProfile'.
VERBOSE: Exporting cmdlet 'Get-VMHostProfileImageCacheConfiguration'.
VERBOSE: Exporting cmdlet 'Get-VMHostProfileRequiredInput'.
VERBOSE: Exporting cmdlet 'Get-VMHostProfileStorageDeviceConfiguration'.
VERBOSE: Exporting cmdlet 'Get-VMHostProfileUserConfiguration'.
VERBOSE: Exporting cmdlet 'Get-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Exporting cmdlet 'Get-VMHostRoute'.
VERBOSE: Exporting cmdlet 'Get-VMHostService'.
VERBOSE: Exporting cmdlet 'Get-VMHostSnmp'.
VERBOSE: Exporting cmdlet 'Get-VMHostStartPolicy'.
VERBOSE: Exporting cmdlet 'Get-VMHostStorage'.
VERBOSE: Exporting cmdlet 'Get-VMHostSysLogServer'.
VERBOSE: Exporting cmdlet 'Get-VMQuestion'.
VERBOSE: Exporting cmdlet 'Get-VMResourceConfiguration'.
VERBOSE: Exporting cmdlet 'Get-VMStartPolicy'.
VERBOSE: Exporting cmdlet 'Import-LcmClusterDesiredState'.
VERBOSE: Exporting cmdlet 'Import-VApp'.
VERBOSE: Exporting cmdlet 'Import-VMHostProfile'.
VERBOSE: Exporting cmdlet 'Install-VMHostPatch'.
VERBOSE: Exporting cmdlet 'Invoke-DrsRecommendation'.
VERBOSE: Exporting cmdlet 'Invoke-VMHostProfile'.
VERBOSE: Exporting cmdlet 'Invoke-VMScript'.
VERBOSE: Exporting cmdlet 'Mount-Tools'.
VERBOSE: Exporting cmdlet 'Move-Cluster'.
VERBOSE: Exporting cmdlet 'Move-Datacenter'.
VERBOSE: Exporting cmdlet 'Move-Datastore'.
VERBOSE: Exporting cmdlet 'Move-Folder'.
VERBOSE: Exporting cmdlet 'Move-HardDisk'.
VERBOSE: Exporting cmdlet 'Move-Inventory'.
VERBOSE: Exporting cmdlet 'Move-ResourcePool'.
VERBOSE: Exporting cmdlet 'Move-Template'.
VERBOSE: Exporting cmdlet 'Move-VApp'.
VERBOSE: Exporting cmdlet 'Move-VM'.
VERBOSE: Exporting cmdlet 'Move-VMHost'.
VERBOSE: Exporting cmdlet 'New-AdvancedSetting'.
VERBOSE: Exporting cmdlet 'New-AlarmAction'.
VERBOSE: Exporting cmdlet 'New-AlarmActionTrigger'.
VERBOSE: Exporting cmdlet 'New-AlarmDefinition'.
VERBOSE: Exporting cmdlet 'New-AlarmTrigger'.
VERBOSE: Exporting cmdlet 'New-AlarmTriggerArgument'.
VERBOSE: Exporting cmdlet 'New-ApplianceBackupJob'.
VERBOSE: Exporting cmdlet 'New-CDDrive'.
VERBOSE: Exporting cmdlet 'New-Cluster'.
VERBOSE: Exporting cmdlet 'New-ContentLibrary'.
VERBOSE: Exporting cmdlet 'New-ContentLibraryItem'.
VERBOSE: Exporting cmdlet 'New-CustomAttribute'.
VERBOSE: Exporting cmdlet 'New-Datacenter'.
VERBOSE: Exporting cmdlet 'New-Datastore'.
VERBOSE: Exporting cmdlet 'New-DatastoreCluster'.
VERBOSE: Exporting cmdlet 'New-DrsClusterGroup'.
VERBOSE: Exporting cmdlet 'New-DrsRule'.
VERBOSE: Exporting cmdlet 'New-DrsVMHostRule'.
VERBOSE: Exporting cmdlet 'New-FloppyDrive'.
VERBOSE: Exporting cmdlet 'New-Folder'.
VERBOSE: Exporting cmdlet 'New-HardDisk'.
VERBOSE: Exporting cmdlet 'New-IScsiHbaTarget'.
VERBOSE: Exporting cmdlet 'New-LcmOfflineDepot'.
VERBOSE: Exporting cmdlet 'New-NetworkAdapter'.
VERBOSE: Exporting cmdlet 'New-OSCustomizationNicMapping'.
VERBOSE: Exporting cmdlet 'New-OSCustomizationSpec'.
VERBOSE: Exporting cmdlet 'New-ResourcePool'.
VERBOSE: Exporting cmdlet 'New-ScsiController'.
VERBOSE: Exporting cmdlet 'New-Snapshot'.
VERBOSE: Exporting cmdlet 'New-StatInterval'.
VERBOSE: Exporting cmdlet 'New-Tag'.
VERBOSE: Exporting cmdlet 'New-TagAssignment'.
VERBOSE: Exporting cmdlet 'New-TagCategory'.
VERBOSE: Exporting cmdlet 'New-Template'.
VERBOSE: Exporting cmdlet 'New-VApp'.
VERBOSE: Exporting cmdlet 'New-VICredentialStoreItem'.
VERBOSE: Exporting cmdlet 'New-VIOAuth2Client'.
VERBOSE: Exporting cmdlet 'New-VIPermission'.
VERBOSE: Exporting cmdlet 'New-VIProperty'.
VERBOSE: Exporting cmdlet 'New-VIRole'.
VERBOSE: Exporting cmdlet 'New-VirtualPortGroup'.
VERBOSE: Exporting cmdlet 'New-VirtualSwitch'.
VERBOSE: Exporting cmdlet 'New-VISamlSecurityContext'.
VERBOSE: Exporting cmdlet 'New-VM'.
VERBOSE: Exporting cmdlet 'New-VMHostAccount'.
VERBOSE: Exporting cmdlet 'New-VMHostNetworkAdapter'.
VERBOSE: Exporting cmdlet 'New-VMHostProfile'.
VERBOSE: Exporting cmdlet 'New-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Exporting cmdlet 'New-VMHostRoute'.
VERBOSE: Exporting cmdlet 'Open-VMConsoleWindow'.
VERBOSE: Exporting cmdlet 'Remove-AdvancedSetting'.
VERBOSE: Exporting cmdlet 'Remove-AlarmAction'.
VERBOSE: Exporting cmdlet 'Remove-AlarmActionTrigger'.
VERBOSE: Exporting cmdlet 'Remove-AlarmDefinition'.
VERBOSE: Exporting cmdlet 'Remove-CDDrive'.
VERBOSE: Exporting cmdlet 'Remove-Cluster'.
VERBOSE: Exporting cmdlet 'Remove-ContentLibrary'.
VERBOSE: Exporting cmdlet 'Remove-ContentLibraryItem'.
VERBOSE: Exporting cmdlet 'Remove-CustomAttribute'.
VERBOSE: Exporting cmdlet 'Remove-Datacenter'.
VERBOSE: Exporting cmdlet 'Remove-Datastore'.
VERBOSE: Exporting cmdlet 'Remove-DatastoreCluster'.
VERBOSE: Exporting cmdlet 'Remove-DrsClusterGroup'.
VERBOSE: Exporting cmdlet 'Remove-DrsRule'.
VERBOSE: Exporting cmdlet 'Remove-DrsVMHostRule'.
VERBOSE: Exporting cmdlet 'Remove-FloppyDrive'.
VERBOSE: Exporting cmdlet 'Remove-Folder'.
VERBOSE: Exporting cmdlet 'Remove-HardDisk'.
VERBOSE: Exporting cmdlet 'Remove-Inventory'.
VERBOSE: Exporting cmdlet 'Remove-IScsiHbaTarget'.
VERBOSE: Exporting cmdlet 'Remove-NetworkAdapter'.
VERBOSE: Exporting cmdlet 'Remove-OSCustomizationNicMapping'.
VERBOSE: Exporting cmdlet 'Remove-OSCustomizationSpec'.
VERBOSE: Exporting cmdlet 'Remove-PassthroughDevice'.
VERBOSE: Exporting cmdlet 'Remove-ResourcePool'.
VERBOSE: Exporting cmdlet 'Remove-Snapshot'.
VERBOSE: Exporting cmdlet 'Remove-StatInterval'.
VERBOSE: Exporting cmdlet 'Remove-Tag'.
VERBOSE: Exporting cmdlet 'Remove-TagAssignment'.
VERBOSE: Exporting cmdlet 'Remove-TagCategory'.
VERBOSE: Exporting cmdlet 'Remove-Template'.
VERBOSE: Exporting cmdlet 'Remove-UsbDevice'.
VERBOSE: Exporting cmdlet 'Remove-VApp'.
VERBOSE: Exporting cmdlet 'Remove-VICredentialStoreItem'.
VERBOSE: Exporting cmdlet 'Remove-VIOAuth2Client'.
VERBOSE: Exporting cmdlet 'Remove-VIPermission'.
VERBOSE: Exporting cmdlet 'Remove-VIProperty'.
VERBOSE: Exporting cmdlet 'Remove-VIRole'.
VERBOSE: Exporting cmdlet 'Remove-VirtualPortGroup'.
VERBOSE: Exporting cmdlet 'Remove-VirtualSwitch'.
VERBOSE: Exporting cmdlet 'Remove-VirtualSwitchPhysicalNetworkAdapter'.
VERBOSE: Exporting cmdlet 'Remove-VM'.
VERBOSE: Exporting cmdlet 'Remove-VMHost'.
VERBOSE: Exporting cmdlet 'Remove-VMHostAccount'.
VERBOSE: Exporting cmdlet 'Remove-VMHostNetworkAdapter'.
VERBOSE: Exporting cmdlet 'Remove-VMHostNtpServer'.
VERBOSE: Exporting cmdlet 'Remove-VMHostProfile'.
VERBOSE: Exporting cmdlet 'Remove-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Exporting cmdlet 'Remove-VMHostRoute'.
VERBOSE: Exporting cmdlet 'Restart-VM'.
VERBOSE: Exporting cmdlet 'Restart-VMGuest'.
VERBOSE: Exporting cmdlet 'Restart-VMHost'.
VERBOSE: Exporting cmdlet 'Restart-VMHostService'.
VERBOSE: Exporting cmdlet 'Set-AdvancedSetting'.
VERBOSE: Exporting cmdlet 'Set-AlarmDefinition'.
VERBOSE: Exporting cmdlet 'Set-Annotation'.
VERBOSE: Exporting cmdlet 'Set-CDDrive'.
VERBOSE: Exporting cmdlet 'Set-Cluster'.
VERBOSE: Exporting cmdlet 'Set-ContentLibrary'.
VERBOSE: Exporting cmdlet 'Set-ContentLibraryItem'.
VERBOSE: Exporting cmdlet 'Set-CustomAttribute'.
VERBOSE: Exporting cmdlet 'Set-Datacenter'.
VERBOSE: Exporting cmdlet 'Set-Datastore'.
VERBOSE: Exporting cmdlet 'Set-DatastoreCluster'.
VERBOSE: Exporting cmdlet 'Set-DrsClusterGroup'.
VERBOSE: Exporting cmdlet 'Set-DrsRule'.
VERBOSE: Exporting cmdlet 'Set-DrsVMHostRule'.
VERBOSE: Exporting cmdlet 'Set-FloppyDrive'.
VERBOSE: Exporting cmdlet 'Set-Folder'.
VERBOSE: Exporting cmdlet 'Set-HardDisk'.
VERBOSE: Exporting cmdlet 'Set-IScsiHbaTarget'.
VERBOSE: Exporting cmdlet 'Set-NetworkAdapter'.
VERBOSE: Exporting cmdlet 'Set-NicTeamingPolicy'.
VERBOSE: Exporting cmdlet 'Set-OSCustomizationNicMapping'.
VERBOSE: Exporting cmdlet 'Set-OSCustomizationSpec'.
VERBOSE: Exporting cmdlet 'Set-PowerCLIConfiguration'.
VERBOSE: Exporting cmdlet 'Set-ResourcePool'.
VERBOSE: Exporting cmdlet 'Set-ScsiController'.
VERBOSE: Exporting cmdlet 'Set-ScsiLun'.
VERBOSE: Exporting cmdlet 'Set-ScsiLunPath'.
VERBOSE: Exporting cmdlet 'Set-SecurityPolicy'.
VERBOSE: Exporting cmdlet 'Set-Snapshot'.
VERBOSE: Exporting cmdlet 'Set-StatInterval'.
VERBOSE: Exporting cmdlet 'Set-Tag'.
VERBOSE: Exporting cmdlet 'Set-TagCategory'.
VERBOSE: Exporting cmdlet 'Set-Template'.
VERBOSE: Exporting cmdlet 'Set-VApp'.
VERBOSE: Exporting cmdlet 'Set-VIOAuth2Client'.
VERBOSE: Exporting cmdlet 'Set-VIPermission'.
VERBOSE: Exporting cmdlet 'Set-VIRole'.
VERBOSE: Exporting cmdlet 'Set-VirtualPortGroup'.
VERBOSE: Exporting cmdlet 'Set-VirtualSwitch'.
VERBOSE: Exporting cmdlet 'Set-VM'.
VERBOSE: Exporting cmdlet 'Set-VMHost'.
VERBOSE: Exporting cmdlet 'Set-VMHostAccount'.
VERBOSE: Exporting cmdlet 'Set-VMHostAdvancedConfiguration'.
VERBOSE: Exporting cmdlet 'Set-VMHostAuthentication'.
VERBOSE: Exporting cmdlet 'Set-VMHostDiagnosticPartition'.
VERBOSE: Exporting cmdlet 'Set-VMHostFirewallDefaultPolicy'.
VERBOSE: Exporting cmdlet 'Set-VMHostFirewallException'.
VERBOSE: Exporting cmdlet 'Set-VMHostFirmware'.
VERBOSE: Exporting cmdlet 'Set-VMHostHba'.
VERBOSE: Exporting cmdlet 'Set-VMHostModule'.
VERBOSE: Exporting cmdlet 'Set-VMHostNetwork'.
VERBOSE: Exporting cmdlet 'Set-VMHostNetworkAdapter'.
VERBOSE: Exporting cmdlet 'Set-VMHostNetworkStack'.
VERBOSE: Exporting cmdlet 'Set-VMHostProfile'.
VERBOSE: Exporting cmdlet 'Set-VMHostProfileImageCacheConfiguration'.
VERBOSE: Exporting cmdlet 'Set-VMHostProfileStorageDeviceConfiguration'.
VERBOSE: Exporting cmdlet 'Set-VMHostProfileUserConfiguration'.
VERBOSE: Exporting cmdlet 'Set-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Exporting cmdlet 'Set-VMHostRoute'.
VERBOSE: Exporting cmdlet 'Set-VMHostService'.
VERBOSE: Exporting cmdlet 'Set-VMHostSnmp'.
VERBOSE: Exporting cmdlet 'Set-VMHostStartPolicy'.
VERBOSE: Exporting cmdlet 'Set-VMHostStorage'.
VERBOSE: Exporting cmdlet 'Set-VMHostSysLogServer'.
VERBOSE: Exporting cmdlet 'Set-VMQuestion'.
VERBOSE: Exporting cmdlet 'Set-VMResourceConfiguration'.
VERBOSE: Exporting cmdlet 'Set-VMStartPolicy'.
VERBOSE: Exporting cmdlet 'Start-VApp'.
VERBOSE: Exporting cmdlet 'Start-VIOAuth2ClientSecretRotation'.
VERBOSE: Exporting cmdlet 'Start-VM'.
VERBOSE: Exporting cmdlet 'Start-VMHost'.
VERBOSE: Exporting cmdlet 'Start-VMHostService'.
VERBOSE: Exporting cmdlet 'Stop-ApplianceBackupJob'.
VERBOSE: Exporting cmdlet 'Stop-VApp'.
VERBOSE: Exporting cmdlet 'Stop-VM'.
VERBOSE: Exporting cmdlet 'Stop-VMGuest'.
VERBOSE: Exporting cmdlet 'Stop-VMHost'.
VERBOSE: Exporting cmdlet 'Stop-VMHostService'.
VERBOSE: Exporting cmdlet 'Suspend-VM'.
VERBOSE: Exporting cmdlet 'Suspend-VMGuest'.
VERBOSE: Exporting cmdlet 'Suspend-VMHost'.
VERBOSE: Exporting cmdlet 'Test-LcmClusterCompliance'.
VERBOSE: Exporting cmdlet 'Test-LcmClusterHealth'.
VERBOSE: Exporting cmdlet 'Test-VMHostProfileCompliance'.
VERBOSE: Exporting cmdlet 'Test-VMHostSnmp'.
VERBOSE: Exporting cmdlet 'Update-Tools'.
VERBOSE: Exporting cmdlet 'Wait-ApplianceBackupJob'.
VERBOSE: Exporting cmdlet 'Wait-Tools'.
VERBOSE: Importing cmdlet 'Add-PassthroughDevice'.
VERBOSE: Importing cmdlet 'Add-VirtualSwitchPhysicalNetworkAdapter'.
VERBOSE: Importing cmdlet 'Add-VMHost'.
VERBOSE: Importing cmdlet 'Add-VMHostNtpServer'.
VERBOSE: Importing cmdlet 'Complete-VIOAuth2ClientSecretRotation'.
VERBOSE: Importing cmdlet 'Connect-VIServer'.
VERBOSE: Importing cmdlet 'Copy-ContentLibraryItem'.
VERBOSE: Importing cmdlet 'Copy-DatastoreItem'.
VERBOSE: Importing cmdlet 'Copy-HardDisk'.
VERBOSE: Importing cmdlet 'Copy-VMGuestFile'.
VERBOSE: Importing cmdlet 'Disconnect-VIServer'.
VERBOSE: Importing cmdlet 'Dismount-Tools'.
VERBOSE: Importing cmdlet 'Export-ContentLibraryItem'.
VERBOSE: Importing cmdlet 'Export-LcmClusterDesiredState'.
VERBOSE: Importing cmdlet 'Export-LcmVMHostDesiredState'.
VERBOSE: Importing cmdlet 'Export-VApp'.
VERBOSE: Importing cmdlet 'Export-VMHostProfile'.
VERBOSE: Importing cmdlet 'Format-VMHostDiskPartition'.
VERBOSE: Importing cmdlet 'Get-AdvancedSetting'.
VERBOSE: Importing cmdlet 'Get-AlarmAction'.
VERBOSE: Importing cmdlet 'Get-AlarmActionTrigger'.
VERBOSE: Importing cmdlet 'Get-AlarmDefinition'.
VERBOSE: Importing cmdlet 'Get-AlarmTrigger'.
VERBOSE: Importing cmdlet 'Get-AlarmTriggerArgumentAttributeName'.
VERBOSE: Importing cmdlet 'Get-Annotation'.
VERBOSE: Importing cmdlet 'Get-ApplianceBackupJob'.
VERBOSE: Importing cmdlet 'Get-ApplianceBackupPart'.
VERBOSE: Importing cmdlet 'Get-CDDrive'.
VERBOSE: Importing cmdlet 'Get-Cluster'.
VERBOSE: Importing cmdlet 'Get-ContentLibrary'.
VERBOSE: Importing cmdlet 'Get-ContentLibraryItem'.
VERBOSE: Importing cmdlet 'Get-CustomAttribute'.
VERBOSE: Importing cmdlet 'Get-Datacenter'.
VERBOSE: Importing cmdlet 'Get-Datastore'.
VERBOSE: Importing cmdlet 'Get-DatastoreCluster'.
VERBOSE: Importing cmdlet 'Get-DrsClusterGroup'.
VERBOSE: Importing cmdlet 'Get-DrsRecommendation'.
VERBOSE: Importing cmdlet 'Get-DrsRule'.
VERBOSE: Importing cmdlet 'Get-DrsVMHostRule'.
VERBOSE: Importing cmdlet 'Get-EsxCli'.
VERBOSE: Importing cmdlet 'Get-EsxTop'.
VERBOSE: Importing cmdlet 'Get-EventType'.
VERBOSE: Importing cmdlet 'Get-FloppyDrive'.
VERBOSE: Importing cmdlet 'Get-Folder'.
VERBOSE: Importing cmdlet 'Get-HAPrimaryVMHost'.
VERBOSE: Importing cmdlet 'Get-HardDisk'.
VERBOSE: Importing cmdlet 'Get-Inventory'.
VERBOSE: Importing cmdlet 'Get-IScsiHbaTarget'.
VERBOSE: Importing cmdlet 'Get-LcmClusterDesiredStateRecommendation'.
VERBOSE: Importing cmdlet 'Get-LcmHardwareCompatibility'.
VERBOSE: Importing cmdlet 'Get-LcmImage'.
VERBOSE: Importing cmdlet 'Get-Log'.
VERBOSE: Importing cmdlet 'Get-LogType'.
VERBOSE: Importing cmdlet 'Get-Metric'.
VERBOSE: Importing cmdlet 'Get-NetworkAdapter'.
VERBOSE: Importing cmdlet 'Get-NicTeamingPolicy'.
VERBOSE: Importing cmdlet 'Get-OSCustomizationNicMapping'.
VERBOSE: Importing cmdlet 'Get-OSCustomizationSpec'.
VERBOSE: Importing cmdlet 'Get-OvfConfiguration'.
VERBOSE: Importing cmdlet 'Get-PassthroughDevice'.
VERBOSE: Importing cmdlet 'Get-PowerCLIConfiguration'.
VERBOSE: Importing cmdlet 'Get-PowerCLIVersion'.
VERBOSE: Importing cmdlet 'Get-ResourcePool'.
VERBOSE: Importing cmdlet 'Get-ScsiController'.
VERBOSE: Importing cmdlet 'Get-ScsiLun'.
VERBOSE: Importing cmdlet 'Get-ScsiLunPath'.
VERBOSE: Importing cmdlet 'Get-SecurityPolicy'.
VERBOSE: Importing cmdlet 'Get-Snapshot'.
VERBOSE: Importing cmdlet 'Get-Stat'.
VERBOSE: Importing cmdlet 'Get-StatInterval'.
VERBOSE: Importing cmdlet 'Get-StatType'.
VERBOSE: Importing cmdlet 'Get-Tag'.
VERBOSE: Importing cmdlet 'Get-TagAssignment'.
VERBOSE: Importing cmdlet 'Get-TagCategory'.
VERBOSE: Importing cmdlet 'Get-Template'.
VERBOSE: Importing cmdlet 'Get-UsbDevice'.
VERBOSE: Importing cmdlet 'Get-VApp'.
VERBOSE: Importing cmdlet 'Get-VIAccount'.
VERBOSE: Importing cmdlet 'Get-VICredentialStoreItem'.
VERBOSE: Importing cmdlet 'Get-VIEvent'.
VERBOSE: Importing cmdlet 'Get-View'.
VERBOSE: Importing cmdlet 'Get-VIOAuth2Client'.
VERBOSE: Importing cmdlet 'Get-VIObjectByVIView'.
VERBOSE: Importing cmdlet 'Get-VIPermission'.
VERBOSE: Importing cmdlet 'Get-VIPrivilege'.
VERBOSE: Importing cmdlet 'Get-VIPrivilegeReport'.
VERBOSE: Importing cmdlet 'Get-VIProperty'.
VERBOSE: Importing cmdlet 'Get-VIRole'.
VERBOSE: Importing cmdlet 'Get-VirtualNetwork'.
VERBOSE: Importing cmdlet 'Get-VirtualPortGroup'.
VERBOSE: Importing cmdlet 'Get-VirtualSwitch'.
VERBOSE: Importing cmdlet 'Get-VM'.
VERBOSE: Importing cmdlet 'Get-VMGuest'.
VERBOSE: Importing cmdlet 'Get-VMGuestDisk'.
VERBOSE: Importing cmdlet 'Get-VMHost'.
VERBOSE: Importing cmdlet 'Get-VMHostAccount'.
VERBOSE: Importing cmdlet 'Get-VMHostAdvancedConfiguration'.
VERBOSE: Importing cmdlet 'Get-VMHostAuthentication'.
VERBOSE: Importing cmdlet 'Get-VMHostAvailableTimeZone'.
VERBOSE: Importing cmdlet 'Get-VMHostDiagnosticPartition'.
VERBOSE: Importing cmdlet 'Get-VMHostDisk'.
VERBOSE: Importing cmdlet 'Get-VMHostDiskPartition'.
VERBOSE: Importing cmdlet 'Get-VMHostFirewallDefaultPolicy'.
VERBOSE: Importing cmdlet 'Get-VMHostFirewallException'.
VERBOSE: Importing cmdlet 'Get-VMHostFirmware'.
VERBOSE: Importing cmdlet 'Get-VMHostHardware'.
VERBOSE: Importing cmdlet 'Get-VMHostHba'.
VERBOSE: Importing cmdlet 'Get-VMHostModule'.
VERBOSE: Importing cmdlet 'Get-VMHostNetwork'.
VERBOSE: Importing cmdlet 'Get-VMHostNetworkAdapter'.
VERBOSE: Importing cmdlet 'Get-VMHostNetworkStack'.
VERBOSE: Importing cmdlet 'Get-VMHostNtpServer'.
VERBOSE: Importing cmdlet 'Get-VMHostPatch'.
VERBOSE: Importing cmdlet 'Get-VMHostPciDevice'.
VERBOSE: Importing cmdlet 'Get-VMHostProfile'.
VERBOSE: Importing cmdlet 'Get-VMHostProfileImageCacheConfiguration'.
VERBOSE: Importing cmdlet 'Get-VMHostProfileRequiredInput'.
VERBOSE: Importing cmdlet 'Get-VMHostProfileStorageDeviceConfiguration'.
VERBOSE: Importing cmdlet 'Get-VMHostProfileUserConfiguration'.
VERBOSE: Importing cmdlet 'Get-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Importing cmdlet 'Get-VMHostRoute'.
VERBOSE: Importing cmdlet 'Get-VMHostService'.
VERBOSE: Importing cmdlet 'Get-VMHostSnmp'.
VERBOSE: Importing cmdlet 'Get-VMHostStartPolicy'.
VERBOSE: Importing cmdlet 'Get-VMHostStorage'.
VERBOSE: Importing cmdlet 'Get-VMHostSysLogServer'.
VERBOSE: Importing cmdlet 'Get-VMQuestion'.
VERBOSE: Importing cmdlet 'Get-VMResourceConfiguration'.
VERBOSE: Importing cmdlet 'Get-VMStartPolicy'.
VERBOSE: Importing cmdlet 'Import-LcmClusterDesiredState'.
VERBOSE: Importing cmdlet 'Import-VApp'.
VERBOSE: Importing cmdlet 'Import-VMHostProfile'.
VERBOSE: Importing cmdlet 'Install-VMHostPatch'.
VERBOSE: Importing cmdlet 'Invoke-DrsRecommendation'.
VERBOSE: Importing cmdlet 'Invoke-VMHostProfile'.
VERBOSE: Importing cmdlet 'Invoke-VMScript'.
VERBOSE: Importing cmdlet 'Mount-Tools'.
VERBOSE: Importing cmdlet 'Move-Cluster'.
VERBOSE: Importing cmdlet 'Move-Datacenter'.
VERBOSE: Importing cmdlet 'Move-Datastore'.
VERBOSE: Importing cmdlet 'Move-Folder'.
VERBOSE: Importing cmdlet 'Move-HardDisk'.
VERBOSE: Importing cmdlet 'Move-Inventory'.
VERBOSE: Importing cmdlet 'Move-ResourcePool'.
VERBOSE: Importing cmdlet 'Move-Template'.
VERBOSE: Importing cmdlet 'Move-VApp'.
VERBOSE: Importing cmdlet 'Move-VM'.
VERBOSE: Importing cmdlet 'Move-VMHost'.
VERBOSE: Importing cmdlet 'New-AdvancedSetting'.
VERBOSE: Importing cmdlet 'New-AlarmAction'.
VERBOSE: Importing cmdlet 'New-AlarmActionTrigger'.
VERBOSE: Importing cmdlet 'New-AlarmDefinition'.
VERBOSE: Importing cmdlet 'New-AlarmTrigger'.
VERBOSE: Importing cmdlet 'New-AlarmTriggerArgument'.
VERBOSE: Importing cmdlet 'New-ApplianceBackupJob'.
VERBOSE: Importing cmdlet 'New-CDDrive'.
VERBOSE: Importing cmdlet 'New-Cluster'.
VERBOSE: Importing cmdlet 'New-ContentLibrary'.
VERBOSE: Importing cmdlet 'New-ContentLibraryItem'.
VERBOSE: Importing cmdlet 'New-CustomAttribute'.
VERBOSE: Importing cmdlet 'New-Datacenter'.
VERBOSE: Importing cmdlet 'New-Datastore'.
VERBOSE: Importing cmdlet 'New-DatastoreCluster'.
VERBOSE: Importing cmdlet 'New-DrsClusterGroup'.
VERBOSE: Importing cmdlet 'New-DrsRule'.
VERBOSE: Importing cmdlet 'New-DrsVMHostRule'.
VERBOSE: Importing cmdlet 'New-FloppyDrive'.
VERBOSE: Importing cmdlet 'New-Folder'.
VERBOSE: Importing cmdlet 'New-HardDisk'.
VERBOSE: Importing cmdlet 'New-IScsiHbaTarget'.
VERBOSE: Importing cmdlet 'New-LcmOfflineDepot'.
VERBOSE: Importing cmdlet 'New-NetworkAdapter'.
VERBOSE: Importing cmdlet 'New-OSCustomizationNicMapping'.
VERBOSE: Importing cmdlet 'New-OSCustomizationSpec'.
VERBOSE: Importing cmdlet 'New-ResourcePool'.
VERBOSE: Importing cmdlet 'New-ScsiController'.
VERBOSE: Importing cmdlet 'New-Snapshot'.
VERBOSE: Importing cmdlet 'New-StatInterval'.
VERBOSE: Importing cmdlet 'New-Tag'.
VERBOSE: Importing cmdlet 'New-TagAssignment'.
VERBOSE: Importing cmdlet 'New-TagCategory'.
VERBOSE: Importing cmdlet 'New-Template'.
VERBOSE: Importing cmdlet 'New-VApp'.
VERBOSE: Importing cmdlet 'New-VICredentialStoreItem'.
VERBOSE: Importing cmdlet 'New-VIOAuth2Client'.
VERBOSE: Importing cmdlet 'New-VIPermission'.
VERBOSE: Importing cmdlet 'New-VIProperty'.
VERBOSE: Importing cmdlet 'New-VIRole'.
VERBOSE: Importing cmdlet 'New-VirtualPortGroup'.
VERBOSE: Importing cmdlet 'New-VirtualSwitch'.
VERBOSE: Importing cmdlet 'New-VISamlSecurityContext'.
VERBOSE: Importing cmdlet 'New-VM'.
VERBOSE: Importing cmdlet 'New-VMHostAccount'.
VERBOSE: Importing cmdlet 'New-VMHostNetworkAdapter'.
VERBOSE: Importing cmdlet 'New-VMHostProfile'.
VERBOSE: Importing cmdlet 'New-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Importing cmdlet 'New-VMHostRoute'.
VERBOSE: Importing cmdlet 'Open-VMConsoleWindow'.
VERBOSE: Importing cmdlet 'Remove-AdvancedSetting'.
VERBOSE: Importing cmdlet 'Remove-AlarmAction'.
VERBOSE: Importing cmdlet 'Remove-AlarmActionTrigger'.
VERBOSE: Importing cmdlet 'Remove-AlarmDefinition'.
VERBOSE: Importing cmdlet 'Remove-CDDrive'.
VERBOSE: Importing cmdlet 'Remove-Cluster'.
VERBOSE: Importing cmdlet 'Remove-ContentLibrary'.
VERBOSE: Importing cmdlet 'Remove-ContentLibraryItem'.
VERBOSE: Importing cmdlet 'Remove-CustomAttribute'.
VERBOSE: Importing cmdlet 'Remove-Datacenter'.
VERBOSE: Importing cmdlet 'Remove-Datastore'.
VERBOSE: Importing cmdlet 'Remove-DatastoreCluster'.
VERBOSE: Importing cmdlet 'Remove-DrsClusterGroup'.
VERBOSE: Importing cmdlet 'Remove-DrsRule'.
VERBOSE: Importing cmdlet 'Remove-DrsVMHostRule'.
VERBOSE: Importing cmdlet 'Remove-FloppyDrive'.
VERBOSE: Importing cmdlet 'Remove-Folder'.
VERBOSE: Importing cmdlet 'Remove-HardDisk'.
VERBOSE: Importing cmdlet 'Remove-Inventory'.
VERBOSE: Importing cmdlet 'Remove-IScsiHbaTarget'.
VERBOSE: Importing cmdlet 'Remove-NetworkAdapter'.
VERBOSE: Importing cmdlet 'Remove-OSCustomizationNicMapping'.
VERBOSE: Importing cmdlet 'Remove-OSCustomizationSpec'.
VERBOSE: Importing cmdlet 'Remove-PassthroughDevice'.
VERBOSE: Importing cmdlet 'Remove-ResourcePool'.
VERBOSE: Importing cmdlet 'Remove-Snapshot'.
VERBOSE: Importing cmdlet 'Remove-StatInterval'.
VERBOSE: Importing cmdlet 'Remove-Tag'.
VERBOSE: Importing cmdlet 'Remove-TagAssignment'.
VERBOSE: Importing cmdlet 'Remove-TagCategory'.
VERBOSE: Importing cmdlet 'Remove-Template'.
VERBOSE: Importing cmdlet 'Remove-UsbDevice'.
VERBOSE: Importing cmdlet 'Remove-VApp'.
VERBOSE: Importing cmdlet 'Remove-VICredentialStoreItem'.
VERBOSE: Importing cmdlet 'Remove-VIOAuth2Client'.
VERBOSE: Importing cmdlet 'Remove-VIPermission'.
VERBOSE: Importing cmdlet 'Remove-VIProperty'.
VERBOSE: Importing cmdlet 'Remove-VIRole'.
VERBOSE: Importing cmdlet 'Remove-VirtualPortGroup'.
VERBOSE: Importing cmdlet 'Remove-VirtualSwitch'.
VERBOSE: Importing cmdlet 'Remove-VirtualSwitchPhysicalNetworkAdapter'.
VERBOSE: Importing cmdlet 'Remove-VM'.
VERBOSE: Importing cmdlet 'Remove-VMHost'.
VERBOSE: Importing cmdlet 'Remove-VMHostAccount'.
VERBOSE: Importing cmdlet 'Remove-VMHostNetworkAdapter'.
VERBOSE: Importing cmdlet 'Remove-VMHostNtpServer'.
VERBOSE: Importing cmdlet 'Remove-VMHostProfile'.
VERBOSE: Importing cmdlet 'Remove-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Importing cmdlet 'Remove-VMHostRoute'.
VERBOSE: Importing cmdlet 'Restart-VM'.
VERBOSE: Importing cmdlet 'Restart-VMGuest'.
VERBOSE: Importing cmdlet 'Restart-VMHost'.
VERBOSE: Importing cmdlet 'Restart-VMHostService'.
VERBOSE: Importing cmdlet 'Set-AdvancedSetting'.
VERBOSE: Importing cmdlet 'Set-AlarmDefinition'.
VERBOSE: Importing cmdlet 'Set-Annotation'.
VERBOSE: Importing cmdlet 'Set-CDDrive'.
VERBOSE: Importing cmdlet 'Set-Cluster'.
VERBOSE: Importing cmdlet 'Set-ContentLibrary'.
VERBOSE: Importing cmdlet 'Set-ContentLibraryItem'.
VERBOSE: Importing cmdlet 'Set-CustomAttribute'.
VERBOSE: Importing cmdlet 'Set-Datacenter'.
VERBOSE: Importing cmdlet 'Set-Datastore'.
VERBOSE: Importing cmdlet 'Set-DatastoreCluster'.
VERBOSE: Importing cmdlet 'Set-DrsClusterGroup'.
VERBOSE: Importing cmdlet 'Set-DrsRule'.
VERBOSE: Importing cmdlet 'Set-DrsVMHostRule'.
VERBOSE: Importing cmdlet 'Set-FloppyDrive'.
VERBOSE: Importing cmdlet 'Set-Folder'.
VERBOSE: Importing cmdlet 'Set-HardDisk'.
VERBOSE: Importing cmdlet 'Set-IScsiHbaTarget'.
VERBOSE: Importing cmdlet 'Set-NetworkAdapter'.
VERBOSE: Importing cmdlet 'Set-NicTeamingPolicy'.
VERBOSE: Importing cmdlet 'Set-OSCustomizationNicMapping'.
VERBOSE: Importing cmdlet 'Set-OSCustomizationSpec'.
VERBOSE: Importing cmdlet 'Set-PowerCLIConfiguration'.
VERBOSE: Importing cmdlet 'Set-ResourcePool'.
VERBOSE: Importing cmdlet 'Set-ScsiController'.
VERBOSE: Importing cmdlet 'Set-ScsiLun'.
VERBOSE: Importing cmdlet 'Set-ScsiLunPath'.
VERBOSE: Importing cmdlet 'Set-SecurityPolicy'.
VERBOSE: Importing cmdlet 'Set-Snapshot'.
VERBOSE: Importing cmdlet 'Set-StatInterval'.
VERBOSE: Importing cmdlet 'Set-Tag'.
VERBOSE: Importing cmdlet 'Set-TagCategory'.
VERBOSE: Importing cmdlet 'Set-Template'.
VERBOSE: Importing cmdlet 'Set-VApp'.
VERBOSE: Importing cmdlet 'Set-VIOAuth2Client'.
VERBOSE: Importing cmdlet 'Set-VIPermission'.
VERBOSE: Importing cmdlet 'Set-VIRole'.
VERBOSE: Importing cmdlet 'Set-VirtualPortGroup'.
VERBOSE: Importing cmdlet 'Set-VirtualSwitch'.
VERBOSE: Importing cmdlet 'Set-VM'.
VERBOSE: Importing cmdlet 'Set-VMHost'.
VERBOSE: Importing cmdlet 'Set-VMHostAccount'.
VERBOSE: Importing cmdlet 'Set-VMHostAdvancedConfiguration'.
VERBOSE: Importing cmdlet 'Set-VMHostAuthentication'.
VERBOSE: Importing cmdlet 'Set-VMHostDiagnosticPartition'.
VERBOSE: Importing cmdlet 'Set-VMHostFirewallDefaultPolicy'.
VERBOSE: Importing cmdlet 'Set-VMHostFirewallException'.
VERBOSE: Importing cmdlet 'Set-VMHostFirmware'.
VERBOSE: Importing cmdlet 'Set-VMHostHba'.
VERBOSE: Importing cmdlet 'Set-VMHostModule'.
VERBOSE: Importing cmdlet 'Set-VMHostNetwork'.
VERBOSE: Importing cmdlet 'Set-VMHostNetworkAdapter'.
VERBOSE: Importing cmdlet 'Set-VMHostNetworkStack'.
VERBOSE: Importing cmdlet 'Set-VMHostProfile'.
VERBOSE: Importing cmdlet 'Set-VMHostProfileImageCacheConfiguration'.
VERBOSE: Importing cmdlet 'Set-VMHostProfileStorageDeviceConfiguration'.
VERBOSE: Importing cmdlet 'Set-VMHostProfileUserConfiguration'.
VERBOSE: Importing cmdlet 'Set-VMHostProfileVmPortGroupConfiguration'.
VERBOSE: Importing cmdlet 'Set-VMHostRoute'.
VERBOSE: Importing cmdlet 'Set-VMHostService'.
VERBOSE: Importing cmdlet 'Set-VMHostSnmp'.
VERBOSE: Importing cmdlet 'Set-VMHostStartPolicy'.
VERBOSE: Importing cmdlet 'Set-VMHostStorage'.
VERBOSE: Importing cmdlet 'Set-VMHostSysLogServer'.
VERBOSE: Importing cmdlet 'Set-VMQuestion'.
VERBOSE: Importing cmdlet 'Set-VMResourceConfiguration'.
VERBOSE: Importing cmdlet 'Set-VMStartPolicy'.
VERBOSE: Importing cmdlet 'Start-VApp'.
VERBOSE: Importing cmdlet 'Start-VIOAuth2ClientSecretRotation'.
VERBOSE: Importing cmdlet 'Start-VM'.
VERBOSE: Importing cmdlet 'Start-VMHost'.
VERBOSE: Importing cmdlet 'Start-VMHostService'.
VERBOSE: Importing cmdlet 'Stop-ApplianceBackupJob'.
VERBOSE: Importing cmdlet 'Stop-VApp'.
VERBOSE: Importing cmdlet 'Stop-VM'.
VERBOSE: Importing cmdlet 'Stop-VMGuest'.
VERBOSE: Importing cmdlet 'Stop-VMHost'.
VERBOSE: Importing cmdlet 'Stop-VMHostService'.
VERBOSE: Importing cmdlet 'Suspend-VM'.
VERBOSE: Importing cmdlet 'Suspend-VMGuest'.
VERBOSE: Importing cmdlet 'Suspend-VMHost'.
VERBOSE: Importing cmdlet 'Test-LcmClusterCompliance'.
VERBOSE: Importing cmdlet 'Test-LcmClusterHealth'.
VERBOSE: Importing cmdlet 'Test-VMHostProfileCompliance'.
VERBOSE: Importing cmdlet 'Test-VMHostSnmp'.
VERBOSE: Importing cmdlet 'Update-Tools'.
VERBOSE: Importing cmdlet 'Wait-ApplianceBackupJob'.
VERBOSE: Importing cmdlet 'Wait-Tools'.
VERBOSE: Importing function 'HookGetViewAutoCompleter'.
5:22:25 PM ...Enter credentials to connect to vCenter

Scope    ProxyPolicy     DefaultVIServerMode InvalidCertificateAction  DisplayDeprecationWarnings WebOperationTimeout
                                                                                                  Seconds
-----    -----------     ------------------- ------------------------  -------------------------- -------------------
Session  UseSystemProxy  Multiple            Ignore                    True                       300
User                                         Ignore                                               
AllUsers                                                                                          
5:22:25 PM ...Connecting to vCenter Server 10.xx.xx.xxx
5:22:28 PM ...Getting PowerCLI objects for all ESXi hosts in vCenter: 10.xx.xx.xxx
5:22:28 PM ...Detected running on Linux system...
5:22:28 PM ...Validated path for report at /Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit
5:22:28 PM Host in vCenter: 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX 10.XX.XX.XXX
5:22:28 PM Desired hosts to audit: 10.XX.XX.XXX
5:22:28 PM Desired hosts to audit: 10.10.XX.XX.XXX
5:22:28 PM ...Report path is /Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit and report file is /Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit/VMware_vSphere_8.0_STIG_ESXi_Inspec_Report_10.XX.XX.XXX-9-25-2024_17-22-23.json
5:22:28 PM ...Running InSpec exec against 10.XX.XX.XXX with cinc-auditor exec $inspecPath -t vmware:// --input vmhostName=$name --input-file $inputsFile --show-progress --reporter=json:$reportFile
Unable to determine PowerCLI Module version, is it installed?
Unable to determine PowerCLI Module version, is it installed?
5:22:34 PM ...Detected saf cli...generating STIG Viewer Checklist for 10.XX.XX.XXX
5:22:34 PM ...Attestation file: /Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/inputs/vmware-vsphere-8.0-stig-esxi-inspec-runner-attestation.yml detected...applying to results for 10.XX.XX.XXX
(node:131540) [ENOENT] Warning: Error
module: @oclif/[email protected]
task: findCommand (convert)
plugin: @mitre/saf
root: /home/vern/.nvm/versions/node/v20.17.0/lib/node_modules/@mitre/saf
code: ENOENT
message: ENOENT: no such file or directory, open '/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit/VMware_vSphere_8.0_STIG_ESXi_Inspec_Report_10.XX.XX.XXX-9-25-2024_17-22-23.json'
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:131540) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
 SDK releases are limited to address critical bug fixes and security issues only.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
    Error: ENOENT: no such file or directory, open '/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit/VMware_vSphere_8.0_STIG_ESXi_Inspec_Report_10.XX.XX.XXX-9-25-2024_17-22-23.json'
    Code: ENOENT
(node:131551) [ENOENT] Warning: Error
module: @oclif/[email protected]
task: findCommand (convert)
plugin: @mitre/saf
root: /home/vern/.nvm/versions/node/v20.17.0/lib/node_modules/@mitre/saf
code: ENOENT
message: ENOENT: no such file or directory, open '/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit/VMware_vSphere_8.0_STIG_ESXi_Inspec_Report_10.XX.XX.XXX-9-25-2024_17-22-23_with_Attestations.json'
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
(node:131551) NOTE: The AWS SDK for JavaScript (v2) is in maintenance mode.
 SDK releases are limited to address critical bug fixes and security issues only.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the blog post at https://a.co/cUPnyil
    Error: ENOENT: no such file or directory, open 
    '/Git/vmware-cyber/vsphere/8.0/v1r1-stig/vsphere/powercli/logs/audit/VMware_vSphere_8.0_STIG_ESXi_Inspec_Report_10.XX.XX.XXX-9-25-2024_17-22-23_with_Attestations.json'
    Code: ENOENT
5:22:38 PM ...Disconnecting from vCenter

Expected behavior

Begin to generate the attestation files for testing purposed to expand using the remdiation.

Additional context

ubuntu 24.04
pwsh 7.4.3
powercli 13.3.0.24145081
cinc-auditor 4.56.58
@mitre/saf/1.2.34 linux-x64 node-v20.17.0

@kb7791 kb7791 added the bug Something isn't working label Sep 25, 2024
@rlakey rlakey added the inspec label Nov 7, 2024
@rlakey
Copy link
Contributor

rlakey commented Nov 7, 2024

Hi @kb7791 what version of the inspec vmware transport do you have installed and have you installed our custom one or are you using the one from Chef?

The error about PowerCLI not being detected should not occur in the version we provide so if you are not using ours or a really old version please update it and try this again.

You can find ours and install instructions in the readme here: https://github.com/vmware/dod-compliance-and-automation/tree/master/vsphere/8.0/v2r1-stig/vsphere/inspec/vmware-vsphere-8.0-stig-baseline

@rlakey rlakey self-assigned this Nov 7, 2024
@kb7791
Copy link
Author

kb7791 commented Nov 11, 2024

Hi @kb7791 what version of the inspec vmware transport do you have installed and have you installed our custom one or are you using the one from Chef?

The error about PowerCLI not being detected should not occur in the version we provide so if you are not using ours or a really old version please update it and try this again.

You can find ours and install instructions in the readme here: https://github.com/vmware/dod-compliance-and-automation/tree/master/vsphere/8.0/v2r1-stig/vsphere/inspec/vmware-vsphere-8.0-stig-baseline

So Im currently trying to use this in an air-gapped STIG'd environment with current set up ans still running in the issue when I try to run the cinc-auditor directly in the terminal.

rhel 8.9
pwsh 7.3.2
powercli 13.3.0.20829139
cinc-auditor 6.8.1
@mitre/saf/1.4.15 linux-x64 node-v20.16.0

Using the v1r3-stig directory against a host that running esxi hypervisor 7.0.3 23794027

I'm using cinc-auditor instead of chef inspec due to cinc not requiring a license.

So at the moment I'm just trying to get this to render an audit on our existing system to render a report. The system is already stig'd but wanted to confirm I can get it to work and generate a report. We're migrating to vmware 8 and wanted to test this in the current environment and make sure it works properly before making the upgrade and hoping it can assist us in stig'ing any changes from making the move to vmware 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inspec
Projects
None yet
Development

No branches or pull requests

2 participants