Groups
Groups
Sign in
Groups
Groups
ru-powershell
Conversations
About
Send feedback
Help
Определяем пользователей, входивших в систему на этой неделе.
5 views
Skip to first unread message
ajax76
unread,
Mar 16, 2008, 12:43:39 PM
3/16/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ru-powershell
Get-EventLog -LogName security |
where { $_.EventId -match '528|538' -and
($_.UserName -notmatch 'SYSTEM|NETWORK SERVICE|LOCAL SERVICE') } |
select Username,TimeGenerated |
sort -descend TimeGenerated |
where { ( [datetime]::ToDay-$_.TimeGenerated ).Days -lt 6 }
Код развёрнут исключительно ради удобочитаемости, на самом деле всё
можно сделать в одной строке.
Reply all
Reply to author
Forward
0 new messages