Selon les cas, cela peut-être vraiment très intéressant.
$regset = get-item "HKLM:Software/Microsoft/Windows NT/CurrentVersion" foreach( $i in $regset.GetValueNames() ){ Write-Host $i " = " $regset.GetValue($i) }Ce qui produit le résultat suivant (dont j'ai masqué une partie des valeurs):
CurrentVersion = 6.1 CurrentBuild = 7600 SoftwareType = System CurrentType = Multiprocessor Free InstallDate = 1294140650 RegisteredOrganization = RegisteredOwner = UTILISATEUR SystemRoot = C:\Windows InstallationType = Client EditionID = Professional ProductName = Windows 7 Professional ProductId = 00371-OEM-8992671-00007 DigitalProductId = 164 0 0 0 3 0 0 0 48 48 51 55 49 45 79 69 77 45 56 57 57 50 54 55 49 45 48 48 ... 0 0 0 0 0 0 0 0 0 0 138 54 94 179 DigitalProductId4 = 248 4 0 0 4 0 0 0 48 0 48 0 51 0 55 0 49 0 45 0 48 0 48 0 49 0 55 0 56 0 45 0 57 0 50 0 54 0 45 0 55 0 48 0 48 0 48 0 48 0 55 0 45 0 48 0 50 0 45 0 49 0 48 0 51 0 51 0 45 0 55 0 ... 0 0 0 79 0 69 0 77 0 58 0 83 0 76 0 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CurrentBuildNumber = 7600 BuildLab = 7600.win7_ldr.110622-1505 BuildLabEx = 7600.20994.amd64fre.win7_ldr.110622-1505 BuildGUID = 0d6bd58e-3df7-4453-87c2-093e51a17572 CSDBuildNumber = 1 PathName = C:\Windows
Aucun commentaire:
Enregistrer un commentaire