Hi,
not sure what is going wrong at the moment, but I've installed VUM powercli package and I did some testing yesterday. Today Scan-Inentory and other VUM powercli commands fail with error "Test-Compliance' is not recognized as the name of a cmdlet..."
But as far as I can see the VUM powercli snapin/module is installed and loaded.
Scan-Inventory -Entity xxxx
Scan-Inventory : The term 'Test-Compliance' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ Scan-Inventory -Entity xxxxx
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Test-Compliance:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Add-PSSnapin VMware.VumAutomation
Add-PSSnapin : Cannot add Windows PowerShell snap-in VMware.VumAutomation because it is already added. Verify the name of the snap-in, and then try again.
At line:1 char:1
+ Add-PSSnapin VMware.VumAutomation
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (VMware.VumAutomation:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
> Import-Module VMware.VumAutomation -Verbose | |
VERBOSE: Loading module from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\VMware.VumAutomation.psd1'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\IntegritySoapService40.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\IntegritySoapService40.XmlSerializers.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\VMware.VumAutomation.Client40.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\VMware.VumAutomation.dll'.
VERBOSE: Loading 'Assembly' from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\VMware.VumAutomation.Types.dll'.
VERBOSE: Loading 'FormatsToProcess' from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\VMware.VumAutomation.Format.ps1xml'.
VERBOSE: Loading module from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\Initialize-VMware_VumAutomation.ps1'.
VERBOSE: Dot-sourcing the script file 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\Initialize-VMware_VumAutomation.ps1'.
VERBOSE: Loading module from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\VMware.VumAutomation.ps1'.
VERBOSE: Dot-sourcing the script file 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\VMware.VumAutomation.ps1'.
VERBOSE: Loading module from path 'C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules\VMware.VumAutomation\VMware.VumAutomation.dll'.
VERBOSE: Exporting cmdlet 'Attach-Baseline'.
VERBOSE: Exporting cmdlet 'Get-Baseline'.
VERBOSE: Exporting cmdlet 'Detach-Baseline'.
VERBOSE: Exporting cmdlet 'Download-Patch'.
VERBOSE: Exporting cmdlet 'Get-Compliance'.
VERBOSE: Exporting cmdlet 'Get-Patch'.
VERBOSE: Exporting cmdlet 'Get-PatchBaseline'.
VERBOSE: Exporting cmdlet 'New-PatchBaseline'.
VERBOSE: Exporting cmdlet 'Remove-Baseline'.
VERBOSE: Exporting cmdlet 'Set-PatchBaseline'.
VERBOSE: Exporting cmdlet 'Remediate-Inventory'.
VERBOSE: Exporting cmdlet 'Scan-Inventory'.
VERBOSE: Exporting cmdlet 'Stage-Patch'.
WARNING: The names of some imported commands from the module 'VMware.VumAutomation' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
VERBOSE: The 'Attach-Baseline' command in the VMware.VumAutomation' module was imported, but because its name does not include an approved verb, it might be difficult to find. The suggested alternative verbs are "Add, Debug".
VERBOSE: Importing cmdlet 'Attach-Baseline'.
VERBOSE: The 'Detach-Baseline' command in the VMware.VumAutomation' module was imported, but because its name does not include an approved verb, it might be difficult to find. The suggested alternative verbs are "Dismount, Remove".
VERBOSE: Importing cmdlet 'Detach-Baseline'.
VERBOSE: The 'Download-Patch' command in the VMware.VumAutomation' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb.
VERBOSE: Importing cmdlet 'Download-Patch'.
VERBOSE: Importing cmdlet 'Get-Baseline'.
VERBOSE: Importing cmdlet 'Get-Compliance'.
VERBOSE: Importing cmdlet 'Get-Patch'.
VERBOSE: Importing cmdlet 'Get-PatchBaseline'.
VERBOSE: Importing cmdlet 'New-PatchBaseline'.
VERBOSE: The 'Remediate-Inventory' command in the VMware.VumAutomation' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb.
VERBOSE: Importing cmdlet 'Remediate-Inventory'.
VERBOSE: Importing cmdlet 'Remove-Baseline'.
VERBOSE: The 'Scan-Inventory' command in the VMware.VumAutomation' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb.
VERBOSE: Importing cmdlet 'Scan-Inventory'.
VERBOSE: Importing cmdlet 'Set-PatchBaseline'.
VERBOSE: The 'Stage-Patch' command in the VMware.VumAutomation' module was imported, but because its name does not include an approved verb, it might be difficult to find. For a list of approved verbs, type Get-Verb.
VERBOSE: Importing cmdlet 'Stage-Patch'.