{"id":76,"date":"2024-03-15T12:51:49","date_gmt":"2024-03-15T12:51:49","guid":{"rendered":"https:\/\/www.solodanoi.it\/?p=76"},"modified":"2024-03-15T12:51:49","modified_gmt":"2024-03-15T12:51:49","slug":"chi-blocca-lutente","status":"publish","type":"post","link":"https:\/\/www.solodanoi.it\/?p=76","title":{"rendered":"chi blocca l&#8217;utente"},"content":{"rendered":"\n<p>A volte capita che un utente di dominio sia bloccato e sia difficile risalire a chi lo sta bloccando.<\/p>\n\n\n\n<p>Tramite PowerShell da eseguire sul DC (Domain Controller) e questo comando \u00e8 possibile avere un primo aiuto.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><em>$Usr = \u2018nomeutente\u2019<br>$Pdc = (Get-AdDomain).PDCEmulator<br>$ParamsEvn = @{<br>\u2018Computername\u2019 = $Pdc<br>\u2018LogName\u2019 = \u2018Security\u2019<br>\u2018FilterXPath\u2019 = &#8220;*[System[EventID=4740] and EventData[Data[@Name=&#8217;TargetUserName&#8217;]=&#8217;$Usr&#8217;]]&#8221;<br>}<br>$Evnts = Get-WinEvent @ParamsEvn<br>$Evnts | foreach {$_.Properties[1].value + &#8216; &#8216; + $_.TimeCreated}<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A volte capita che un utente di dominio sia bloccato e sia difficile risalire a chi lo sta bloccando. Tramite PowerShell da eseguire sul DC (Domain Controller) e questo comando \u00e8 possibile avere un primo aiuto. $Usr = \u2018nomeutente\u2019$Pdc = (Get-AdDomain).PDCEmulator$ParamsEvn = @{\u2018Computername\u2019 = $Pdc\u2018LogName\u2019 = \u2018Security\u2019\u2018FilterXPath\u2019 = &#8220;*[System[EventID=4740] and EventData[Data[@Name=&#8217;TargetUserName&#8217;]=&#8217;$Usr&#8217;]]&#8221;}$Evnts = Get-WinEvent @ParamsEvn$Evnts | [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6,7],"tags":[],"class_list":{"0":"post-76","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-active-directory","7":"category-microsoft","8":"category-windows-server","9":"czr-hentry"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=\/wp\/v2\/posts\/76","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=76"}],"version-history":[{"count":1,"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=\/wp\/v2\/posts\/76\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.solodanoi.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}