ESU MAK key relevance

Would like assistance on this relevance need. We are currently working through our 2008 ESU Activation, but due to domain and affiliated companies, are not able to stand up a VAMT server in each domain as of yet.

So the team is currently running the ESU Key Management: Install and Activate MAK - Windows Server 2008 SP2 and Windows Server 2008R2 SP1 fixlet. If we get an Exit code of 8698, we then run custom content to dump the slmgr.vbs /dlv command to an output text file to then pull the information back via an Analysis.

My relevance currently to pull back the Installation ID:
concatenation " | " of (following texts of firsts ": " of lines whose (it contains “Installation ID”) of file “location of the output file”)

This pulls back the ESU MAK as well as the KMS content. I would like to pull back just the Server-ESU-Year content or then N/A if not present.

Can you give a sample of what a few of the lines look like?

Microsoft ® Windows Script Host Version 5.8
Copyright © Microsoft Corporation. All rights reserved.

Software licensing service version: 6.1.7601.17514

Name: Windows® 7, Server-ESU-Year1 add-on for ServerDatacenter,ServerDatacenterCore,ServerDatacenterV,ServerDatacenterVCore,ServerStandard,ServerStandardCore,ServerStandardV,ServerStandardVCore,ServerEnterprise,ServerEnterpriseCore,ServerEnterpriseV,ServerEnterpriseVCore
Description: Windows Operating System - Windows® 7, VOLUME_MAK channel
Activation ID: 123456ab-1abc-123a-a123-a123456789ab
Application ID: 12a34567-a123-1a23-123a-a1bc2d34567e
Extended PID: 12345-12345-123-123456-12-1234-1234.0000-0123456
Installation ID: 123456789123456789123456789123456789123456789123456789
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=12345
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=12345
Use License URL: http://go.microsoft.com/fwlink/?LinkID=12345
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=12345
Partial Product Key: ABCDE
License Status: Unlicensed
Remaining Windows rearm count: 1
Trusted time: 3/19/2020 1:54:35 PM

Name: Windows Server®, ServerStandard edition
Description: Windows Operating System - Windows Server®, VOLUME_KMSCLIENT channel
Activation ID: 98765zy4-9876-9876-98zy-z98y7x65432w
Application ID: 98z76543-z987-z987-987ze-z9yx8w76543v
Extended PID: 98765-98765-987-987654-98-9876-9800.0000-9876543
Installation ID: 987654321987654321987654321987654321987654321987654321
Partial Product Key: ZYXWV
License Status: Licensed
Volume activation expiration: 256560 minute(s) (178 day(s))
Remaining Windows rearm count: 1
Trusted time: 3/19/2020 1:54:36 PM

@baynes74 I would love to cover this in our Webinar on Thursday. Could you join us there and we will talk it through?

Already on my calendar. Appreciate any assistance on making our current process smoother.

@baynes74

Thanks for coming to the Webinar. Here is the relevance and action scripts we demoed.

q: preceding text of first "|" of following text of first "|Installation ID: " of  substrings separated by "|Name: " whose (it contains "Client-ESU-Year" ) of concatenation "|" of lines of file "c:\test\dlv.txt"
A: 007930605165495316230836842442205310429671343081950512
T: 2.523 ms

q: preceding text of first "|" of following text of first "|Activation ID: " of  substrings separated by "|Name: " whose (it contains "Client-ESU-Year" ) of concatenation "|" of lines of file "c:\test\dlv.txt"
A: 77db037b-95c3-48d7-a3ab-a9c6d41093e0
T: 1.703 ms

q: preceding text of first "|" of following text of first "|Extended PID: " of  substrings separated by "|Name: " whose (it contains "Client-ESU-Year" ) of concatenation "|" of lines of file "c:\test\dlv.txt"
A: 55041-00172-632-272747-03-1033-7601.0000-0362020
T: 0.870 ms

q: (string value of property "OfflineInstallationId" of it) of select objects "name, licensestatus, OfflineInstallationId, ID from softwarelicensingproduct where LicenseStatus >0" whose (string value of property "name" of it contains "Client-ESU-Year" AND integer value of property "LicenseStatus" of it >1 ) of wmi

delete c:\test\dlv.txt
waithidden cmd.exe /C cscript c:\windows\system32\slmgr.vbs /dlv >> c:\test\dlv.txt
parameter "Installation ID"="{preceding text of first "|" of following text of first "|Installation ID: " of  substrings separated by "|Name: " whose (it contains "Client-ESU-Year" ) of concatenation "|" of lines of file "c:\test\dlv.txt"}"
3 Likes