VMware VS4-STD-C Evaluator Guide - Page 78
Get-VM VM* | New-Snapshot -Name Patch Tuesday -Description A Patch added before applying all
View all VMware VS4-STD-C manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 78 highlights
VMware vSphere 5.0 Evaluation Guide - Volume One To gain more information about all snapshots, type Get-VM | Get-Snapshot | Select VM, Name, Description, Created, SizeMB | Format-Table In addition to reporting, PowerCLIvSphere PowerCLI also provides cmdlets for the management of snapshots. Figure 104. Snapshots are easily created in large numbers in vSphere PowerCLI. Snapshots in the vSphere Client must be created one at a time. With vSphere PowerCLI, you can specify the criteria for your virtual machines and use the New-Snapshot cmdlet to create a snapshot on each virtual machine. The following example shows how to create a snapshot on all virtual machines having names that start with VM: Get-VM VM* | New-Snapshot -Name "Patch Tuesday" -Description "A Patch added before applying all Microsoft Patches" You will also see from the preceding screen shot that any task produced by vSphere PowerCLI will be recorded in the normal manner within vCenter and attributed to the user who is connected to this vSphere PowerCLI session. Figure 105. TECHNICAL WHITE PAPER / 78