Programmatically check whether Windows 7 is activated

前端 未结 5 1456
慢半拍i
慢半拍i 2021-02-14 12:13

Background: I am creating system images that will be loaded onto several workstations. Windows activation will occur after the images are loaded onto the workst

5条回答
  •  醉话见心
    2021-02-14 12:37

    Not sure if it applies to Win7, but I found a post that checks XP for activation using a Win32_WindowsProductActivation class.

    I'll build a test one on my machine (x64 Win7) and see if it returns activated or not, but at least gives you something to try out in the mean time.

    EDIT (wish I kept reading the docs) A comment on that class page mentions that this class, on Win 7 and other versions) appears to be replaced with the Software Licensing Classes. I'll see if I can get a working result.

提交回复
热议问题