15.ledna 2010

PC a internet WMI dotazy

Při instalaci SW pomocí Group policy je často potřeba instalovat jiný software pro 32-bitový a jiný pro 64-bitový operační systém. Nebo některé aplikace instalovat jen na některé Operační systémy. Toto lze snadno vyřešit pomocí WMI dotazu:

64-bitový OS

Select * from Win32_Processor where AddressWidth ='64'

32-bitový OS

Select * from Win32_Processor where AddressWidth ='32'

Workstation

Select * from WIN32_OperatingSystem where ProductType=1

Domain Controller

Select * from WIN32_OperatingSystem where ProductType=2

Server

Select * from WIN32_OperatingSystem where ProductType=3

Windows XP

Select * from WIN32_OperatingSystem where Version='5.1.2600' and ProductType=1

Windows Vista

Select * from WIN32_OperatingSystem where Version='6.0.6002' and ProductType=1

Windows 7

Select * from WIN32_OperatingSystem where Version='6.1.7600' and ProductType=1

Windows 2003

Select * from WIN32_OperatingSystem where Version='5.2.3790' and ProductType>1

Windows 2008

Select * from WIN32_OperatingSystem where Version='6.0.6002' and ProductType>1

Windows 2008 R2

Select * from WIN32_OperatingSystem where Version='6.1.7600' and ProductType>1

Hledáte-li správce sítě nebo prostě nekoho kdo umí spravovat servery, hledejte na www.petr-hladis.cz

Přečteno: 3696x | Komentářů: 1x | Kategorie: PC a internet

Komentáře čtenářů

1. GRAVATAR - asteway@baileymail.xyzasteway26. 2. 2023 19:31:00
<a href=https://buycialis.buzz>buy cheap cialis online</a> Sincerely yours, Maxine

Přidat vlastní komentář k článku



Z důvovů ochrany proti spamu prosím do následujícího políčka napište texy "NOSPAM":

Chcete-li ke komentáři přidat svou fotku nebo jinou ikonku, postupujte podle návodu.


TOPlist

[CNW:Counter]