株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

Default Domain Policy と Default Domain Controllers Policy 以外のポリシーを全OUから取り払います。

Get-ADOrganizationalUnit -Filter 'Name -like "*"'| %{Get-GPInheritance
-target $_} | %{$_.gpolinks}   | ?{$_.DisplayName -notmatch "Default 
Domain Policy|Default Domain Controllers Policy"} | %{Remove-GPLink 
-Guid $_.gpoid -Target $_.target}

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)