gpt4 book ai didi

c# - 在 64 位机器上读取 Windows key 时出现问题

转载 作者:可可西里 更新时间:2023-11-01 11:35:43 24 4
gpt4 key购买 nike

我想用一个简单的 C# 应用程序读取注册表中的 Windows key 。但是在 x64 机器上,我只收到 BBBBB-BBBBB-BBBBB-BBBBB-BBBBB 作为 key ,这是错误的……我该如何解决这个问题?

RegistryKey key = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry64);
RegistryKey subkey = key.OpenSubKey("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");

谢谢!

最佳答案

根据这个Web Site这使得 CD Key 恢复软件和这个 Windows7Forums thread , 产品 ID 的所有 B 的存在表示 MAK(Multiple Activation Key) key 。

来自第一个链接:

The B’s means the cd key is not stored in your computer, so cannot be recovered. That can be due to a few reasons:

A MAK was used for activation;
SLMGR was used to remove the key from the windows registry,
or You’re running a pirated version of Windows.

来自第二个链接

This is a big problem when an administrator sets up many PCs with a volume license key. Because everyone can extract the VLC key and use it for additional installations. Because this reason the VLC key is automatically deleted from the registry after activation. And after this all key finder show only "not available" or BBBBB-BBBBB-BBBBB-BBBBB-BBBBB. With command line: slmgr –dli you can get a "Partial product key" – the last 5 characters of the product key. This "Partial product key" is saved in encrypted form in the certificate file "tokens.dat" (C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft\SoftwareProtectionPlatform\tokens.dat). Everyone who fears that his key can be stolen can also delete manually the product key from registry with this command line: slmgr –cpky (cpky = clear product key = remove product key from the registry)

关于c# - 在 64 位机器上读取 Windows key 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11593413/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com