mirror of
https://github.com/tsmagnum/Hyper-V-Report.git
synced 2026-04-17 21:54:09 +02:00
Add files via upload
This commit is contained in:
committed by
GitHub
parent
6c9026f65a
commit
55ad4348a3
@@ -41,7 +41,7 @@ function Get-VHDXInfo {
|
|||||||
|
|
||||||
foreach ($vm in $vms)
|
foreach ($vm in $vms)
|
||||||
{
|
{
|
||||||
$vhdxs = Get-VHD -VMId $vm.VMId |`
|
$vhdxs = Get-VHD -VMId $vm.VMId -ComputerName $vm.ComputerName |`
|
||||||
Select-Object ComputerName,Path,VhdFormat,VhdType,FileSize,Size,FragmentationPercentage
|
Select-Object ComputerName,Path,VhdFormat,VhdType,FileSize,Size,FragmentationPercentage
|
||||||
|
|
||||||
foreach ($vhdx in $vhdxs)
|
foreach ($vhdx in $vhdxs)
|
||||||
@@ -175,7 +175,7 @@ function Get-VmInfo
|
|||||||
RAM_Demand = [System.Math]::round((($vm.MemoryDemand)/1GB),2)
|
RAM_Demand = [System.Math]::round((($vm.MemoryDemand)/1GB),2)
|
||||||
Dyn_Memory = $vm.DynamicMemoryEnabled
|
Dyn_Memory = $vm.DynamicMemoryEnabled
|
||||||
IP_Addr_NIC0 = $vm.NetworkAdapters[0].IPAddresses[0]
|
IP_Addr_NIC0 = $vm.NetworkAdapters[0].IPAddresses[0]
|
||||||
Snapshots = (Get-VMSnapshot -VMName $vm.Name).Count
|
Snapshots = (Get-VMSnapshot -VMName $vm.Name -ComputerName $vm.ComputerName).Count
|
||||||
Clustered = $vm.IsClustered
|
Clustered = $vm.IsClustered
|
||||||
State = $vm.State
|
State = $vm.State
|
||||||
Heartbeat = $vm.Heartbeat
|
Heartbeat = $vm.Heartbeat
|
||||||
@@ -197,7 +197,7 @@ function Get-SnapshotInfo {
|
|||||||
|
|
||||||
foreach ($vm in $vms)
|
foreach ($vm in $vms)
|
||||||
{
|
{
|
||||||
$foundSnapshots = Get-VMSnapshot -VMName $vm.name
|
$foundSnapshots = Get-VMSnapshot -VMName $vm.name -ComputerName $vm.ComputerName
|
||||||
|
|
||||||
if (($foundSnapshots).Count -gt 0)
|
if (($foundSnapshots).Count -gt 0)
|
||||||
{
|
{
|
||||||
@@ -289,7 +289,7 @@ function Get-OsNetAdapterInfo
|
|||||||
Host = $osNetadapt.ComputerName
|
Host = $osNetadapt.ComputerName
|
||||||
Name = $osNetadapt.Name
|
Name = $osNetadapt.Name
|
||||||
MAC = $osNetadapt.MacAddress
|
MAC = $osNetadapt.MacAddress
|
||||||
IP_Addr = Get-MgmtOsNicIpAddr -adapterName $osNetadapt.Name -vmHost $vmHost
|
IP_Addr = Get-MgmtOsNicIpAddr -adapterName $osNetadapt.Name -vmHost $vmHost | Out-String
|
||||||
vSwitch = $osNetadapt.SwitchName
|
vSwitch = $osNetadapt.SwitchName
|
||||||
Status = $osNetadapt.Status | Out-String
|
Status = $osNetadapt.Status | Out-String
|
||||||
Vlan_Mode = $osNetadapt.VlanSetting.OperationMode
|
Vlan_Mode = $osNetadapt.VlanSetting.OperationMode
|
||||||
|
|||||||
Reference in New Issue
Block a user