如何使用Acctinfo.dll了解更多AD用户帐号信息?
来源:http://winiw.net
作者:Enigma
说明
Acctinfo.dll是一个动态链接库文件,注册这个动态链接库文件之后,管理员可以通过使用“Active Directory用户和计算机”管理控制台查看用户属性的时候,增加一个“Additional Account Info”选项卡。这个选项卡可以让管理员查看Active Directory中的一些高级信息,例如:用户上次修改密码时间、用户帐户上次登录时间等。使用“Additional Account Info”选项卡查看信息,主要是出于以下两个方面的需求。
- 在某些情况下,部分信息没有被明确的保存在Active Directory中,只是在需要的时候被计算出来。例如:某用户帐户密码到期的具体日期并没有被存在Active Directory中,可是在Active Directory中却存储了用户最近更改密码的日期和密码最长使用期限。为了能够判断一个用户帐户密码具体的到期日期,通常情况下可能会使用脚本获取这些信息然后计算出最后的结果。Acctinfo.dll可以自动计算这些数据,并直接将结果显示出来。
- 在某些情况下,部分信息没有被存储在Active Directory中,而是被存储在本地。例如:某用户帐户上次登录时间和上次注销时间仅仅被存储每个域控制器本地,并没有复制到域中的其他域控制器中。Acctinfo.dll可以帮助管理员检查某台域控制器上用户上次登录和注销的具体时间。如果你在域中有多个域控制器,管理员可能需要在每个域控制器上都安装Acctinfo.dll以检查某一个用户帐户在每台域控制器上的登录、注销时间。
此外,使用Acctinfo.dll还可以更加方便的修改用户帐户密码,锁定或解除锁定用户帐户。
300)this.width=300" border=0
系统要求
Windows Server 2003 或 Windows 2000 Server 操作系统
安装Acctinfo.dll必须拥有管理员权限
文件要求
Acctinfo.dll
安装Acctinfo.dll
在使用Acctinfo.dll之前,需要安装注册Acctinfo.dll文件。
1。将Acctinfo.dll文件复制到“%windir%/system32”文件夹中。在Windows Server 2003中,通常这个文件夹为“C:/Windows/System32”;在Windows 2000中,这个文件夹通常为“C:/Winnt/System32”。
2。打开命令行窗口,假设“%windir%/system32”文件夹为“C:/Windows/System32”,键入以下内容:
regsvr32 c:/windows/system32/acctinfo.dll
如果命令执行成功,将会出现一个成功注册Acctinfo.dll的对话框。
卸载Acctinfo.dll
可以随时卸载Acctinfo.dll。
打开命令行窗口,假设当前系统的“windir%/system32”文件夹为“C:/Windows/System32”,键入如下内容:
regsvr32 /u c:/windows/system32/acctinfo.dll
如果命令执行成功,Acctinfo.dll将会被成功卸载。
使用说明
安装注册Acctinfo.dll之后,启动“Active Directory 用户和计算机”管理控制台,双击查看某一用户帐户的属性,选择“Additional Account Info”选项卡。各项具体含义如下表所述
属性 | 描述 |
Password Last Set | 显示用户帐户密码上次设定时间。 |
Domain Password Policies | 单击这个按钮,可以查看域中密码策略。 |
Password Expires | 显示用户帐户密码到期的具体日期。如果用户密码是永不过期,可以单击“Decode”按钮,在出现的对话框中显示“UF_DONT_EXPIRE_PASSWD”,说明用户密码永不过期。 |
User Account Control | 显示Active Directory中存储在“userAccountControl”属性中的值,这里存储了数据包括用户密码是否有期限,用户是否需要使用智能卡登录记以及用户是否被信任作为委派等信息。数字是所有在“userAccountControl”中被允许的标记的总和。单击“Decode”按钮,可以查看具体属性配置。例如出现“ADS_UF_PASSWORD_EXPIRED”,则说明当前用户帐户的密码已经过期。 |
Locked Out | 显示用户帐户是否被锁定。 |
Last-Logon-Timestamp |
显示当前用户最近登录到此域控制的具体日期和时间。 如果在成员服务器上安装使用“Active Directory 用户和计算机”和“Acctinfo.dll”查看,显示的信息是登录此成员服务器使用的域控制器上的信息。 判断登录到哪个域控制器,可以看我另外一篇Blog。查看 |
SID and SID History | 显示用户帐户的SID。如果用户帐户是从另外一个域或森林中迁移过来的,SID History按钮将会有效。单击这个按钮可以查看用户帐户以前的SID。 |
GUID | 显示用户帐户的Globally Unique Identifier (GUID)。 |
Last Logon | 显示用户上次登录日期和时间。这是指被此域控制器最近验证的日期和时间。 |
Last Logoff | 显示用户上次从此域控制器上注销的时间。 |
Last Bad Logon Time | 显示用户从此域控制器上次登录失败的日期和时间。 |
Logon Count | 显示用户从此域控制器上成功登录的次数。 |
Bad Password Count | 显示用户从此域控制器上登录失败的次数。 |
修改用户帐户属性
虽然Acctinfo.dll主要是用来显示信息。但是他也可以修改用户帐户的部分属性。
在“Additional Account Info”选项卡中,单击“Set PW On Site DC”按钮。在新出现的对话框中,如图所示,修改用户帐户的密码。这种密码修改方式是直接连接到用户所在站点的域控制器上执行操作,所以执行速度更快。同时在这个对话框中,也可以解除用户帐户的锁定状态。
300)this.width=300" border=0
注意
Acctinfo.dll必须在所有使用“Active Directory用户和计算机”管理控制台查看用户帐户信息的计算机上安装注册。例如:假设管理员通常情况下在两台服务器上查看用户帐户信息,分别是Server A和Server B。如果你在Server A上安装注册了Acctinfo.dll,那么“Additional Account Info”选项卡将会在“Active Directory 用户和计算机”中出现。不过在Server B上,这个选项卡不会在“Active Directory 用户和计算机”中,除非你在Server B上也安装注册Acctinfo.dll。
Windows Server 2003 Resource Kit Tools
The Microsoft® Windows® Server 2003 Resource Kit Tools are a set of tools to help administrators streamline management tasks such as troubleshooting operating system issues, managing Active Directory®, configuring networking and security features, and automating application deployment.
下载 |
Overview
The Microsoft® Windows® Server 2003 Resource Kit Tools are a set of tools to help administrators streamline management tasks such as troubleshooting operating system issues, managing Active Directory®, configuring networking and security features, and automating application deployment.
The following tools are provided:
-
Acctinfo.dll (documented in Readme.htm)
-
Adlb.exe: Active Directory Load Balancing Tool
-
Admx.msi: ADM File Parser
-
Atmarp.exe: Windows ATM ARP Server Information Tool
-
Atmlane.exe: Windows ATM LAN Emulation Client Information
-
Autoexnt.exe: AutoExNT Service
-
Cdburn.exe: ISO CD-ROM Burner Tool
-
Checkrepl.vbs: Check Replication
-
Chklnks.exe: Link Check Wizard
-
Chknic.exe: Network Interface Card Compliance Tool for Network Load Balancing
-
Cleanspl.exe: Spooler Cleaner
-
Clearmem.exe: Clear Memory
-
Clusdiag.msi: Cluster Diagnostics and Verification Tool
-
Clusfileport.dll: Cluster Print File Port
-
Clusterrecovery.exe: Server Cluster Recovery Utility
-
Cmdhere.inf: Command Here
-
Cmgetcer.dll: Connection Manager Certificate Deployment Tool
-
Compress.exe: Compress Files
-
Confdisk.exe: Disk Configuration Tool
-
Consume.exe: Memory Consumers Tool
-
Creatfil.exe: Create File
-
Csccmd.exe: Client-Side Caching Command-Line Options
-
Custreasonedit.exe: Custom Reason Editor (documented in Readme.htm)
-
Delprof.exe: User Profile Deletion Utility
-
Dh.exe: Display Heap
-
Diskraid.exe: RAID Configuration Tool
-
Diskuse.exe: User Disk Usage Tool
-
Dnsdiag.exe: SMTP DNS Diagnostic Tool (documented in Readme.htm)
-
Dumpfsmos.cmd: Dump FSMO Roles
-
Dvdburn.exe: ISO DVD Burner Tool
-
Empty.exe: Free Working Set Tool
-
Eventcombmt.exe: Check Replication
-
Fcopy.exe: File Copy Utility for Message Queuing
-
Frsflags.vbs
-
Getcm.exe: Connection Manager Profile Update
-
Gpmonitor.exe: Group Policy Monitor
-
Gpotool.exe: Group Policy Objects
-
Hlscan.exe: Hard Link Display Tool
-
Ifilttst.exe: IFilter Test Suite
-
Ifmember.exe: User Membership Tool
-
Inetesc.adm: Internet Explorer Enhanced Security Configuration
-
Iniman.exe: Initialization Files Manipulation Tool
-
Instcm.exe: Install Connection Manager Profile
-
Instsrv.exe: Service Installer
-
Intfiltr.exe: Interrupt Affinity Tool
-
Kerbtray.exe: Kerberos Tray
-
Kernrate.exe: Kernel Profiling Tool
-
Klist.exe: Kerberos List
-
Krt.exe: Certification Authority Key Recovery
-
Lbridge.cmd: L-Bridge
-
Linkd.exe
-
Linkspeed.exe: Link Speed
-
List.exe: List Text File Tool
-
Lockoutstatus.exe: Account Lockout Status (documented in Readme.htm)
-
Logtime.exe
-
Lsreport.exe: Terminal Services Licensing Reporter
-
Lsview.exe: Terminal Services License Server Viewer
-
Mcast.exe: Multicast Packet Tool
-
Memmonitor.exe: Memory Monitor
-
Memtriage.exe: Resource Leak Triage Tool
-
Mibcc.exe: SNMP MIB Compiler
-
Moveuser.exe: Move Users
-
Mscep.dll: Certificate Services Add-on for Simple Certificate Enrollment Protocol
-
Nlsinfo.exe: Locale Information Tool
-
Now.exe: STDOUT Current Date and Time
-
Ntimer.exe: Windows Program Timer
-
Ntrights.exe
-
Oh.exe: Open Handles
-
Oleview.exe: OLE/COM Object Viewer
-
Pathman.exe: Path Manager
-
Permcopy.exe: Share Permissions Copy
-
Perms.exe: User File Permissions Tool
-
Pfmon.exe: Page Fault Monitor
-
Pkiview.msc: PKI Health Tool
-
Pmon.exe: Process Resource Monitor
-
Printdriverinfo.exe: Drivers Source
-
Prnadmin.dll: Printer Administration Objects
-
Qgrep.exe
-
Qtcp.exe: QoS Time Stamp
-
Queryad.vbs: Query Active Directory
-
Rassrvmon.exe: RAS Server Monitor
-
Rcontrolad.exe: Active Directory Remote Control Add-On
-
Regini.exe: Registry Change by Script
-
Regview.exe (documented in Readme.htm)
-
Remapkey.exe: Remap Windows Keyboard Layout
-
Robocopy.exe: Robust File Copy Utility
-
Rpccfg.exe: RPC Configuration Tool
-
Rpcdump.exe
-
Rpcping.exe
-
RPing: RPC Connectivity Verification Tool
-
Rqc.exe: Remote Access Quarantine Client
-
Rqs.exe: Remote Access Quarantine Agent
-
Setprinter.exe: Spooler Configuration Tool
-
Showacls.exe
-
Showperf.exe: Performance Data Block Dump Utility
-
Showpriv.exe: Show Privilege
-
Sleep.exe: Batch File Wait
-
Sonar.exe: FRS Status Viewer
-
Splinfo.exe: Print Spooler Information
-
Srvany.exe: Applications as Services Utility
-
Srvcheck.exe: Server Share Check
-
Srvinfo.exe: Remote Server Information
-
Srvmgr.exe: Server Manager
-
Ssdformat.exe: System State Data Formatter
-
Subinacl.exe
-
Tail.exe
-
Tcmon.exe: Traffic Control Monitor
-
Timeit.exe (documented in Readme.htm)
-
Timezone.exe: Daylight Saving Time Update Utility
-
Tsctst.exe: Terminal Server Client License Dump Tool
-
Tsscalling.exe: Terminal Services Scalability Planning Tools
-
Uddicatschemeeditor.exe: UDDI Services Categorization Scheme Editor
-
Uddiconfig.exe: UDDI Services Command-line Configuration Utility
-
Uddidataexport.exe: UDDI Data Export Wizard
-
Usrmgr.exe: User Manager for Domains
-
Vadump.exe: Virtual Address Dump
-
Vfi.exe: Visual File Information
-
Volperf.exe: Shadow Copy Performance Counters
-
Volrest.exe: Shadow Copies for Shared Folders Restore Tool
-
Vrfydsk.exe: Verify Disk
-
Winexit.scr: Windows Exit Screen Saver
-
Winhttpcertcfg.exe: WinHTTP Certificate Configuration Tool
-
Winhttptracecfg.exe: WinHTTP Tracing Facility Configuration Tool
-
Winpolicies.exe: Policy Spy
-
Winpolicies.exe: Policy Spy
-
Winhttptracecfg.exe: WinHTTP Tracing Facility Configuration Tool
-
Winhttpcertcfg.exe: WinHTTP Certificate Configuration Tool
-
Winexit.scr: Windows Exit Screen Saver
-
Vrfydsk.exe: Verify Disk
-
Volrest.exe: Shadow Copies for Shared Folders Restore Tool
-
Volperf.exe: Shadow Copy Performance Counters
-
Vfi.exe: Visual File Information
-
Vadump.exe: Virtual Address Dump
-
Usrmgr.exe: User Manager for Domains
-
Uddidataexport.exe: UDDI Data Export Wizard
-
Uddiconfig.exe: UDDI Services Command-line Configuration Utility
-
Uddicatschemeeditor.exe: UDDI Services Categorization Scheme Editor
-
Tsscalling.exe: Terminal Services Scalability Planning Tools
-
Tsctst.exe: Terminal Server Client License Dump Tool
-
Timezone.exe: Daylight Saving Time Update Utility
-
Timeit.exe (documented in Readme.htm)
-
Tcmon.exe: Traffic Control Monitor
-
Tail.exe
-
Subinacl.exe
-
Ssdformat.exe: System State Data Formatter
-
Srvmgr.exe: Server Manager
-
Srvinfo.exe: Remote Server Information
-
Srvcheck.exe: Server Share Check
-
Srvany.exe: Applications as Services Utility
-
Splinfo.exe: Print Spooler Information
-
Sonar.exe: FRS Status Viewer
-
Sleep.exe: Batch File Wait
-
Showpriv.exe: Show Privilege
-
Showperf.exe: Performance Data Block Dump Utility
-
Showacls.exe
-
Setprinter.exe: Spooler Configuration Tool
-
Rqs.exe: Remote Access Quarantine Agent
-
Rqc.exe: Remote Access Quarantine Client
-
RPing: RPC Connectivity Verification Tool
-
Rpcping.exe
-
Rpcdump.exe
-
Rpccfg.exe: RPC Configuration Tool
-
Robocopy.exe: Robust File Copy Utility
-
Remapkey.exe: Remap Windows Keyboard Layout
-
Regview.exe (documented in Readme.htm)
-
Regini.exe: Registry Change by Script
-
Rcontrolad.exe: Active Directory Remote Control Add-On
-
Rassrvmon.exe: RAS Server Monitor
-
Queryad.vbs: Query Active Directory
-
Qtcp.exe: QoS Time Stamp
-
Qgrep.exe
-
Prnadmin.dll: Printer Administration Objects
-
Printdriverinfo.exe: Drivers Source
-
Pmon.exe: Process Resource Monitor
-
Pkiview.msc: PKI Health Tool
-
Pfmon.exe: Page Fault Monitor
-
Perms.exe: User File Permissions Tool
-
Permcopy.exe: Share Permissions Copy
-
Pathman.exe: Path Manager
-
Oleview.exe: OLE/COM Object Viewer
-
Oh.exe: Open Handles
-
Ntrights.exe
-
Ntimer.exe: Windows Program Timer
-
Now.exe: STDOUT Current Date and Time
-
Nlsinfo.exe: Locale Information Tool
-
Mscep.dll: Certificate Services Add-on for Simple Certificate Enrollment Protocol
-
Moveuser.exe: Move Users
-
Mibcc.exe: SNMP MIB Compiler
-
Memtriage.exe: Resource Leak Triage Tool
-
Memmonitor.exe: Memory Monitor
-
Mcast.exe: Multicast Packet Tool
-
Lsview.exe: Terminal Services License Server Viewer
-
Lsreport.exe: Terminal Services Licensing Reporter
-
Logtime.exe
-
Lockoutstatus.exe: Account Lockout Status (documented in Readme.htm)
-
List.exe: List Text File Tool
-
Linkspeed.exe: Link Speed
-
Linkd.exe
-
Lbridge.cmd: L-Bridge
-
Krt.exe: Certification Authority Key Recovery
-
Klist.exe: Kerberos List
-
Kernrate.exe: Kernel Profiling Tool
-
Kerbtray.exe: Kerberos Tray
-
Intfiltr.exe: Interrupt Affinity Tool
-
Instsrv.exe: Service Installer
-
Instcm.exe: Install Connection Manager Profile
-
Iniman.exe: Initialization Files Manipulation Tool
-
Inetesc.adm: Internet Explorer Enhanced Security Configuration
-
Ifmember.exe: User Membership Tool
-
Ifilttst.exe: IFilter Test Suite
-
Hlscan.exe: Hard Link Display Tool
-
Gpotool.exe: Group Policy Objects
-
Gpmonitor.exe: Group Policy Monitor
-
Getcm.exe: Connection Manager Profile Update
-
Frsflags.vbs
-
Fcopy.exe: File Copy Utility for Message Queuing
-
Eventcombmt.exe: Check Replication
-
Empty.exe: Free Working Set Tool
-
Dvdburn.exe: ISO DVD Burner Tool
-
Dumpfsmos.cmd: Dump FSMO Roles
-
Dnsdiag.exe: SMTP DNS Diagnostic Tool (documented in Readme.htm)
-
Diskuse.exe: User Disk Usage Tool
-
Diskraid.exe: RAID Configuration Tool
-
Dh.exe: Display Heap
-
Delprof.exe: User Profile Deletion Utility
-
Custreasonedit.exe: Custom Reason Editor (documented in Readme.htm)
-
Csccmd.exe: Client-Side Caching Command-Line Options
-
Creatfil.exe: Create File
-
Consume.exe: Memory Consumers Tool
-
Confdisk.exe: Disk Configuration Tool
-
Compress.exe: Compress Files
-
Cmgetcer.dll: Connection Manager Certificate Deployment Tool
-
Cmdhere.inf: Command Here
-
Clusterrecovery.exe: Server Cluster Recovery Utility
-
Clusfileport.dll: Cluster Print File Port
-
Clusdiag.msi: Cluster Diagnostics and Verification Tool
-
Clearmem.exe: Clear Memory
-
Cleanspl.exe: Spooler Cleaner
-
Chknic.exe: Network Interface Card Compliance Tool for Network Load Balancing
-
Chklnks.exe: Link Check Wizard
-
Checkrepl.vbs: Check Replication
-
Cdburn.exe: ISO CD-ROM Burner Tool
-
Autoexnt.exe: AutoExNT Service
-
Atmlane.exe: Windows ATM LAN Emulation Client Information
-
Atmarp.exe: Windows ATM ARP Server Information Tool
-
Admx.msi: ADM File Parser
-
Adlb.exe: Active Directory Load Balancing Tool