<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MECM | AlexIn Tech</title><link>https://alexin.tech/fr/tag/mecm/</link><atom:link href="https://alexin.tech/fr/tag/mecm/index.xml" rel="self" type="application/rss+xml"/><description>MECM</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>fr</language><lastBuildDate>Tue, 13 Jun 2023 00:00:00 +0000</lastBuildDate><image><url>https://alexin.tech/media/icon_hu_69c804372a707b16.png</url><title>MECM</title><link>https://alexin.tech/fr/tag/mecm/</link></image><item><title>Corriger le problème de "CatalogVersion" entre SCCM et WSUS</title><link>https://alexin.tech/fr/2023/06/13/corriger-le-probleme-de-catalogversion-entre-sccm-et-wsus/</link><pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2023/06/13/corriger-le-probleme-de-catalogversion-entre-sccm-et-wsus/</guid><description>&lt;div class="article-story">
&lt;h1 id="corriger-le-problème-de-catalogversion-entre-sccm-et-wsus">Corriger le problème de &amp;ldquo;CatalogVersion&amp;rdquo; entre SCCM et WSUS&lt;/h1>
&lt;p>Dans cet article, nous allons aborder un problème qui peut se produire après la récupération de WSUS ou SCCM. Ce problème se traduit par le fait que les mises à jour logicielles ne s&amp;rsquo;installent plus sur les clients SCCM. En examinant le UpdatesDeployment.log, vous pourriez trouver la mention :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">&amp;#39;EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0 &amp;#39;.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Si vous faites une requête PowerShell sur un client pour lister toutes les mises à jour &amp;ldquo;manquantes&amp;rdquo; basées sur le catalogue WSUS, vous obtiendrez une liste de mises à jour &amp;ldquo;manquantes&amp;rdquo;.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">get-wmiobject&lt;/span> &lt;span class="n">-query&lt;/span> &lt;span class="s2">&amp;#34;SELECT * FROM CCM_UpdateStatus&amp;#34;&lt;/span> &lt;span class="n">-namespace&lt;/span> &lt;span class="s2">&amp;#34;root\ccm\SoftwareUpdates\UpdatesStore&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">where &lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nv">$_&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">status&lt;/span> &lt;span class="o">-eq&lt;/span> &lt;span class="s2">&amp;#34;Missing&amp;#34;&lt;/span>&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>La commande PowerShell suivante va vous afficher toutes les mises à jours &amp;ldquo;en attente&amp;rdquo; d&amp;rsquo;être déployées.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">get-wmiobject&lt;/span> &lt;span class="n">-query&lt;/span> &lt;span class="s2">&amp;#34;SELECT * FROM CCM_SoftwareUpdate&amp;#34;&lt;/span> &lt;span class="n">-namespace&lt;/span> &lt;span class="s2">&amp;#34;ROOT\ccm\ClientSDK&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Comme vous pourrez le constater, il ne retourne rien. Il a donc des mises à jours manquantes mais aucunes mises à jours &amp;ldquo;installables&amp;rdquo;. SCCM ne reconnaît pas ces mises à jour comme &amp;ldquo;applicables&amp;rdquo; car la version du catalogue n&amp;rsquo;est pas la même entre WSUS et SCCM.&lt;/p>
&lt;p>A chaque fois que SCCM synchronise avec succès le catalogue WSUS, il incrémente la &amp;ldquo;version du catalogue&amp;rdquo;. Après une récupération du site, il se peut que SCCM réinitialise ce compteur et commence à partir de 0. Tant que le compteur n&amp;rsquo;aura pas atteint la valeur de la dernière version du catalogue alors les mises à jours seront considérées comme &amp;ldquo;non applicable&amp;rdquo;.&lt;/p>
&lt;p>J&amp;rsquo;ai créé un script qui vous aidera à résoudre ce problème en récupérant la dernière version du catalogue dans la base de données ConfigMgr et en settant cela dans le registre afin que ConfigMgr puisse afficher la bonne CatalogVersion et que vos clients puissent donc recevoir leurs mises à jours.&lt;/p>
&lt;p>Voici le script:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="cm">&amp;lt;#
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .&lt;/span>&lt;span class="sd">SYNOPSIS&lt;/span>&lt;span class="cm">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> Solves CatalogVersion mismatch issue between WSUS and SCCM.
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .&lt;/span>&lt;span class="sd">DESCRIPTION&lt;/span>&lt;span class="cm">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> This script retrieves the latest catalog version and sets it in the SCCM registry.
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .AUTHOR
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> Alexin.Tech
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .DATE
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> 14/06/2023
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .VERSION
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> 1.0
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm">#&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Define the server name and database name variables&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$serverName&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;&amp;lt;your_server_name&amp;gt;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$databaseName&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;&amp;lt;your_database_name&amp;gt;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># SQL query to retrive the latest catalog version&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$query&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="sh">@&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">;WITH XMLNAMESPACES ( DEFAULT &amp;#39;http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/07/10/DesiredConfiguration&amp;#39;)
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">SELECT MAX(CI.SDMPackageDigest.value(&amp;#39;(/DesiredConfigurationDigest/SoftwareUpdateBundle/ConfigurationMetadata/Provider/Operation[@Name=&amp;#34;Detect&amp;#34;]/Parameter/Property[@Name=&amp;#34;MinCatalogVersion&amp;#34;]/@Value)[1]&amp;#39;, &amp;#39;int&amp;#39;)) MinCatalogVersion
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">FROM [CI_ConfigurationItems] as CI
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">WHERE CIType_ID = 8
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">&amp;#34;@&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Execute the SQL query and retrieve the latest catalog version&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connectionString&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;Data Source=&lt;/span>&lt;span class="nv">$serverName&lt;/span>&lt;span class="s2">;Initial Catalog=&lt;/span>&lt;span class="nv">$databaseName&lt;/span>&lt;span class="s2">;Integrated Security=SSPI;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connection&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">New-Object&lt;/span> &lt;span class="n">System&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Data&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlClient&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlConnection&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nv">$connectionString&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$command&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">New-Object&lt;/span> &lt;span class="n">System&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Data&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlClient&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlCommand&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nv">$query&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nv">$connection&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connection&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Open&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$result&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nv">$command&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">ExecuteScalar&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connection&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Close&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Display the result of the SQL query&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Write-Host&lt;/span> &lt;span class="s2">&amp;#34;The latest catalog version is: &lt;/span>&lt;span class="nv">$result&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Set the registry values&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$regPath&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;HKLM:\SOFTWARE\Microsoft\SMS\Components\SMS_WSUS_SYNC_MANAGER&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Set-ItemProperty&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$regPath&lt;/span> &lt;span class="n">-Name&lt;/span> &lt;span class="s2">&amp;#34;ContentVersion&amp;#34;&lt;/span> &lt;span class="n">-Value&lt;/span> &lt;span class="nv">$result&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">DWORD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Set-ItemProperty&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$regPath&lt;/span> &lt;span class="n">-Name&lt;/span> &lt;span class="s2">&amp;#34;SyncToVersion&amp;#34;&lt;/span> &lt;span class="n">-Value&lt;/span> &lt;span class="nv">$result&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">DWORD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Set-ItemProperty&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$regPath&lt;/span> &lt;span class="n">-Name&lt;/span> &lt;span class="s2">&amp;#34;LastAttemptVersion&amp;#34;&lt;/span> &lt;span class="n">-Value&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="nv">$result&lt;/span> &lt;span class="p">-&lt;/span> &lt;span class="mf">1&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">DWORD&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Ce script permet de récupérer la version la plus récente du catalogue et de la configurer dans le registre pour qu&amp;rsquo;SCCM aille la récupérer. Par conséquent, après avoir exécuté ce script, il faut lancer une &amp;ldquo;Synchronize Software Updates&amp;rdquo; depuis la console SCCM. Ensuite, les agents SCCM doivent effectuer un &amp;ldquo;Machine-Policy refresh&amp;rdquo; pour obtenir la dernière version du catalogue et un &amp;ldquo;Update Evaluation Cycle&amp;rdquo; pour obtenir le changement.&lt;/p>
&lt;p>Votre mise à jour devrait alors commencer à s&amp;rsquo;installer et dans le UpdatesDeployment.log, vous verrez que les mises à jour sont maintenant &amp;ldquo;fonctionnelles&amp;rdquo;.&lt;/p>
&lt;p>Pour plus de détails sur ce problème, vous pouvez consulter l&amp;rsquo;article original de Roger Zander &lt;a href="https://rzander.azurewebsites.net/wsus-catalogversion-mismatch-in-sccm/" target="_blank" rel="noopener">ici&lt;/a> en anglais. Milles merci à lui pour cet article que j&amp;rsquo;ai traduit et modifié à ma sauce en y ajoutant un script afin d&amp;rsquo;automatiser la correction.&lt;/p>
&lt;/div></description></item><item><title>Réinstaller WSUS et le rôle Software Update Point dans ConfigMgr</title><link>https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/</link><pubDate>Thu, 06 Oct 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/</guid><description>&lt;div class="article-story">
&lt;h1 id="réinstaller-wsus-et-le-rôle-software-update-point-dans-configmgr">Réinstaller WSUS et le rôle Software Update Point dans ConfigMgr&lt;/h1>
&lt;p>J&amp;rsquo;ai été confronté récemment à quelques soucis d&amp;rsquo;erreur de synchronisation au niveau du Software Update Point dans SCCM / MECM . Il faut savoir que le rôle SUP dans ConfigMgr va piloter le rôle serveur WSUS. J&amp;rsquo;ai tenté un reset de WSUS mais au final ça m&amp;rsquo;a purement et simplement tout planté. Donc je dois repartir sur une base saine et pour se faire j&amp;rsquo;ai tout désinstallé et tout réinstallé.&lt;/p>
&lt;p>Je te fais la version courte ci-dessous et une version plus longue en dessous.&lt;/p>
&lt;h2 id="la-version-courte">La version courte&lt;/h2>
&lt;p>Afin de remettre le tout d&amp;rsquo;équerre voici la version courte à suivre en step by step :&lt;/p>
&lt;ol>
&lt;li>Lancer la console de ConfigMgr et désinstaller le rôle SUP (Software Update Point) dans ConfigMgr&lt;/li>
&lt;li>Lancer Server Manager et désinstaller le rôle WSUS du serveur.&lt;/li>
&lt;li>Reboot du serveur&lt;/li>
&lt;li>Ensuite deux options s&amp;rsquo;offrent à toi, soit supprimer/restaurer la DB SUSDB de ton serveur SQL , soit la conserver. Dans mon cas j&amp;rsquo;avais un backup fonctionnel qui datait de avant que je foute le dawa donc j&amp;rsquo;ai fait le choix de restaurer ma DB et j&amp;rsquo;ai tout OVERWRITE.&lt;/li>
&lt;li>Lancer Server Manager et installer le rôle WSUS sur le serveur =&amp;gt; Comme j&amp;rsquo;ai un serveur MS SQL dessus je choisis l&amp;rsquo;option &amp;ldquo;SQL Server Connectivity&amp;rdquo; et non WID. Je spécifie mon instance SQL Server et le tour est joué, je lance l&amp;rsquo;install.&lt;/li>
&lt;li>Depuis la fenêtre de succès de l&amp;rsquo;installation de WSUS, cliquer sur &amp;ldquo;Launch Post-Installation tasks&amp;rdquo;. Il va ainsi détecter si une DB SUSDB existe ou non, si non, il la créée, si oui , alors il va utiliser l&amp;rsquo;existante. Dans mon cas il a détecté ma DB que j&amp;rsquo;ai restaurée auparavant et l&amp;rsquo;a utilisée.&lt;/li>
&lt;li>Reboot du serveur&lt;/li>
&lt;li>Lancer la console de ConfigMgr et installer le rôle SUP (Software Update Point) dans ConfigMgr&lt;/li>
&lt;li>Depuis ConfigMgr, lancer une synchro à vide (sans produits) =&amp;gt; histoire de vérifier si tout fonctionne bien. (log wsyncmgr.log)&lt;/li>
&lt;li>Configurer ton rôle SUP (choisir les produits et les classifications)&lt;/li>
&lt;li>Lancer une synchro et revérifier si tout fonctionne bien (log wsyncmgr.log)&lt;/li>
&lt;/ol>
&lt;p>Et voilà, le tour est joué tu as réinstallé WSUS et le rôle SUP de ConfigMgr.&lt;/p>
&lt;p>Si tu as un soucis de mismatch avec la version du catalogue entre ConfigMGR et WSUS, voici un fix à appliquer: &lt;a href="https://rzander.azurewebsites.net/query-to-get-mincatalogversion-from-sccm-updates/" target="_blank" rel="noopener">https://rzander.azurewebsites.net/query-to-get-mincatalogversion-from-sccm-updates/&lt;/a>&lt;/p>
&lt;p>En espérant que ça t&amp;rsquo;a aidé , dans mon cas ça ronronne ! 😎&lt;/p>
&lt;h2 id="la-version-longue">La version longue&lt;/h2>
&lt;p>Cette version est la même que la courte mais avec quelques screenshots et infos en plus.&lt;/p>
&lt;h3 id="1-désinstaller-le-rôle-software-update-point-de-configmgr">1) Désinstaller le rôle Software Update Point de ConfigMgr&lt;/h3>
&lt;p>Lancer la console de SCCM/MECM et aller dans Administration&amp;gt;Overview&amp;gt;Site Configuration&amp;gt;Servers and Site System Roles.&lt;/p>
&lt;p>Cliquer sur le site concerné puis effectuer un clique droit sur &amp;ldquo;Software update point&amp;rdquo; et choisir &amp;ldquo;Remove Role&amp;rdquo;&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Software Update Point" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image_hu_8babfa7e9b7bbbe8.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image_hu_d4267940f6a5bf50.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image_hu_2e86dd58af4ee9dc.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image_hu_8babfa7e9b7bbbe8.webp"
width="449"
height="102"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Suivre le step by step pour désinstaller le rôle.&lt;/p>
&lt;h3 id="2-désinstaller-le-rôle-wsus-du-serveur">2) Désinstaller le rôle WSUS du serveur&lt;/h3>
&lt;p>Lancer Server Manager , cliquer dans &amp;ldquo;Manage&amp;rdquo; puis &amp;ldquo;Remove Roles and Features&amp;rdquo;&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Remove Role and Features" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-1_hu_25a9a600c9e259df.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-1_hu_9452893a9ade825e.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-1_hu_401c11d523f40144.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-1_hu_25a9a600c9e259df.webp"
width="266"
height="172"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Il faut décocher un produit pour le désinstaller, dans notre cas on décoche &amp;ldquo;Windows Server Update Services&amp;rdquo;&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Uninstall WSUS" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-2_hu_ee76d8cad0b99a03.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-2_hu_8cd344eb6974d932.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-2_hu_8f0856332c7c824e.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-2_hu_ee76d8cad0b99a03.webp"
width="760"
height="539"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Cliquer sur Next et suivre le step by step.&lt;/p>
&lt;h3 id="3-reboot-du-serveur">3) Reboot du serveur&lt;/h3>
&lt;h3 id="4-ensuite-deux-options-soffrent-à-toi--soit-supprimerrestaurer-la-db-susdb-de-ton-serveur-sql--soit-la-conserver">4) Ensuite deux options s&amp;rsquo;offrent à toi, soit supprimer/restaurer la DB SUSDB de ton serveur SQL , soit la conserver.&lt;/h3>
&lt;p>Dans mon cas j&amp;rsquo;avais un backup fonctionnel qui datait de avant que je foute le dawa donc j&amp;rsquo;ai fait le choix de restaurer ma DB et j&amp;rsquo;ai tout OVERWRITE.&lt;/p>
&lt;h3 id="5-installer-le-rôle-wsus-sur-le-serveur">5) Installer le rôle WSUS sur le serveur&lt;/h3>
&lt;p>Lancer Server Manager et installer le rôle WSUS sur le serveur =&amp;gt; Comme j&amp;rsquo;ai un serveur MS SQL dessus je choisis l&amp;rsquo;option &amp;ldquo;SQL Server Connectivity&amp;rdquo; et non WID. Je spécifie mon instance SQL Server et le tour est joué, je lance l&amp;rsquo;install.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Add Role and Features" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-3_hu_dc100c5a7ed53a9a.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-3_hu_7e691a8d87744e27.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-3_hu_45be09281abf40a8.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-3_hu_dc100c5a7ed53a9a.webp"
width="264"
height="172"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="WSUS" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-4_hu_e9e3a07ea4a630bf.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-4_hu_9d06ab263910dbbf.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-4_hu_7639d6c887517190.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-4_hu_e9e3a07ea4a630bf.webp"
width="341"
height="364"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h3 id="6-lancer-la-post-install">6) Lancer la Post-Install&lt;/h3>
&lt;p>Depuis la fenêtre de succès de l&amp;rsquo;installation de WSUS, cliquer sur &amp;ldquo;Launch Post-Installation tasks&amp;rdquo;. Il va ainsi détecter si une DB SUSDB existe ou non, si non, il la créée, si oui , alors il va utiliser l&amp;rsquo;existante. Dans mon cas il a détecté ma DB que j&amp;rsquo;ai restaurée auparavant et l&amp;rsquo;a utilisée.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Post-Installation tasks" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-5_hu_a1b48f66ca8181b4.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-5_hu_bb20508772e16494.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-5_hu_a7e97d08b226f22.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-5_hu_a1b48f66ca8181b4.webp"
width="760"
height="541"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Il y a un log de PostInstall disponible dans le dossier de l&amp;rsquo;utilisateur courant C:\Users\CurrentUserThatMadeTheInstall\local\Temp\WSUS_PostInstall_XXXXXXXXXX.log&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Log" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-6_hu_62bd1d8884f175f6.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-6_hu_a93048e138d12ca5.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-6_hu_1e72a1ee73bfc4e9.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-6_hu_62bd1d8884f175f6.webp"
width="760"
height="386"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h3 id="7-reboot-du-serveur">7) Reboot du serveur&lt;/h3>
&lt;h3 id="8-installer-le-rôle-sup-dans-configmgr">8) Installer le rôle SUP dans ConfigMgr&lt;/h3>
&lt;p>Lancer la console de SCCM/MECM et aller dans Administration&amp;gt;Overview&amp;gt;Site Configuration&amp;gt;Servers and Site System Roles.&lt;/p>
&lt;p>Faire un clique droit sur le site concerné puis cliquer sur &amp;ldquo;Add Site System Roles&amp;rdquo;&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Add Site System Roles" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-7_hu_5b86b0d39c145a1e.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-7_hu_1361cf8943d59e6e.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-7_hu_4ccb4e2912651a32.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-7_hu_5b86b0d39c145a1e.webp"
width="246"
height="129"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Effectuer le setup en ayant choisi le rôle &amp;ldquo;Software Update Point&amp;rdquo; et en ne sélectionnant aucun produits car nous allons faire une première synchronisation à vide. Cliquer sur les produits afin de tous les sélectionner lors puis recliquer dessus afin d&amp;rsquo;être sûr qu&amp;rsquo;aucun produit n&amp;rsquo;est sélectionner. (à faire pendant le setup)&lt;/p>
&lt;h3 id="9-lancer-une-première-synchro-à-vide-sans-produits">9) Lancer une première synchro à vide sans produits&lt;/h3>
&lt;p>Pour se faire aller dans &amp;ldquo;Software Library &amp;gt; Overview &amp;gt; Software Updates &amp;gt; All Software Updates&amp;rdquo;&lt;/p>
&lt;p>Effectuer un clic droit sur &amp;ldquo;All Software Updates&amp;rdquo; et choisir &amp;ldquo;Synchronize Software Updates&amp;rdquo;&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Synchronize Software Updates" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_3ce9d7db213c234.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_4ee429d58f946174.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_d8964f175ff56d43.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_3ce9d7db213c234.webp"
width="462"
height="251"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Vous pouvez effectuer le suivi de la synchro dans le log &amp;ldquo;wsyncmgr.log&amp;rdquo; .&lt;/p>
&lt;h3 id="10-configurer-ton-rôle-sup-choisir-les-produits-et-les-classifications">10) Configurer ton rôle SUP (choisir les produits et les classifications)&lt;/h3>
&lt;p>Lancer la console de SCCM/MECM et aller dans Administration&amp;gt;Overview&amp;gt;Site Configuration&amp;gt;Servers and Site System Roles.&lt;/p>
&lt;p>Cliquer sur le site concerné puis effectuer un clique droit sur &amp;ldquo;Software update point&amp;rdquo; et choisir &amp;ldquo;Properties&amp;rdquo;&lt;/p>
&lt;p>Là tu pourra sélectionner ta classification ainsi que tes produits.&lt;/p>
&lt;h3 id="11-lancer-une-synchro-et-revérifier-si-tout-fonctionne-bien">11) Lancer une synchro et revérifier si tout fonctionne bien&lt;/h3>
&lt;p>Pour se faire aller dans &amp;ldquo;Software Library &amp;gt; Overview &amp;gt; Software Updates &amp;gt; All Software Updates&amp;rdquo;&lt;/p>
&lt;p>Effectuer un clic droit sur &amp;ldquo;All Software Updates&amp;rdquo; et choisir &amp;ldquo;Synchronize Software Updates&amp;rdquo;&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="Synchronize Software Updates" srcset="
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_3ce9d7db213c234.webp 400w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_4ee429d58f946174.webp 760w,
/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_d8964f175ff56d43.webp 1200w"
src="https://alexin.tech/fr/2022/10/06/reinstaller-wsus-et-le-role-software-update-point-dans-configmgr/image-8_hu_3ce9d7db213c234.webp"
width="462"
height="251"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Vous pouvez effectuer le suivi de la synchro dans le log &amp;ldquo;wsyncmgr.log&amp;rdquo; .&lt;/p>
&lt;p>Et voilà, le tour est joué tu as réinstallé WSUS et le rôle SUP de ConfigMgr.&lt;/p>
&lt;p>En espérant que ça t&amp;rsquo;a aidé , dans mon cas ça ronronne ! 😎&lt;/p>
&lt;/div></description></item><item><title>Trouver le sitecode SCCM (MECM) en PowerShell</title><link>https://alexin.tech/fr/2022/09/21/trouver-le-sitecode-sccm-mecm-en-powershell/</link><pubDate>Wed, 21 Sep 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/09/21/trouver-le-sitecode-sccm-mecm-en-powershell/</guid><description>&lt;div class="article-story">
&lt;h1 id="trouver-le-sitecode-sccm-mecm-en-powershell">Trouver le sitecode SCCM (MECM) en PowerShell&lt;/h1>
&lt;p>L&amp;rsquo;information du sitecode SCCM (MECM) est stockée dans WMI, nous pouvons donc aller rechercher l&amp;rsquo;info en utilisant du PowerShell.&lt;/p>
&lt;p>Voici la commande à utiliser :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">$SCCMSiteCode = $([WmiClass]&amp;#34;\\localhost\ROOT\ccm:SMS_Client&amp;#34;).GetAssignedSite()
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">$SCCMSiteCode.sSiteCode
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Si tu souhaites en savoir plus sur la méthode SMS_Client je te redirige sur ce lien :&lt;/p>
&lt;p>&lt;a href="https://msdn.microsoft.com/en-us/library/jj874307.aspx" target="_blank" rel="noopener">https://msdn.microsoft.com/en-us/library/jj874307.aspx&lt;/a>&lt;/p>
&lt;p>Enjoy ! 😎&lt;/p>
&lt;/div></description></item></channel></rss>