Get-PowerCLIConfiguration
VMware: Retrieves the VMware PowerCLI configuration
#Requires -Version 5.1
[CmdletBinding()]
Param(
[ValidateSet("Session", "User", "AllUsers")]
[string]$Scope
)
Process {
try {
if ([System.String]::IsNullOrWhiteSpace($Scope)) { $result = Get-PowerCLIConfiguration -ErrorAction Stop | Format-List }
else { $result = Get-PowerCLIConfiguration -Scope $Scope -ErrorAction Stop | Format-List }
Write-Output $result
}
catch { throw }
}Scope: Session, User, or AllUsers