Netwrix 1Secure 提供跨数据和身份的统一可见性——免费试用14天,享有完全访问权限。开始免费试用

资源中心操作指南

如何获取设置了 Password Never Expires 的用户列表

如何获取设置了 Password Never Expires 的用户列表

Netwrix Auditor for Active Directory

  • 运行 Netwrix Auditor → 转到“Reports” → 打开“Active Directory” → 进入“Active Directory - State-in-Time” → 选择“User Accounts – Passwords Never Expire” → 点击“View”。
  • 如需通过电子邮件定期接收报告,请单击“Subscribe”按钮并选择您偏好的计划。
Image


原生审计

  • 打开 Powershell ISE → 使用以下代码创建新脚本并运行,指定导出路径:
      # Import the AD module to the session

Import-Module ActiveDirectory

#Search for the users and export report

get-aduser -filter * -properties Name, PasswordNeverExpires | where {
$_.passwordNeverExpires -eq "true" } | Select-Object DistinguishedName,Name,Enabled |
Export-csv c:\data\pw_never_expires.csv -NoTypeInformation
      
  • 在 MS Excel 中打开脚本生成的文件。
a spreadsheet with a list of names and their enabled values .

分享到