Hyper-V: WMI-Test

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
#Hyper-V-Test: 
$QueryHyperV="select * from Msvm_DiskDrive"
Get-WmiObject -Namespace root\virtualization\v2 -Query $QueryHyperV
	 
#Cluster-Test: 
$QueryCluster="select * from mscluster_clusterservice"
Get-WmiObject -Namespace root\mscluster -Query $QueryCluster  
	 
#CIMV2-Test: 
$QueryCimV2="select * from win32_process"
Get-WmiObject -namespace root\cimv2 -Query $queryCimV2  
 
#Disk test: 
$QueryDisk="select * from win32_diskdrive"
Get-WmiObject -namespace root\cimv2 -Query $queryDisk