SHIFT

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

User Tools

Site Tools


powerclinotes
Differences

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

Link to this comparison view

Both sides previous revision Previous revision
powerclinotes [2019/03/21 14:49]
sjoerd [Get All WMI Classes]
powerclinotes [2019/03/22 09:07] (current)
sjoerd [Get All WMI Classes]
Line 31: Line 31:
 <code powershell>​ <code powershell>​
 Get-ADComputer -filter {(operatingSystem -like "​*windows*Server*"​)} | select -ExpandProperty name | foreach {Get-WmiObject -namespace "​root"​ -Class "​__Namespace"​ -ComputerName $_ } | where {$_.name -eq "​CitrixLicensing"​} | select name,​pscomputername | FT Get-ADComputer -filter {(operatingSystem -like "​*windows*Server*"​)} | select -ExpandProperty name | foreach {Get-WmiObject -namespace "​root"​ -Class "​__Namespace"​ -ComputerName $_ } | where {$_.name -eq "​CitrixLicensing"​} | select name,​pscomputername | FT
 +</​code>​
 +
 +== Get All LogicalDisks through WMI ==
 +IN case you need to know what drive letters are assigned throughout your network:
 +<​code>​
 +Get-ADComputer -filter {(operatingSystem -like "​*windows*Server*"​)} | select -ExpandProperty name | foreach {Get-WmiObject Win32_logicalDisk -ComputerName $_ -Filter "​Drivetype='​3'"​} | select deviceid,​drivetype | FT
 </​code>​ </​code>​
 == VM with CPU Reservation == == VM with CPU Reservation ==
powerclinotes.txt ยท Last modified: 2019/03/22 09:07 by sjoerd