{"id":450,"date":"2023-02-26T00:38:54","date_gmt":"2023-02-25T23:38:54","guid":{"rendered":"https:\/\/kdslabs.fr\/?p=450"},"modified":"2023-04-13T11:48:51","modified_gmt":"2023-04-13T09:48:51","slug":"commande-windows-gpo-synchro-immediate","status":"publish","type":"post","link":"https:\/\/kdslabs.fr\/index.php\/2023\/02\/26\/commande-windows-gpo-synchro-immediate\/","title":{"rendered":"[COMMANDE] [WINDOWS] GPO synchro imm\u00e9diate"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-colibri-color-1-color has-text-color\" style=\"font-size:16px\">[COMMANDE] [WINDOWS] GPO synchro imm\u00e9diate<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:14px\">Lorsqu&#8217;on est amen\u00e9 \u00e0 d\u00e9ployer des GPOs sur un parc Windows il est plus simple de tester les synchros en v\u00e9rifiant les groupes de s\u00e9curit\u00e9s appliqu\u00e9s \u00e0 un user ou un computer, mais si vous \u00eates s\u00fbr de vos GPOs vous pouvez forcer leur application sur les computers\/users (en fonction des attributs sur la commande).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:14px\">Un use case assez courant est l&#8217;utilisation de cette commande sur une infrastructure VDI, sinon les GPOs s&#8217;appliquent automatiquement tous les 20 minutes (default Windows setting).<\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code>Get-ADComputer \u2013filter * -Searchbase \"dc=demo,dc=dcc,dc=scc,dc=dom\" | foreach{ Invoke-GPUpdate \u2013computer $_.name -force}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:14px\"><span style=\"text-decoration: underline\" class=\"underline\">Attributs possibles:<\/span><\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code>Invoke-GPUpdate\n      &#91;-AsJob]\n      &#91;-Boot]\n      &#91;&#91;-Computer] &lt;String&gt;]\n      &#91;&#91;-RandomDelayInMinutes] &lt;Int32&gt;]\n      &#91;-LogOff]\n      &#91;-Target &lt;String&gt;]\n      &#91;-Sync]\n      &#91;&lt;CommonParameters&gt;]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\" style=\"font-size:12px\"><span style=\"text-decoration: underline\" class=\"underline\"><strong>Source:<\/strong><\/span><br>Invoke-GPUpdate<br><a href=\"https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/grouppolicy\/invoke-gpupdate?view=windowsserver2022-ps\">https:\/\/learn.microsoft.com\/en-us\/powershell\/module\/grouppolicy\/invoke-gpupdate?view=windowsserver2022-ps<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Commande Powershell Invoke-GPUpdate<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,11],"tags":[14,22],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-others","category-windows","tag-gpo","tag-powershell"],"_links":{"self":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":0,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"wp:attachment":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}