We are preparing for the migration from Hyper-V to VMware. I am collecting all information before migration. One of the tasks was to collect all memory assigned to all VMs. Get-VM -ComputerName (Get-ClusterNode -Cluster CLUSTER_NAME) | Select-Object Name, DynamicMemoryEnabled, MemoryAssigned, MemoryMinimum, ProcessorCount, Path
How to: Powershell
We are preparing for the migration from Hyper-V to VMware. I am collecting all information before migration. One of the tasks was to collect all the information about network cards connected to the VMs on the cluster. This is how I did it. Get-VM -ComputerName (Get-ClusterNode -Cluster CLUSTER_NAME) | Get-VMNetworkAdapter…
We are preparing for the migration from Hyper-V to VMware. I am collecting all information before migration. One of the tasks was to collect all the VHDs information and this is how I did it. Get-VM -ComputerName (Get-ClusterNode) | ForEach-Object {Get-VHD -ComputerName $_.ComputerName -VMId $_.VMId} | Select -Property Path, VhdFormat,VhdType,@{label=’Size(GB)’;expression={$_.filesize/1gb…
I had to get SID for all Users that Logon Name begin with pa Get-ADUser -Filter {Name -like “pa*”} | Select Name,SID | Format-Table -Auto For all Groups that Name begin with pa Get-ADGroup -Filter {Name -like “pa*”} | Select Name,SID | Format-Table -Auto For all Computers that Name begin…
Hi Guys, This is was not a simple task… because of Get-VMHardDiskDrive can’t give you the size of the drive. $VMget=Get-VM -ComputerName (Get-ClusterNode -Cluster ClusterName) | Get-VMHardDiskDrive | Select-Object -Property vmname, vmid, computername, controllertype, controllernumber,controllerlocation,path foreach ($VM in $VMget) { $VHDRemotePath=$VM.Path -replace “:”, “$” $VHDRemotePath=”\\”+$VM.ComputerName+”\”+$VHDRemotePath $vhdsize= Get-ChildItem $VHDRemotePath | select-object…