Powercli Code to Consolidate all vms which are Consolidation Needed
Use the below command.
Get-VM |
Related Article
Where-Object {$_.Extensiondata.Runtime.ConsolidationNeeded} |ForEach-Object {
$_.ExtensionData.ConsolidateVMDisks()
}
I am using the latest versions of PowerShell, PowerShell 7, and loving it. Loads of new features, new operators, ...
Execute the below command with the cluster name and required hardware version that all.Get-Cluster "Cluster Name" | Get...
Powercli Code to Consolidate all vms which are Consolidation Needed Use the below command. Get-VM |Where-Object {$_.Ex...
Windows PowerShell (SCVMM)SCVMM One-liner command 1: Outputs the VMName, VM Configuration File path, VHDCount, VHD Loca...
0 Comments