Win32_NetworkLoginProfile类提取用户信息 - 解释Flags值 [英] Win32_NetworkLoginProfile class to extract the user information - Interpret Flags values

查看:126
本文介绍了Win32_NetworkLoginProfile类提取用户信息 - 解释Flags值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在使用"Win32_NetworkLoginProfile" 类来提取本地系统上的用户信息。当我执行"Get-WmiObject -class Win32_NetworkLoginProfile |"时选择* "在我的机器的Powershell中,我得到Flags
= 513.我检查了MSDN链接(https://msdn.microsoft.com/en-us/library/aa394221%28v=vs.85%29.aspx ?f = 255& MSPPError = -2147217396)了解该类的详细信息。我在这里有一个查询:

I am using "Win32_NetworkLoginProfile " class to extract the user information on my local system. when I have executed "Get-WmiObject -class Win32_NetworkLoginProfile | Select * " in my machine's Powershell, I am getting Flags = 513. I have checked the MSDN link (https://msdn.microsoft.com/en-us/library/aa394221%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396) for the details of this class. I am having a query here:

Flags = 513与Flags的BitValues中的任何值都不匹配。我怎么知道513代表什么?

Flags = 513 is not matching any value in BitValues of Flags. How can I know what 513 stands for?

谢谢。

Thanks.

推荐答案

您好
Prateek Tiwari

感谢您在此发帖。

根据我的理解话题。 513表示脚本
普通帐户。

Based on my understand the topic. The 513 represents Script and Normal Account.

有关详细信息,请参阅二进制格式并匹配这些位值。你会找到答案。

二进制格式的标志513是0010 0000 0001

The flag 513 in binary format is ‭0010 0000 0001‬

BitMap (QUOT 0 QUOT;," 1 QUOT;," 3英寸;," 4英寸;," 5英寸;," 6英寸;," 7英寸;," 8英寸;," 9 QUOT;," 11 QUOT ;,
" 12英寸;," 13 QUOT;," 16"," 17"," 18 QUOT;," 19 QUOT;," 20"," 21","22","23",

BitMap ("0", "1", "3", "4", "5", "6", "7", "8", "9", "11", "12", "13", "16", "17", "18", "19", "20", "21", "22", "23"),

<强> BitValues (QUOT;脚本","帐户残疾人","主目录必需","锁定","不需要密码"," Paswword
不能更改","加密后的检验密码允许的","临时重复帐户","正常帐户];,"间信任帐户" ;, "工作站信任帐户];,"服务器信托帐户];,"不会过期
密码"," MNS登录帐户","智能卡要求与QUOT;,"为委派信任","不委托","仅使用DES密钥","不要求预先授权","密码已过期")    

BitValues ("Script", "Account Disabled", "Home Dir Required", "Lockout", "Password Not Required", "Paswword Can't Change", "Encrypted Test Password Allowed", "Temp Duplicate Account", "Normal Account", "InterDomain Trust Account", "WorkStation Trust Account", "Server Trust Account", "Don't Expire Password", "MNS Logon Account", "Smartcard Required", "Trusted For Delegation", "Not Delegated", "Use DES Key Only", "Don't Require Preauthorization", "Password Expired")    

最好的问候,

Hart


这篇关于Win32_NetworkLoginProfile类提取用户信息 - 解释Flags值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆