Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
Active Directory
on which computer the user locked themselves?
Last Post 11 Aug 2010 03:02 AM by
Mihail Stacanov
. 1 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
Kratos
New Member
Posts:1
30 Jul 2010 06:44 AM
Hi
With the Code "get-qaduser -locked", i look for user there are been locked
its possible to see on which computer this happen?
Mihail Stacanov
New Member
Posts:15
11 Aug 2010 03:02 AM
#I think you can take a event log message from your DC (if you have logon/logoff logging) using this script
Get-QADUser -Locked | foreach `
{
Get-EventLog Security -ComputerName DC -InstanceId 540 -UserName $_.NTAccountName -Newest 1 | fl message
#or you can see all properties using just fl
}
But be careful if you have two or more DCs user logs only on one of them and event generates on it.
Also it's interesting that when the domain functional level is raised to Windows Server 2008, a new attribute becomes available that reveals the last time a user successfully logged on to a computer, the computer to which the user last logged on, and the number of failed logon attempts since the last logon.
http://proproit.com
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Books, Tools, and Videos
--Exchange Server
--Active Directory
--System Center Family
--Non-Microsoft Products
--SharePoint
--SQL Server
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
Active Directory
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2