【问题标题】:Is there any way to read password policies via the WMI RSOP_XXX classes?有没有办法通过 WMI RSOP_XXX 类读取密码策略?
【发布时间】:2009-11-18 21:01:49
【问题描述】:

这些都位于 root\RSOP\Computer 命名空间中。我得到非空结果的唯一类是 RSOP_RegistryPolicySetting,而那个类只为我提供了 Windows 更新和系统还原配置的设置。

我知道我们的网络中存在密码策略(年龄、长度等),但对以下类的查询只给出了空结果:

RSOP_ScriptPolicySetting
RSOP_SecuritySettingNumeric
RSOP_SecuritySettingBoolean
RSOP_SecuritySettingString

【问题讨论】:

    标签: wmi group-policy


    【解决方案1】:

    必须通过 WMI 吗?

    如果您正在运行域,Microsoft 的脚本专家有一篇文章 How Long Until My Password Expires?... 但它使用 ADSI 从 Active Directory 读取策略,而不是本地计算机上的策略。

    【讨论】:

      猜你喜欢
      • 2010-09-07
      • 2014-11-29
      • 1970-01-01
      • 2019-04-03
      • 1970-01-01
      • 2011-05-18
      • 1970-01-01
      • 1970-01-01
      • 2019-06-11
      相关资源
      最近更新 更多