1: $key = Get-Item 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion\Fonts'
2: foreach ($subkeyname in $key.property) {
3: if ($subkeyname.contains("TrueType")) {
4: $subkeyname
5: $truetype++
6: }
7: }
8: ""
9: "TrueType: $truetype"
10: "Total: " + $key.Property.Length
This was pretty straight forward and really doesnt need much explaining. Simply getting the key as an array and parsing through it looking for "TrueType" in the name with the Foreach statement.
No comments:
Post a Comment