--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
powerclinotes [2018/07/06 10:40]
powerclinotes [2019/03/22 09:07] (current)
sjoerd [Get All WMI Classes]
Line 27: Line 27:
 = Commands And OneLiners= = Commands And OneLiners=
 +== Get All WMI Classes ==
 +Get all wmi classes on all Windows Servers in your network and filter for Citrix Licensing class:
 +<code powershell>​
 +Get-ADComputer -filter {(operatingSystem -like "​*windows*Server*"​)} | select -ExpandProperty name | foreach {Get-WmiObject -namespace "​root"​ -Class "​__Namespace"​ -ComputerName $_ } | where {$ -eq "​CitrixLicensing"​} | select name,​pscomputername | FT
 +== Get All LogicalDisks through WMI ==
 +IN case you need to know what drive letters are assigned throughout your network:
 +Get-ADComputer -filter {(operatingSystem -like "​*windows*Server*"​)} | select -ExpandProperty name | foreach {Get-WmiObject Win32_logicalDisk -ComputerName $_ -Filter "​Drivetype='​3'"​} | select deviceid,​drivetype | FT
 == VM with CPU Reservation == == VM with CPU Reservation ==
powerclinotes.1530866438.txt.gz ยท Last modified: 2018/07/06 10:40 by sjoerd