Merge pull request #103 from k00laidIT/patch-1
Create Get-VMToolsParts.ps1
This commit is contained in:
11
Scripts/Get-VMToolsParts.ps1
Normal file
11
Scripts/Get-VMToolsParts.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
$vms = Get-VM | where {$_.PowerState -eq "PoweredOn" -and $_.GuestId -match "Windows"}
|
||||
|
||||
ForEach ($vm in $vms){
|
||||
Write-Host $vm
|
||||
$namespace = "root\CIMV2"
|
||||
$componentPattern = "hcmon|vmci|vmdebug|vmhgfs|VMMEMCTL|vmmouse|vmrawdsk|vmxnet|vmx_svga"
|
||||
(Get-WmiObject -class Win32_SystemDriver -computername $vm -namespace $namespace |
|
||||
where-object { $_.Name -match $componentPattern } |
|
||||
Format-Table -Auto Name,State,StartMode,DisplayName
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user