{"id":259972,"date":"2015-06-23T20:35:02","date_gmt":"2015-06-23T16:35:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259972"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259972","title":{"rendered":"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0445 Windows: \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0430 \u043d\u0430 E-mail \u0432 Windows Server 2012 R2"},"content":{"rendered":"<p>     \t\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e, \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u0443\u0434\u0438\u0442\u0430 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c PCI DSS, \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 Windows \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u043d\u0430 E-mail. \u0414\u043b\u044f Linux \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u043e\u043f\u0440\u043e\u0441 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/192800\/\">OSSEC<\/a> (\u043d\u0443 \u0435\u0449\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f <b>syslog<\/b> ws <b>loganalyzer<\/b> \u0438 <b>auditd<\/b>), \u0434\u043b\u044f Windows Server 2012 R2 \u0434\u0430 \u0435\u0449\u0435 \u0438 \u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u043d \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u0435\u043b (\u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043d\u0430\u043c \u0442\u0430\u043a\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0435\u0433\u043e \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u0441\u043c\u043e\u0433\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a). \u0422\u0430\u043a \u0447\u0442\u043e \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b\u2026<br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442 \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 (\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432) \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0435. \u0418 \u0435\u0441\u043b\u0438 \u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 Active Directory \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u043e \u0432\u043e\u0442 \u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f. \u0422\u0443\u0442, \u043a\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u0441\u0442\u0430\u0442\u0438, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Netwrix (\u043d\u0435 \u0441\u043e\u0447\u0442\u0438\u0442\u0435 \u0437\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u2014 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u0440 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0444\u0442\u0430 \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u0442\u0430) \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e:&quot;<a href=\"http:\/\/habrahabr.ru\/company\/netwrix\/blog\/208892\/\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0443\u0434\u0438\u0442\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432: \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0438 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/a> (.pdf)&quot;<br \/>  \u041d\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0438\u043c \u00ab\u043a\u043e\u0441\u0442\u044b\u043b\u044f\u043c\u00bb. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0430\u0443\u0434\u0438\u0442\u0430 \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0445 <b>Windows<\/b> \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445 \u043d\u0430\u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0432\u0441\u0442\u0430\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 \u0438\u0445 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430\u2026 \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 (&quot;<b>Attach Task To This Event<\/b>&quot; \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0437\u0430\u0442\u043e \u00ab\u0440\u043e\u0434\u043d\u043e\u0439\u00bb \u0434\u043b\u044f Windows), \u043d\u043e \u0442\u0443\u0442 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0438 \u043d\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0442 Microsoft -&quot;<a href=\"https:\/\/social.technet.microsoft.com\/Forums\/windowsserver\/en-US\/8f3f2641-963d-4f6d-a77e-3974ebb3bf07\/2012rc-task-scheduler-cant-send-email-deprecated\">Send an email and Display a message are deprecated for from Windows Server 2012 and Windows 8&quot;<\/a><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Send an e-mail (deprecated)<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/803\/9b8\/f00\/8039b8f00f9b47cda4a958319ee1d507.jpg\"\/><\/div>\n<\/div>\n<p>&#8230;<a name=\"habracut\"><\/a><br \/>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u044f\u043c \u043e\u0442 Microsoft, \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u0443 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u043c\u0443 \u00abdeprecated\u00bb \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443 \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442\u044b <b>PowerShell<\/b> \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0436\u0443\u0440\u043d\u0430\u043b\u043e\u0432 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043f\u043e E-mail, \u0431\u043b\u0430\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/147750\/\">\u0410\u0443\u0434\u0438\u0442 Active Directory \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 Powershell \u0441 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u043e\u0431 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u0445.<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/150149\/\">\u0410\u0443\u0434\u0438\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0444\u0430\u0439\u043b\u0430\u043c \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0432 \u043b\u043e\u0433-\u0444\u0430\u0439\u043b \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 Powershell <\/a><br \/>  \u041d\u043e \u0442\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430: \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0448\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043e\u0442\u0441\u044b\u043b\u0430\u043b\u0438 \u043d\u0430 E-mail \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 (\u0442\u0435\u043c\u044b) \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0442\u0435\u043b\u043e \u043f\u0438\u0441\u044c\u043c\u0430 \u0431\u044b\u043b\u043e \u043f\u0443\u0441\u0442\u044b\u043c \ud83d\ude41 \u041f\u0440\u0438 \u0432\u0441\u0435\u043c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u2014 \u0435\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 PowerShell \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432 PowerShell ISE \u00abas Administrator\u00bb, \u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u0438 \u0431\u044b\u043b\u043e \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043e!  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0438 &#39;\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0430\u043a\u043a\u0430\u0443\u043d\u0442&#39; &#8212; Event ID 4725:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">$time =  (get-date) - (new-timespan -min 60)  $Subject = \u201c\u0417\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0430\u043a\u043a\u0430\u0443\u043d\u0442&quot;  $Theme = \u201c\u0422\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0431\u044b\u043b \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u201d  $Server = \u201csmtp.server.local\u201d  $From = \u201cAD@domain.local\u201d  $To = \u201csupport@domain.local\u201d  $encoding = [System.Text.Encoding]::UTF8  #\u0412\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u0435\u0434\u0448\u0435\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0441 \u0442\u0430\u043a\u0438\u043c ID. $TimeSpan = new-TimeSpan -sec 1 foreach($event in $events) {     $PrevEvent = $Event.\u0417\u0430\u043f\u0438\u0441\u044c     $PrevEvent = $PrevEvent - 1     $TimeEvent = $Event.TimeCreated     $TimeEventEnd = $TimeEvent+$TimeSpan     $TimeEventStart = $TimeEvent- (new-timespan -sec 1)  $Body=Get-WinEvent -maxevents 1 -FilterHashtable @{LogName=\u201dSecurity\u201d;ID=4725;StartTime=$TimeEventStart;} | Select TimeCreated,@{n=\u201dAccount Name\u201d;e={([xml]$_.ToXml()).Event.EventData.Data | ? {$_.Name -eq \u201cTargetUserName\u201d} |%{$_.\u2019#text\u2019}}},@{n=\u201dComputer\u201d;e={([xml]$_.ToXml()).Event.EventData.Data | ? {$_.Name -eq \u201cTargetDomainName\u201d}| %{$_.\u2019#text\u2019}}}  $body = $body -replace &quot;@{&quot; -replace &quot;}&quot; -replace &quot;=&quot;, &quot;: &quot; -replace &quot;;&quot;,&quot;`n&quot; -replace &quot;TimeCreated&quot;,&quot;\u0412\u0440\u0435\u043c\u044f \u0441\u043e\u0431\u044b\u0442\u0438\u044f&quot; -replace &quot;^&quot;,&quot;`n&quot;  $BodyM = $Body } Send-MailMessage -From $From -To $To -SmtpServer $server -Body \u201c$BodyM `n$Theme\u201d -Subject $Subject -Encoding $encoding   <\/code><\/pre>\n<\/div>\n<\/div>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0447\u0438\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u0441\u043b\u0443\u0447\u0430\u044f \u2014 \u043c\u0438\u043b\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0448\u0443 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438\u2026<\/p>\n<p>  \u041c\u044b \u0436\u0435 \u043f\u0435\u0440\u0435\u0448\u043b\u0438 \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0441\u043f\u043e\u0441\u043e\u0431\u0443 (\u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u043b\u0430 \u0432\u043e\u0442 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f: &quot;<a href=\"http:\/\/winitpro.ru\/index.php\/2015\/04\/02\/triggery-sobytij-windows\/\">\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0445 Windows: \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b \u0441\u043e\u0431\u044b\u0442\u0438\u0439<\/a>&quot; \u0438 \u0432\u044b\u0440\u0443\u0447\u0438\u043b\u0430 \u044d\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430: <a href=\"http:\/\/caspian.dotconf.net\/menu\/Software\/SendEmail\/\">sendEmail<\/a>):   <\/p>\n<ol>\n<li>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 <b>Task Scheduler<\/b> \u0437\u0430\u0434\u0430\u043d\u0438\u0435 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0435\u043c\u0443 \u043d\u0430\u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u044e (\u043f\u0440\u044f\u043c\u043e \u0438\u0437 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 &quot;<b>Security<\/b>&quot; -&gt; &quot;<b>Attach Task To This Event&#8230;<\/b>&quot; <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/52e\/d1f\/168\/52ed1f168c334fd48da2ad4eb62b4d9b.jpg\"\/><\/li>\n<li>\u0432 <b>Actions<\/b> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b <b>wevtutil<\/b> \u0434\u0435\u043b\u0430\u0435\u043c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u0438\u0437 \u0436\u0443\u0440\u043d\u0430\u043b\u0430 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0444\u0430\u0439\u043b<br \/> \n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 &#8212; \u0432\u044b\u0431\u043e\u0440\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0441 Event ID 4726<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">del c:\\Audit\\query_ID4726.txt wevtutil qe Security \/q:&quot;*[System[(EventID=4726)]]&quot; \/f:text \/rd:true \/c:1 &gt; c:\\Audit\\query_ID4726.txt <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>   <\/li>\n<li>\u0432\u0442\u043e\u0440\u044b\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u043c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u044b sendEmail \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043f\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e:<br \/> \n<div class=\"spoiler\"><b class=\"spoiler_title\">\u043f\u0440\u0438\u043c\u0435\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430 sendEmail:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">-f audit_AD@domain.local -s smtp.domain.local:25 -t support@domain.local -m &quot;AD User Account Management - Event ID 426 - Account was Deleted&quot; -a C:\\Audit\\query_ID4726.txt <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/654\/cda\/adc\/654cdaadcac14382bcfef1638b2fc917.jpg\"\/>  <\/li>\n<\/ol>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 \u044d\u0442\u043e\u0433\u043e:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8b5\/d57\/376\/8b5d5737611a46c3b9f4e41e28c1d8ba.jpg\"\/><br \/>  P.S. \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0432\u0441\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0430\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u043e\u0432, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u0440\u0430\u043d\u0435\u0435!     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/260947\/\"> http:\/\/habrahabr.ru\/post\/260947\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e, \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u0443\u0434\u0438\u0442\u0430 \u043d\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430\u043c PCI DSS, \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 Windows \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u0447\u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0439 \u043e \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u043d\u0430 E-mail. \u0414\u043b\u044f Linux \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0432\u043e\u043f\u0440\u043e\u0441 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 <a href=\"http:\/\/habrahabr.ru\/post\/192800\/\">OSSEC<\/a> (\u043d\u0443 \u0435\u0449\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f <b>syslog<\/b> ws <b>loganalyzer<\/b> \u0438 <b>auditd<\/b>), \u0434\u043b\u044f Windows Server 2012 R2 \u0434\u0430 \u0435\u0449\u0435 \u0438 \u0440\u0443\u0441\u0441\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043e\u043d \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u0435\u043b (\u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0438 \u043d\u0430\u043c \u0442\u0430\u043a\u0438 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0435\u0433\u043e \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u2014 \u0441\u043c\u043e\u0433\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a). \u0422\u0430\u043a \u0447\u0442\u043e \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043f\u043e\u0441\u043e\u0431\u044b\u2026<br \/>  \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u0442 \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 (\u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u0438 \u0444\u0430\u0439\u043b\u043e\u0432) \u0432 \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0435. \u0418 \u0435\u0441\u043b\u0438 \u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u043c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 Active Directory \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e, \u0442\u043e \u0432\u043e\u0442 \u0441 \u0430\u0443\u0434\u0438\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u043e\u0437\u0438\u0442\u044c\u0441\u044f. \u0422\u0443\u0442, \u043a\u0430\u043a \u043d\u0435\u043b\u044c\u0437\u044f \u043a\u0441\u0442\u0430\u0442\u0438, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f Netwrix (\u043d\u0435 \u0441\u043e\u0447\u0442\u0438\u0442\u0435 \u0437\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0443, \u2014 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0430\u0432\u0442\u043e\u0440 \u043a\u043e\u043c\u043c\u0435\u0440\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0444\u0442\u0430 \u0434\u043b\u044f \u0430\u0443\u0434\u0438\u0442\u0430) \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e:&quot;<a href=\"http:\/\/habrahabr.ru\/company\/netwrix\/blog\/208892\/\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0443\u0434\u0438\u0442\u0430 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432: \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0438 \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/a> (.pdf)&quot;<br \/>  \u041d\u043e \u0432\u0435\u0440\u043d\u0435\u043c\u0441\u044f \u043a \u043d\u0430\u0448\u0438\u043c \u00ab\u043a\u043e\u0441\u0442\u044b\u043b\u044f\u043c\u00bb. \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u0430\u0443\u0434\u0438\u0442\u0430 \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0430\u0445 <b>Windows<\/b> \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0445 \u043d\u0430\u0441 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0432\u0441\u0442\u0430\u043b \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u0431 \u0438\u0445 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430\u2026 \u041b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u043c\u0438 (&quot;<b>Attach Task To This Event<\/b>&quot; \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u0437\u0430\u0442\u043e \u00ab\u0440\u043e\u0434\u043d\u043e\u0439\u00bb \u0434\u043b\u044f Windows), \u043d\u043e \u0442\u0443\u0442 \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u043d\u044b\u0439 \u0438 \u043d\u0435 \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u0442 Microsoft -&quot;<a href=\"https:\/\/social.technet.microsoft.com\/Forums\/windowsserver\/en-US\/8f3f2641-963d-4f6d-a77e-3974ebb3bf07\/2012rc-task-scheduler-cant-send-email-deprecated\">Send an email and Display a message are deprecated for from Windows Server 2012 and Windows 8&quot;<\/a><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Send an e-mail (deprecated)<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/803\/9b8\/f00\/8039b8f00f9b47cda4a958319ee1d507.jpg\"\/><\/div>\n<\/div>\n<p>&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-259972","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259972"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259972\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}