PowerCLI commandlet "Get-Snapshot" validation fails when the VM snapshot name starts with square brackets `[`
book
Article ID: 405244
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
When attempting to retrieve a virtual machine (VM) snapshot using the PowerCLI "Get-Snapshot" commandlet, the operation unexpectedly returns a null value.
This issue specifically occurs when the VM snapshot name begins with a square bracket character `[`.
Environment
VMware vCenter Server 8.x
VMware vCenter Server 9.x
VMware PowerCLI 13.x
VCF PowerCLI 9.0
Resolution
We are aware of this issue and development team is actively working on a resolution.
A fix will be included in future release of VCF PowerCLI.
In the interim, a workaround has been identified and can be implemented to successfully retrieve snapshots whose names begin with square bracket character `[`.
Workaround:
The following PowerCLI commands demonstrate the effective workaround: