This commit is contained in:
Zack Meier
2026-04-15 15:42:41 -05:00
parent 74edcc4d9a
commit 03dba08135
146 changed files with 9119 additions and 1 deletions
+48
View File
@@ -0,0 +1,48 @@
$InvokeResult = Invoke-Command -ComputerName itdkms3.nd.gov -Credential $PrvCred -ScriptBlock {
Get-WinEvent -LogName "Key Management Service" -MaxEvents 100000 | Select-Object TimeCreated, `
@{n='Hostname';e={$_.Message.Split("`n")[2].Split(',')[2]}}, `
@{n='ErrorCode';e={$_.Message.Split("`n")[2].Split(',')[0]}}, `
@{n='FullEntry';e={$_.Message.Split("`n")[2]}}, `
@{n='ActivationID';e={$_.Message.Split("`n")[2].Split(',')[8]}}, `
@{n='ProductName';e={
switch ($_.Message.Split("`n")[2].Split(',')[8]) {
'de32eafd-aaee-4662-9444-c1befb41bde2' { "Windows Server 2019 Standard" }
'34e1ae55-27f8-4950-8877-7a03be5fb181' { "Windows Server 2019 Datacenter" }
'8c1c5410-9f39-4805-8c9d-63a07706358f' { "Windows Server 2016 Standard" }
'b3ca044e-a358-4d68-9883-aaa2941aca99' { "Windows Server 2012R2 Standard" }
'73111121-5638-40f6-bc11-f1d7b0d64300' { "Windows 10 Enterprise" }
'd450596f-894d-49e0-966a-fd39ed4c4c64' { "Office 16, Office16ProPlusVL_KMS_Client edition" }
'b234abe3-0857-4f9c-b05a-4dc314f85557' { "Visio or Project 2016 ??" }
'85dd8b5f-eaa4-4af3-a628-cce9e77c9a03' { "Office 20xx C2R (deployed spring 2022 on Servers)" }
'21c56779-b449-4d20-adfc-eece0e1ad74b' { "Windows Server 2016 Datacenter"}
'e13ac10e-75d0-4aff-a0cd-764982cf541c' { "Visio or Project 2013 ??"}
'b13afb38-cd79-4ae5-9f7f-eed058d750ca' { "Office15 / Office Standard 2013 ??"}
'32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee' { "Windows 10 Enterprise LTSC 2021 ??"}
'2de67392-b7a7-462a-b1ca-108dd189f588' { "Windows 10 Pro"}
'829b8110-0e6f-4349-bca4-42803577788d' { "Office16ProjectProXC2RVL_KMS_ClientC2R ??"}
'b322da9c-a2e2-4058-9e4e-f59a6970bd69' { "Office15 / Office 2013 Professional Plus"}
'dedfa23d-6ed1-45a6-85dc-63cae0546de6' { "Office16StandardVL_KMS_Client"}
Default { "" }
}
}} | sort-object TimeCreated -Descending }
$InvokeResult | export-csv "D:\itdkms3-log.csv"
<#
Run
Get-WMIObject -Class SoftwareLicensingProduct
on client device to determine which software is which activation ID
Windows Server 2019 Standard - de32eafd-aaee-4662-9444-c1befb41bde2
Windows Server 2019 Datacenter - 34e1ae55-27f8-4950-8877-7a03be5fb181
Windows Server 2016 Standard - 8c1c5410-9f39-4805-8c9d-63a07706358f
Windows Server 2012R2 Standard - b3ca044e-a358-4d68-9883-aaa2941aca99
Windows 10 Enterprise - 73111121-5638-40f6-bc11-f1d7b0d64300
Office 16, Office16ProPlusVL_KMS_Client edition - d450596f-894d-49e0-966a-fd39ed4c4c64
Visio or Project 2016 ?? - b234abe3-0857-4f9c-b05a-4dc314f85557
Office 20xx (deployed spring 2022 on Servers) - 85dd8b5f-eaa4-4af3-a628-cce9e77c9a03
#>