You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Connect to vCenter and run all CIS checks
.\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"
Detailed Output
# Show all findings including FAIL and NotImplemented items
.\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"-ShowDetails
Advanced Usage
Automated Reporting
# Run checks and save output to file
.\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"|Tee-Object-FilePath "cis-report-$(Get-Date-Format 'yyyy-MM-dd').txt"
# Import as moduleImport-Module .\VMware-CIS-Run-Checks.psd1
# Use with custom parameters$results= .\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"
# Convert results to JSON for further processing$results= .\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"$jsonResults=$results|ConvertTo-Json-Depth 3$jsonResults|Out-File"cis-results.json"
Filtering and Analysis
Filter by Status
# Show only Succeeded checks$results= .\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"$results|Where-Object Status -eq"FAIL"|Format-Table
Category-specific Analysis
# Analyze only network-related checks$results= .\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"$results|Where-Object Category -like"*Network*"|Format-Table
Export to CSV
# Export results to CSV for spreadsheet analysis$results= .\vmware-cis-run-checks.ps1 -vCenter "vcenter.company.com"$results|Export-Csv-Path "cis-results.csv"-NoTypeInformation