Group Policy – vybrané WMI filtry

Pár WMI filtrů:

  • Computer is a laptop (because it has a battery)
    • SELECT * FROM Win32_Battery
  • Screen resolution is at least 1280×720
    • SELECT * FROM Win32_DisplayControllerConfiguration WHERE HorizontalResolution>1279 AND VerticalResolution>719
  • System is running on batteries
    • SELECT * FROM BatteryStatus Where Discharging = True
  • Computer has at least 2GB RAM memory
    • SELECT * FROM Win32_ComputerSystem WHERE TotalPhysicalMemory > 2000000000
  • Drive D: contains at least 100GB free space
    • SELECT * FROM Win32_LogicalDisk WHERE FreeSpace > 100000000000 AND Caption = „D:“
  • Computer contains an Intel Processor
    • SELECT * FROM Win32_Processor WHERE Manufacturer = „GenuineIntel“
  • Computer has more than 2 logical processors
    • SELECT * FROM Win32_ComputerSystem where NumberOfLogicalProcessors > 2
  • Computer has more than 1 physical processor
    • SELECT * FROM Win32_ComputerSystem where NumberOfProcessors > 1
  • Computer contains an IRDA device
    • SELECT * FROM CIM_InfraredController
  • Computer contains a floppy drive
    • SELECT * FROM Win32_FloppyDrive
  • Computer contains an active Trusted Platform Module (TPM)
    • SELECT * FROM Win32_Tpm WHERE IsEnabled_InitialValue = True
  • Computer is a Compaq Presario SR5115NL
    • SELECT * FROM Win32_ComputerSystem WHERE manufacturer = „Compaq-Presario“ and Model = „GN729AA-ABH SR5115NL“

Windows Operating System

  • 64 bits OS installed
    • SELECT OSArchitecture FROM Win32_OperatingSystem WHERE OSArchitecture = „64-bit“
  • OS Windows 7
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „6.1%“ and ProductType = „1“
  • OS Windows 7 with service pack 1
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „6.1%“ and ProductType = „1“ and ServicePackMajorVersion = „1“
  • OS Windows Vista
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „6.0%“ and ProductType = „1“
  • OS Windows XP
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „5.1%“ and ProductType = „1“
  • OS windows 2000 workstation
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „5.0%“ and ProductType = „1“
  • OS Windows 2008 R2 server
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „6.1%“ and ProductType <> „1“
  • OS Windows 2008 R2 server with service pack 1
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „6.1%“ and ProductType <> „1“ and ServicePackMajorVersion = „1“
  • OS Windows 2008 server
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „6.0%“ and ProductType <> „1“
  • OS Windows 2003 server
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „5.2%“ and ProductType <> „1“
  • OS windows 2000 server
    • SELECT * FROM Win32_OperatingSystem WHERE Version = „5.0%“ and ProductType <> „1“

Active Directory

  • Computer is an AD client computer
    • SELECT ProductType FROM Win32_OperatingSystem WHERE ProductType = „1“
  • Computer is an AD domain controller
    • SELECT ProductType FROM Win32_OperatingSystem WHERE ProductType = „2“
  • Computer is an AD member server
    • SELECT ProductType FROM Win32_OperatingSystem WHERE ProductType = „3“
  • AD Site-name is Brno
    • SELECT * FROM Win32_NTDomain WHERE ClientSiteName = „Brno“
(Visited 218 times, 1 visits today)

Napsat komentář

Vaše e-mailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *