Post windows activation is there any file in the C drive gets updates?

Santhosh B S 106 Reputation points
2023-09-27T09:20:45.76+00:00

Team,

I have 10k windows domain joined devices and I get many incidents to activate windows. I use script which will be deployed using SCCM tool.

Question is, is there any file in C drive which gets updated post windows activation? So that I can configure a baseline in SCCM saying if that file is not modified for 170 days go and run the activation script?

How can I automate the windows activation in case my server is not activating?

Microsoft Security | Intune | Configuration Manager | Other
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Darrell Gorter 2,731 Reputation points
    2023-09-27T15:10:24.41+00:00

    Hello,

    You do not mention which type of activation you are using. I suspect KMS?

    since you mention 170 days it appears to be AD, Token or KMS.

    This info is in the Event logs see the following link. (Time to expiration in minutes should show this) https://learn.microsoft.com/en-us/windows-server/get-started/activation-troubleshoot-kms-general

    There may be WMI methods to query as well.

    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-r2-and-2012/dn502536(v=ws.11)

    you can query the days remaining by using: cscript slmgr.vbs /xpr >act.txt

    But if this KMS why are the machines not automatically activating?

    If it's not KMS activation what type of activation is it?

    Darrell

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.