问题描述
有没有办法将 HKEY_USERS 下的值连接到实际用户名?
我看到了一些类似的问题,但大多数(如果不是全部)谈论的是 C# 代码,而我需要的是 VBScript.
Is there a way to connect between the values under HKEY_USERS to the actual username?
I saw some similar questions, but most (if not all) talks about C# code, and my need is in VBScript.
推荐答案
如果您查看以下任一键:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist
If you look at either of the following keys:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist
您可以在那里找到具有各种值的 SID 列表,包括包含用户名的主路径"的位置.
You can find a list of the SIDs there with various values, including where their "home paths" which includes their usernames.
我不确定这有多可靠,除非您真的确定自己在做什么,否则我不建议您搞砸.
I'm not sure how dependable this is and I wouldn't recommend messing about with this unless you're really sure what you're doing.
这篇关于从 HKEY_USERS 值中获取用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!