<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows | AlexIn Tech</title><link>https://alexin.tech/fr/tag/windows/</link><atom:link href="https://alexin.tech/fr/tag/windows/index.xml" rel="self" type="application/rss+xml"/><description>Windows</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>fr</language><lastBuildDate>Fri, 30 Jan 2026 00:00:00 +0000</lastBuildDate><image><url>https://alexin.tech/media/icon_hu_69c804372a707b16.png</url><title>Windows</title><link>https://alexin.tech/fr/tag/windows/</link></image><item><title>[Fix] Antigravity ne lance pas Chrome sur Windows ? Voici la solution !</title><link>https://alexin.tech/fr/2026/01/30/fix-antigravity-ne-lance-pas-chrome-sur-windows-voici-la-solution/</link><pubDate>Fri, 30 Jan 2026 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2026/01/30/fix-antigravity-ne-lance-pas-chrome-sur-windows-voici-la-solution/</guid><description>&lt;div class="article-story">
&lt;h1 id="fix-antigravity-ne-lance-pas-chrome-sur-windows--voici-la-solution-">[Fix] Antigravity ne lance pas Chrome sur Windows ? Voici la solution !&lt;/h1>
&lt;p>Si vous avez testé le &lt;strong>Browser Subagent d&amp;rsquo;Antigravity&lt;/strong> sous Windows et que vous vous retrouvez avec un navigateur qui refuse obstinément de se lancer, vous n&amp;rsquo;êtes pas seul. C’est un blocage frustrant quand on essaie de laisser l&amp;rsquo;IA &amp;ldquo;voir&amp;rdquo; un site web ou tester une interface, mais qu&amp;rsquo;au lieu d&amp;rsquo;une fenêtre Chrome, on obtient une erreur.&lt;/p>
&lt;p>La bonne nouvelle ? C’est un problème connu avec une solution très simple. Ce guide suppose que vous avez déjà installé l&amp;rsquo;&lt;strong>extension de navigateur Antigravity&lt;/strong>.&lt;/p>
&lt;h2 id="le-symptôme">&lt;strong>Le Symptôme&lt;/strong>&lt;/h2>
&lt;p>Lorsque vous demandez à Antigravity d&amp;rsquo;effectuer une tâche nécessitant le navigateur (par exemple : &amp;ldquo;regarde mon site web&amp;rdquo;), l&amp;rsquo;opération échoue. Si vous regardez dans le terminal ou les logs d&amp;rsquo;erreurs, vous verrez probablement ce message spécifique :&lt;/p>
&lt;p>&lt;code>&amp;quot;Failed to install playwright: $HOME environment variable is not set&amp;quot;&lt;/code>&lt;/p>
&lt;h2 id="pourquoi-cela-arrive-t-il-">&lt;strong>Pourquoi cela arrive-t-il ?&lt;/strong>&lt;/h2>
&lt;p>Antigravity utilise &lt;strong>Playwright&lt;/strong>, un outil puissant conçu pour &amp;ldquo;piloter&amp;rdquo; les navigateurs. Playwright a été initialement pensé pour les environnements Linux et macOS. Sur ces systèmes, il existe toujours un raccourci standard nommé &lt;code>$HOME&lt;/code> qui pointe vers le dossier de l&amp;rsquo;utilisateur.&lt;/p>
&lt;p>Windows, lui, utilise &lt;code>%USERPROFILE%&lt;/code>. Comme Playwright cherche spécifiquement &lt;code>$HOME&lt;/code> et ne le trouve pas, il &amp;ldquo;panique&amp;rdquo; et arrête l&amp;rsquo;installation, empêchant l&amp;rsquo;IA de prendre le contrôle de Chrome.&lt;/p>
&lt;p>(Mon avis ? Les développeurs d&amp;rsquo;Antigravity travaillent probablement sur Mac et ne font peut-être pas autant de tests sur Windows !)&lt;/p>
&lt;h2 id="le-correctif-étape-par-étape">&lt;strong>Le Correctif étape par étape&lt;/strong>&lt;/h2>
&lt;p>Pour corriger cela, nous devons indiquer manuellement à Windows de créer un raccourci nommé &amp;ldquo;HOME&amp;rdquo;. Voici comment faire en moins de 60 secondes :&lt;/p>
&lt;h3 id="1-ouvrir-powershell">&lt;strong>1. Ouvrir PowerShell&lt;/strong>&lt;/h3>
&lt;p>Cliquez sur votre menu &lt;strong>Démarrer&lt;/strong>, tapez &lt;strong>PowerShell&lt;/strong>, et lancez l&amp;rsquo;application. Vous n&amp;rsquo;avez pas forcément besoin de l&amp;rsquo;exécuter en tant qu&amp;rsquo;administrateur, mais vous pouvez le faire.&lt;/p>
&lt;h3 id="2-exécuter-la-commande-de-correction">&lt;strong>2. Exécuter la commande de correction&lt;/strong>&lt;/h3>
&lt;p>Copiez le code ci-dessous, collez-le dans la fenêtre PowerShell et appuyez sur &lt;strong>Entrée&lt;/strong>. Cette commande dit à Windows : &amp;ldquo;Désormais, dès qu&amp;rsquo;un programme demande &amp;lsquo;HOME&amp;rsquo;, renvoie-le vers mon dossier utilisateur.&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="p">[&lt;/span>&lt;span class="no">System.Environment&lt;/span>&lt;span class="p">]::&lt;/span>&lt;span class="n">SetEnvironmentVariable&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;HOME&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s2">&amp;#34;&lt;/span>&lt;span class="nv">$env:USERPROFILE&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="s1">&amp;#39;User&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="3-redémarrer-antigravity">&lt;strong>3. Redémarrer Antigravity&lt;/strong>&lt;/h3>
&lt;p>C&amp;rsquo;est une étape cruciale. Ce changement ne sera effectif que lorsque vous aurez complètement fermé et rouvert votre IDE. Cela lui permet de &amp;ldquo;voir&amp;rdquo; le nouveau raccourci que vous venez de créer.&lt;/p>
&lt;h2 id="à-quoi-sattendre-ensuite">&lt;strong>À quoi s&amp;rsquo;attendre ensuite&lt;/strong>&lt;/h2>
&lt;p>Une fois redémarré, essayez à nouveau de demander à l&amp;rsquo;Agent d&amp;rsquo;ouvrir votre navigateur. Vous remarquerez peut-être un court délai la première fois, c&amp;rsquo;est normal (Playwright termine son installation). Ensuite, Chrome devrait s&amp;rsquo;ouvrir normalement et Antigravity pourra enfin faire son travail.&lt;/p>
&lt;p>Bonne navigation agentique ! 😎&lt;/p>
&lt;p>AlexIn Tech&lt;/p>
&lt;/div></description></item><item><title>Recall - Risques de Sécurité, Exploit TotalRecall et Comment le Désactiver</title><link>https://alexin.tech/fr/2024/06/05/recall-risques-de-securite-exploit-totalrecall-et-comment-le-desactiver/</link><pubDate>Wed, 05 Jun 2024 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2024/06/05/recall-risques-de-securite-exploit-totalrecall-et-comment-le-desactiver/</guid><description>&lt;div class="article-story">
&lt;h1 id="recall--risques-de-sécurité-exploit-totalrecall-et-comment-le-désactiver">Recall : Risques de Sécurité, Exploit TotalRecall et Comment le Désactiver&lt;/h1>
&lt;p>La fonctionnalité Recall de Microsoft Copilot+ sur Windows 11 a fait couler beaucoup d’encre. Cette innovation permet de prendre constamment des captures d&amp;rsquo;écran de votre PC et de les stocker dans une base de données, rendant ainsi toutes vos activités informatiques recherchables instantanément par Copilot. Bien que cela puisse sembler pratique pour retrouver des informations rapidement, cette fonctionnalité pose de sérieuses questions en matière de confidentialité et de sécurité.&lt;/p>
&lt;h2 id="quest-ce-que-la-fonctionnalité-recall-">Qu&amp;rsquo;est-ce que la Fonctionnalité Recall ?&lt;/h2>
&lt;p>Recall, introduite avec Microsoft Copilot+ sur Windows 11, permet de retracer vos activités passées en prenant des instantanés (screenshots) de votre écran toutes les cinq secondes. Ces instantanés sont stockés localement et analysés pour permettre une recherche par langage naturel (Copilot). En théorie, cette fonctionnalité est conçue pour améliorer la productivité en offrant un accès rapide aux informations précédemment vues sur votre PC.&lt;/p>
&lt;h2 id="problèmes-de-sécurité-avec-recall">Problèmes de Sécurité avec Recall&lt;/h2>
&lt;p>L&amp;rsquo;article de Kevin Beaumont sur &lt;a href="https://doublepulsar.com/recall-stealing-everything-youve-ever-typed-or-viewed-on-your-own-windows-pc-is-now-possible-da3e12e9465e" target="_blank" rel="noopener">DoublePulsar &lt;/a>met en lumière plusieurs préoccupations majeures :&lt;/p>
&lt;h5 id="stockage-local-des-données">Stockage Local des Données&lt;/h5>
&lt;p>Les captures d&amp;rsquo;écran sont stockées localement dans une base de données SQLite, &lt;strong>accessible à tout utilisateur avec les bonnes permissions.&lt;/strong> Bien que les données soient traitées localement, leur stockage sous forme de texte brut dans des fichiers facilement accessibles représente une vulnérabilité significative. La base de données se trouve simplement dans un dossier dans AppData, ce qui la rend facilement accessible.&lt;/p>
&lt;h5 id="accès-non-sécurisé">Accès Non Sécurisé&lt;/h5>
&lt;p>Malgré l&amp;rsquo;utilisation de chiffrement, les données peuvent être accédées par des logiciels malveillants lorsque l&amp;rsquo;utilisateur est connecté. Le chiffrement n&amp;rsquo;aide que si quelqu&amp;rsquo;un vole physiquement votre appareil, m&lt;strong>ais cela n&amp;rsquo;empêche pas un hacker d&amp;rsquo;accéder aux données via des logiciels malveillants. Par exemple, un trojan&lt;/strong> présent sur la machine pourra exfiltrer les données de Recall.&lt;/p>
&lt;h5 id="exfiltration-facile">Exfiltration Facile&lt;/h5>
&lt;p>La facilité d&amp;rsquo;exfiltration des données est un autre aspect préoccupant de Copilot+ Recall. La base de données contenant les informations de l&amp;rsquo;utilisateur est relativement légère et peut être transmise rapidement via une connexion Internet standard. En quelques secondes, des mois d&amp;rsquo;enregistrement peuvent être exfiltrés sans que l&amp;rsquo;utilisateur ne s&amp;rsquo;en rende compte. Cette vulnérabilité ouvre la porte à des violations massives de données, où les informations des utilisateurs peuvent être rassemblées et vendues sur des marchés noirs.&lt;/p>
&lt;h5 id="impact-sur-la-vie-privée">Impact sur la Vie Privée&lt;/h5>
&lt;p>L&amp;rsquo;impact sur la vie privée des utilisateurs est peut-être la conséquence la plus alarmante de cette fonctionnalité. Copilot+ Recall stocke chaque interaction de l&amp;rsquo;utilisateur, y compris les sites web visités, les messages supprimés, les gestionnaires de mots de passes, les données médicales, etc. Pour faire simple, il screenshot tout chaque 5 secondes et conserver ces informations. Cette surveillance constante et l&amp;rsquo;incapacité à effacer définitivement des informations sensibles soulèvent des préoccupations majeures. La promesse de sécurité de Microsoft est fondamentalement compromise par cette fonctionnalité, qui transforme l&amp;rsquo;expérience personnelle de Windows en une source potentielle de violations de la vie privée.&lt;/p>
&lt;h2 id="totalrecall--un-exploit-pour-recall">TotalRecall : un exploit pour Recall&lt;/h2>
&lt;p>L&amp;rsquo;outil &lt;a href="https://github.com/xaitax/TotalRecall" target="_blank" rel="noopener">TotalRecall&lt;/a>, développé par Alexander Hagenah, exploite cette vulnérabilité en extrayant et affichant les données collectées par la fonctionnalité Recall de Windows 11. Cet outil simple permet d&amp;rsquo;accéder facilement aux informations sur les instantanés d&amp;rsquo;activité de votre PC.&lt;/p>
&lt;h3 id="fonctionnement-de-totalrecall">Fonctionnement de TotalRecall&lt;/h3>
&lt;p>TotalRecall copie la base de donnée &amp;ldquo;&lt;strong>ukg.db&lt;/strong>&amp;rdquo; ainsi que le dossier contenant les captures d&amp;rsquo;écran &amp;ldquo;&lt;strong>ImageStore&lt;/strong>&amp;rdquo;, puis parse la DB et change l&amp;rsquo;extension des screenshots en .jpg pour en faciliter la lecture. Le tout permet de trouver des artefacts potentiellement intéressants. 😈 Vous pouvez définir des dates pour limiter l&amp;rsquo;extraction et rechercher des chaînes de texte spécifiques extraites par l&amp;rsquo;OCR de Copilot/Recall. Le processus est basique mais très efficace pour exposer les vulnérabilités de la fonctionnalité Recall.&lt;/p>
&lt;h3 id="caractéristiques-clés-de-totalrecall">Caractéristiques Clés de TotalRecall&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>Filtrage par Date&lt;/strong> : Limitez l&amp;rsquo;extraction à une période spécifique.&lt;/li>
&lt;li>&lt;strong>Recherche de Texte&lt;/strong> : Trouvez des informations spécifiques dans les données capturées.&lt;/li>
&lt;li>&lt;strong>Rapports Détaillés&lt;/strong> : Génère des rapports résumant les fenêtres capturées, les images prises, et les résultats de recherche.&lt;/li>
&lt;/ul>
&lt;h2 id="comment-désactiver-recall">Comment Désactiver Recall&lt;/h2>
&lt;p>Pour ceux qui souhaitent désactiver cette fonctionnalité pour protéger leur vie privée, voici un script que vous pouvez utiliser. Ce script, proposé par &lt;a href="http://privacy.sexy/" target="_blank" rel="noopener">privacy.sexy&lt;/a>, permet de désactiver Recall en modifiant le registre Windows.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="privacy.sexy - disable Recall" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h3 id="script-pour-désactiver-recall">Script pour Désactiver Recall&lt;/h3>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-batch" data-lang="batch">&lt;span class="line">&lt;span class="cl">&lt;span class="p">@&lt;/span>&lt;span class="k">echo&lt;/span> off
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: https://privacy.sexy — v0.13.4 — Thu, 06 Jun 2024 07:48:34 GMT&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: Ensure admin privileges&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">fltmc &lt;span class="p">&amp;gt;&lt;/span>nul &lt;span class="mi">2&lt;/span>&lt;span class="p">&amp;gt;&amp;amp;&lt;/span>&lt;span class="mi">1&lt;/span> &lt;span class="p">||&lt;/span> &lt;span class="p">(&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">echo&lt;/span> Administrator privileges are required.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> PowerShell Start -Verb RunAs &amp;#39;&lt;span class="nv">%0&lt;/span>&amp;#39; &lt;span class="mi">2&lt;/span>&lt;span class="p">&amp;gt;&lt;/span> nul &lt;span class="p">||&lt;/span> &lt;span class="p">(&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">echo&lt;/span> Right-click on the script and select &lt;span class="s2">&amp;#34;Run as administrator&amp;#34;&lt;/span>.
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">pause&lt;/span> &lt;span class="p">&amp;amp;&lt;/span> &lt;span class="k">exit&lt;/span> 1
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl"> &lt;span class="k">exit&lt;/span> 0
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: Initialize environment&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">setlocal&lt;/span> EnableExtensions DisableDelayedExpansion
&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>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: ----------------------------------------------------------&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: ----------------------Disable Recall----------------------&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: ----------------------------------------------------------&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">echo&lt;/span> --- Disable Recall
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">PowerShell -ExecutionPolicy Unrestricted -Command &lt;span class="s2">&amp;#34;reg add &amp;#39;HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot&amp;#39; /v &amp;#39;DisableAIDataAnalysis&amp;#39; /t &amp;#39;REG_DWORD&amp;#39; /d &amp;#39;1&amp;#39; /f&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: ----------------------------------------------------------&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>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: Pause the script to view the final state&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">pause&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: Restore previous environment settings&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">endlocal&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="p">:&lt;/span>&lt;span class="c1">: Exit the script successfully&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="k">exit&lt;/span> /b 0
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="étapes-pour-exécuter-le-script">Étapes pour Exécuter le Script&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Créer un Fichier de Script&lt;/strong> :&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Ouvrez un éditeur de texte comme le Bloc-notes.&lt;/li>
&lt;li>Copiez le script ci-dessus et collez-le dans l&amp;rsquo;éditeur de texte.&lt;/li>
&lt;li>Enregistrez le fichier avec une extension .bat, par exemple disable_recall.bat.&lt;/li>
&lt;/ul>
&lt;ol start="2">
&lt;li>&lt;strong>Exécuter le Script en tant qu&amp;rsquo;Administrateur&lt;/strong> :&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Faites un clic droit sur le fichier de script que vous avez créé.&lt;/li>
&lt;li>Sélectionnez &amp;ldquo;Exécuter en tant qu’administrateur&amp;rdquo;.&lt;/li>
&lt;/ul>
&lt;ol start="3">
&lt;li>&lt;strong>Vérifier l&amp;rsquo;Exécution&lt;/strong> :&lt;/li>
&lt;/ol>
&lt;ul>
&lt;li>Le script va vérifier si vous avez les privilèges d&amp;rsquo;administrateur. Si ce n&amp;rsquo;est pas le cas, il vous demandera de le relancer avec ces droits.&lt;/li>
&lt;li>Une fois exécuté, il ajoutera une entrée dans le registre pour désactiver l&amp;rsquo;analyse des données par l&amp;rsquo;IA de Microsoft Copilot.&lt;/li>
&lt;/ul>
&lt;h2 id="conclusion">Conclusion&lt;/h2>
&lt;p>La fonctionnalité Recall de Microsoft Copilot+ soulève des questions importantes sur la sécurité et la confidentialité des utilisateurs. Désactiver cette fonctionnalité peut être crucial pour protéger vos données personnelles. En suivant les étapes décrites ci-dessus, vous pouvez désactiver Recall et reprendre le contrôle de votre vie privée.&lt;/p>
&lt;p>Enjoy 😎&lt;/p>
&lt;p>AlexIn Tech&lt;/p>
&lt;/div></description></item><item><title>Comment fermer les connexions à une base de données MS SQL</title><link>https://alexin.tech/fr/2024/01/31/comment-fermer-les-connexions-a-une-base-de-donnees-ms-sql/</link><pubDate>Wed, 31 Jan 2024 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2024/01/31/comment-fermer-les-connexions-a-une-base-de-donnees-ms-sql/</guid><description>&lt;div class="article-story">
&lt;h1 id="comment-fermer-les-connexions-à-une-base-de-données-ms-sql">Comment fermer les connexions à une base de données MS SQL&lt;/h1>
&lt;p>Lorsque vous essayez de mettre hors ligne une base de données dans Microsoft SQL Server et que cela ne fonctionne pas, cela signifie généralement qu&amp;rsquo;il y a des connexions actives ou des transactions qui empêchent l&amp;rsquo;opération de se terminer. Voici comment fermer les connexions à une base de données MS SQL et résoudre ce problème.&lt;/p>
&lt;p>&lt;strong>Identifier les connexions actives :&lt;/strong> Tout d&amp;rsquo;abord, vous devez déterminer s&amp;rsquo;il y a des connexions actives à votre base de données. Vous pouvez utiliser la requête SQL suivante pour cela :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="n">USE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">master&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">GO&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">SELECT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">spid&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">status&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">loginame&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">hostname&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">blocked&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">db_name&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">dbid&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">dbname&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">cmd&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">FROM&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">sysprocesses&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">dbid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">DB_ID&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;YourDatabaseName&amp;#39;&lt;/span>&lt;span class="p">);&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Remplacez &lt;strong>&amp;lsquo;YourDatabaseName&amp;rsquo;&lt;/strong> par le nom de votre base de données. Cette requête listera tous les processus connectés à votre base de données.&lt;/p>
&lt;p>&lt;strong>Tuer les connexions actives :&lt;/strong> S&amp;rsquo;il y a des connexions actives, vous pouvez les terminer. Utilisez la commande &lt;strong>KILL&lt;/strong> suivie de l&amp;rsquo;ID de session (spid) pour chaque connexion :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="n">KILL&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="p">];&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Remplacez &lt;strong>[session_id]&lt;/strong> par le spid du processus que vous souhaitez terminer. Soyez prudent avec cette commande, car elle mettra fin immédiatement à la session sélectionnée et peut entraîner la perte de travaux non sauvegardés.&lt;/p>
&lt;p>Enjoy 😎&lt;/p>
&lt;p>AlexIn Tech&lt;/p>
&lt;/div></description></item><item><title>Comment détecter des Orphaned Users sur MS SQL Server</title><link>https://alexin.tech/fr/2024/01/30/comment-detecter-des-orphaned-users-sur-ms-sql-server/</link><pubDate>Tue, 30 Jan 2024 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2024/01/30/comment-detecter-des-orphaned-users-sur-ms-sql-server/</guid><description>&lt;div class="article-story">
&lt;h1 id="comment-détecter-des-orphaned-users-sur-ms-sql-server">Comment détecter des Orphaned Users sur MS SQL Server&lt;/h1>
&lt;p>Bonjour à tous, c&amp;rsquo;est AlexIn Tech! Aujourd&amp;rsquo;hui, je vais partager avec vous une astuce technique que j&amp;rsquo;ai récemment utilisée lors de la migration d&amp;rsquo;un cluster SQL. J&amp;rsquo;avais besoin de vérifier l&amp;rsquo;existence d&amp;rsquo;&amp;ldquo;orphaned users&amp;rdquo; après avoir restauré ma base de données sur un nouveau cluster. Pour cela j&amp;rsquo;ai écrit un petit script TSQL et je vais vous l&amp;rsquo;expliquer en détail.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="MS SQL Server" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>MS SQL Server&lt;/em>&lt;/p>
&lt;h3 id="quest-ce-quun-orphaned-user-dans-sql-server">Qu&amp;rsquo;est-ce qu&amp;rsquo;un &amp;ldquo;Orphaned User&amp;rdquo; dans SQL Server?&lt;/h3>
&lt;p>Dans SQL Server, un &amp;ldquo;orphaned user&amp;rdquo; est un utilisateur de base de données qui n&amp;rsquo;est plus associé à une connexion valide au niveau de l&amp;rsquo;instance. Cela arrive souvent après la restauration d&amp;rsquo;une base de données dans un nouvel environnement.&lt;/p>
&lt;h3 id="le-script-pour-détecter-les-orphaned-users">Le Script pour Détecter les &amp;ldquo;Orphaned Users&amp;rdquo;&lt;/h3>
&lt;p>Voici mon petit script, il marche super.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="c1">-- Use your database
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="n">USE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">[&lt;/span>&lt;span class="n">YourDatabaseName&lt;/span>&lt;span class="p">];&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">GO&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1">-- Create a temporary table to store user information
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="k">CREATE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">TABLE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">#&lt;/span>&lt;span class="n">DBUsers&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">DBUserName&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">NVARCHAR&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">128&lt;/span>&lt;span class="p">),&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">DBUserSID&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">VARBINARY&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">85&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="p">);&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1">-- Insert database user information into the temp table
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="k">INSERT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">INTO&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">#&lt;/span>&lt;span class="n">DBUsers&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">DBUserName&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">DBUserSID&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">SELECT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">name&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sid&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">FROM&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">database_principals&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">WHERE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">type_desc&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">IN&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;SQL_USER&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;WINDOWS_USER&amp;#39;&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;WINDOWS_GROUP&amp;#39;&lt;/span>&lt;span class="p">);&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1">-- Select and compare with instance logins
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="k">SELECT&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">u&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">DBUserName&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">AS&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">DatabaseUser&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">u&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">DBUserSID&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">AS&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">DatabaseUserSID&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">p&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">name&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">AS&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">InstanceLogin&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">p&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">sid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">AS&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">InstanceLoginSID&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">CASE&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">WHEN&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">p&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">sid&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">IS&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">NULL&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">THEN&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;Orphaned User&amp;#39;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">ELSE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;Matched&amp;#39;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">END&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">AS&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">Status&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">FROM&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="o">#&lt;/span>&lt;span class="n">DBUsers&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">u&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">LEFT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">JOIN&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">server_principals&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">p&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">ON&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">u&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">DBUserSID&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">p&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">sid&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="c1">-- Drop the temporary table
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="k">DROP&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">TABLE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">#&lt;/span>&lt;span class="n">DBUsers&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h3 id="explication-du-script">Explication du Script&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Sélection de la Base de Données :&lt;/strong> Remplacez &lt;strong>[YourDatabaseName]&lt;/strong> par le nom de votre base de données pour cibler celle-ci.&lt;/li>
&lt;li>&lt;strong>Création d&amp;rsquo;une Table Temporaire :&lt;/strong> Le script commence par créer une table temporaire &lt;strong>#DBUsers&lt;/strong>. En TSQL, le préfixe &lt;strong>#&lt;/strong> indique une table temporaire qui existe uniquement pendant la durée de la session et est stockée dans &lt;strong>tempdb&lt;/strong>.**(lire la nota bene en bas d&amp;rsquo;articles pour plus d&amp;rsquo;infos)*&lt;/li>
&lt;li>&lt;strong>Insertion des Utilisateurs :&lt;/strong> Ensuite, il insère les noms et SID (Security Identifier) des utilisateurs de la base de données dans cette table temporaire.&lt;/li>
&lt;li>&lt;strong>Comparaison avec les Connexions de l&amp;rsquo;Instance :&lt;/strong> La requête principale compare les SID des utilisateurs de la base de données avec ceux des connexions de l&amp;rsquo;instance pour identifier les &amp;ldquo;orphaned users&amp;rdquo;.&lt;/li>
&lt;li>&lt;strong>Nettoyage :&lt;/strong> Enfin, la table temporaire est supprimée.&lt;/li>
&lt;/ol>
&lt;h3 id="comment-utiliser-le-script">Comment Utiliser le Script?&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Remplacez le Nom de la Base de Données :&lt;/strong> Commencez par remplacer &lt;strong>[YourDatabaseName]&lt;/strong> par le nom de votre base de données.&lt;/li>
&lt;li>&lt;strong>Exécutez le Script :&lt;/strong> Lancez le script dans votre environnement SQL Server Management Studio (SSMS).&lt;/li>
&lt;li>&lt;strong>Analysez les Résultats :&lt;/strong> Les utilisateurs marqués &amp;lsquo;Orphaned User&amp;rsquo; sont ceux que vous devez examiner.&lt;/li>
&lt;li>&lt;strong>Actions :&lt;/strong> Vous pouvez alors choisir de les supprimer ou de les relier à de nouvelles connexions.&lt;/li>
&lt;/ol>
&lt;h3 id="comprendre-les-faux-positifs-parmi-les-orphaned-users">Comprendre les Faux-Positifs parmi les &amp;ldquo;Orphaned Users&amp;rdquo;&lt;/h3>
&lt;p>Après avoir parcouru comment utiliser le script pour détecter les &amp;ldquo;orphaned users&amp;rdquo;, il est important de comprendre que, parfois, identifier un &amp;ldquo;orphaned user&amp;rdquo; ne signale pas forcément un problème. Dans certains cas, ces utilisateurs orphelins peuvent être des faux-positifs. Voici pourquoi :&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Utilisateurs Supprimés de l&amp;rsquo;Active Directory (AD) :&lt;/strong> Il est courant après un restore de DB de trouver des utilisateurs qui existaient dans l&amp;rsquo;AD lors de la création de la base de données mais qui ont depuis été supprimés de l&amp;rsquo;AD. Ces comptes, bien que toujours présents dans la base de données comme utilisateurs, ne sont plus dans les logins de l&amp;rsquo;instance car lorsque les logins de l&amp;rsquo;instance ont été restaurés ils n&amp;rsquo;existaient plus dans l&amp;rsquo;AD. Cela génère donc des &amp;ldquo;orphaned users&amp;rdquo; car ils sont des les users de la DB mais pas dans les logins de l&amp;rsquo;instance. Assez souvent des vieilleries qui n&amp;rsquo;avaient pas été supprimées.&lt;/li>
&lt;li>&lt;strong>Utilisateurs Spécifiques à la Base de Données :&lt;/strong> Certaines bases de données ont des utilisateurs créés spécifiquement pour elles, sans correspondance au niveau de l&amp;rsquo;instance. Ces utilisateurs sont souvent conçus pour des rôles ou des fonctions spécifiques à la base de données et n&amp;rsquo;ont pas besoin de connexion au niveau de l&amp;rsquo;instance.&lt;/li>
&lt;/ol>
&lt;p>J&amp;rsquo;espère que ce guide vous aidera à gérer efficacement les utilisateurs dans vos bases de données SQL Server. Les &amp;ldquo;orphaned users&amp;rdquo; peuvent être un casse-tête, mais avec le bon outil, ils sont faciles à repérer et à gérer.&lt;/p>
&lt;p>Enjoy 😎&lt;/p>
&lt;p>AlexIn Tech&lt;/p>
&lt;p>*&lt;strong>Nota Bene : Pourquoi supprimer explicitement une table temporaire ?&lt;/strong>&lt;/p>
&lt;p>Raisons de Supprimer Explicitement une Table Temporaire&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Clarté et Bonnes Pratiques :&lt;/strong> L&amp;rsquo;inclusion d&amp;rsquo;une commande &lt;strong>DROP TABLE&lt;/strong> pour les tables temporaires est souvent une question de clarté et de bonnes pratiques de développement. Elle indique clairement aux personnes qui lisent le script que la table n&amp;rsquo;est plus nécessaire et que son cycle de vie est géré de manière proactive.&lt;/li>
&lt;li>&lt;strong>Gestion des Ressources :&lt;/strong> Bien que SQL Server gère automatiquement la suppression des tables temporaires, le fait de les supprimer explicitement dès qu&amp;rsquo;elles ne sont plus nécessaires peut aider à libérer des ressources, comme la mémoire et l&amp;rsquo;espace disque dans &lt;strong>tempdb&lt;/strong>, plus rapidement, surtout dans de longues sessions ou transactions.&lt;/li>
&lt;li>&lt;strong>Prévention des Conflits dans de Longues Sessions :&lt;/strong> Dans des sessions particulièrement longues ou complexes, où plusieurs opérations sont effectuées, supprimer explicitement une table temporaire dès qu&amp;rsquo;elle n&amp;rsquo;est plus utile peut aider à prévenir des conflits ou des confusions avec d&amp;rsquo;autres parties du script qui pourraient utiliser des tables temporaires avec des noms similaires.&lt;/li>
&lt;li>&lt;strong>Habitude et Portabilité :&lt;/strong> Pour les développeurs qui travaillent avec différents systèmes de gestion de base de données (SGBD), l&amp;rsquo;habitude de supprimer explicitement toutes les tables, y compris les temporaires, peut être une pratique courante. Cela assure une certaine uniformité dans la gestion des ressources, indépendamment des spécificités de chaque SGBD.&lt;/li>
&lt;/ol>
&lt;/div></description></item><item><title>Comment supprimer les données de vos anciens disques durs - Eraser</title><link>https://alexin.tech/fr/2023/10/24/comment-supprimer-les-donnees-de-vos-anciens-disques-durs-eraser/</link><pubDate>Tue, 24 Oct 2023 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2023/10/24/comment-supprimer-les-donnees-de-vos-anciens-disques-durs-eraser/</guid><description>&lt;div class="article-story">
&lt;h1 id="comment-supprimer-les-données-de-vos-anciens-disques-durs---eraser">Comment supprimer les données de vos anciens disques durs - Eraser&lt;/h1>
&lt;h2 id="introduction">Introduction&lt;/h2>
&lt;p>Bonjour à tous, c&amp;rsquo;est AlexIn Tech ! Aujourd&amp;rsquo;hui, nous allons parler de la sécurité des données, un sujet qui m&amp;rsquo;intéresse particulièrement en tant que sysadmin. Plus précisément, je vais vous présenter Eraser, un outil gratuit et open source que j&amp;rsquo;utilise régulièrement pour supprimer définitivement les données de mes anciens disques durs (HDD).&lt;/p>
&lt;h2 id="quest-ce-queraser">Qu&amp;rsquo;est-ce qu&amp;rsquo;Eraser?&lt;/h2>
&lt;p>Eraser est un outil avancé de suppression de données pour Windows qui vous permet de supprimer en toute sécurité les données sensibles de votre disque dur en les écrasant plusieurs fois avec des motifs soigneusement sélectionnés. Contrairement à la suppression standard de fichiers, qui ne fait que marquer l&amp;rsquo;espace disque comme &amp;ldquo;libre&amp;rdquo;, Eraser élimine véritablement le risque de récupération des données.&lt;/p>
&lt;h2 id="pourquoi-utiliser-eraser">Pourquoi utiliser Eraser?&lt;/h2>
&lt;ol>
&lt;li>&lt;strong>Sécurité accrue&lt;/strong>: Les méthodes de suppression standards ne sont pas suffisantes pour garantir que vos données sont irrécupérables. Eraser résout ce problème.&lt;/li>
&lt;li>&lt;strong>Gratuit et Open Source&lt;/strong>: Pas besoin de payer pour une sécurité accrue. Eraser est gratuit et son code est ouvert au public.&lt;/li>
&lt;li>&lt;strong>Facilité d&amp;rsquo;utilisation&lt;/strong>: Une interface utilisateur intuitive qui rend la suppression sécurisée des données accessible même aux non-techniciens.&lt;/li>
&lt;/ol>
&lt;h2 id="comment-je-lutilise">Comment je l&amp;rsquo;utilise&lt;/h2>
&lt;h3 id="étape-1-installation">Étape 1: Installation&lt;/h3>
&lt;p>Téléchargez Eraser à partir de leur site officiel &lt;a href="https://eraser.heidi.ie/" target="_blank" rel="noopener">https://eraser.heidi.ie/&lt;/a> et suivez le processus d&amp;rsquo;installation standard.&lt;/p>
&lt;h3 id="étape-2-configuration">Étape 2: Configuration&lt;/h3>
&lt;p>Lancez Eraser, puis créez une &amp;ldquo;task&amp;rdquo; et sélectionnez les lecteurs ou les fichiers spécifiques que vous souhaitez supprimer. Vous pouvez également planifier la tâche pour une suppression régulière.&lt;/p>
&lt;h3 id="étape-3-exécution">Étape 3: Exécution&lt;/h3>
&lt;p>Après avoir confirmé que vous voulez procéder, cliquez sur &amp;ldquo;Start&amp;rdquo;. Eraser commencera alors le processus de suppression sécurisée, qui peut prendre du temps en fonction de la taille du disque et du niveau de sécurité* que vous avez choisi.&lt;/p>
&lt;p>*&lt;em>Eraser offre un niveau de sécurité &amp;ldquo;military grade&amp;rdquo;&lt;/em>&lt;/p>
&lt;h3 id="mon-retour-dexpérience">Mon retour d&amp;rsquo;expérience&lt;/h3>
&lt;p>En tant que professionnel de l&amp;rsquo;informatique, la sécurité des données est pour moi une priorité absolue. J&amp;rsquo;ai utilisé Eraser à plusieurs reprises, notamment lors de la mise au rebut ou de la réaffectation de vieux HDDs dans mon travail ainsi que lors de projets personnels. Le logiciel est fiable, efficace et offre un niveau de sécurité que peu de produits concurrents peuvent égaler.&lt;/p>
&lt;h2 id="conclusion">Conclusion&lt;/h2>
&lt;p>Eraser est un outil inestimable pour quiconque prend au sérieux la sécurité de ses données. Son interface utilisateur est simple, mais sous le capot, c&amp;rsquo;est une bête de puissance qui rendra vos données indéchiffrables. Je le recommande fortement à tous ceux qui cherchent à éliminer le risque de fuites de données.&lt;/p>
&lt;p>Voilà, c&amp;rsquo;est tout pour aujourd&amp;rsquo;hui. Si la sécurité des données vous intéresse autant que moi, assurez-vous d&amp;rsquo;essayer Eraser et faites-moi savoir ce que vous en pensez !&lt;/p>
&lt;/div></description></item><item><title>Un cas de support hors du commun - L'ordinateur fantôme qui se réveille la nuit !</title><link>https://alexin.tech/fr/2023/10/17/un-cas-de-support-hors-du-commun-lordinateur-fantome-qui-se-reveille-la-nuit/</link><pubDate>Tue, 17 Oct 2023 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2023/10/17/un-cas-de-support-hors-du-commun-lordinateur-fantome-qui-se-reveille-la-nuit/</guid><description>&lt;div class="article-story">
&lt;h1 id="un-cas-de-support-hors-du-commun---lordinateur-fantôme-qui-se-réveille-la-nuit-">Un cas de support hors du commun - L&amp;rsquo;ordinateur fantôme qui se réveille la nuit !&lt;/h1>
&lt;p>Salut à tous, c&amp;rsquo;est Alexis d&amp;rsquo;AlexIn.Tech ! Aujourd&amp;rsquo;hui, je vais partager avec vous une expérience de support qui m&amp;rsquo;a laissé perplexe. Imaginez-vous un ordinateur qui, tel un fantôme, décide de s&amp;rsquo;allumer tout seul, chaque nuit. Oui, vous avez bien lu. Chaque. Nuit.&lt;/p>
&lt;p>Dès que j&amp;rsquo;ai eu vent de ce problème, mon instinct de sysadmin m&amp;rsquo;a poussé à suspecter immédiatement la carte mère. Et, comme souvent, mon intuition ne m&amp;rsquo;a pas trompé ! Il s&amp;rsquo;agissait d&amp;rsquo;une MSI X299 Raider qui possédait une option cachée, du nom de &amp;ldquo;RTC Wake Up Call S/4 S/5&amp;rdquo;. Cette option, bien que présente, était introuvable dans les paramètres du BIOS de la carte mère. Étonnant, n&amp;rsquo;est-ce pas ?&lt;/p>
&lt;p>La clé de cette énigme résidait dans une combinaison de touches : F6. En utilisant cette touche, on pouvait accéder aux paramètres optimisés de la carte mère. Et, surprise ! Lors de l&amp;rsquo;activation de ces paramètres, un message apparaissait, indiquant que l&amp;rsquo;option &amp;ldquo;RTC Wake Up Call S/4 S/5&amp;rdquo; allait passer de &amp;ldquo;Enable&amp;rdquo; à &amp;ldquo;Disable&amp;rdquo;. C&amp;rsquo;était donc elle, la responsable des réveils nocturnes de cet ordinateur !&lt;/p>
&lt;p>Sans perdre de temps, j&amp;rsquo;ai appliqué ces paramètres optimisés, espérant mettre fin à ce mystère. Et quelle ne fut pas ma joie lorsque j&amp;rsquo;ai découvert que cela avait fonctionné ! Plus aucun démarrage intempestif en pleine nuit.&lt;/p>
&lt;p>Cette expérience m&amp;rsquo;a rappelé l&amp;rsquo;importance d&amp;rsquo;avoir une connaissance approfondie des produits que nous utilisons, mais aussi de toujours garder un œil curieux et ouvert aux solutions parfois cachées.&lt;/p>
&lt;p>J&amp;rsquo;espère que cet article vous a plu et que vous avez appris quelque chose d&amp;rsquo;utile. N&amp;rsquo;hésitez pas à partager vos propres expériences de support incroyables en commentaire. À très vite sur AlexIn.Tech !&lt;/p>
&lt;/div></description></item><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>S'y retrouver dans la jungle de licences M365</title><link>https://alexin.tech/fr/2023/03/26/sy-retrouver-dans-la-jungle-de-licences-m365/</link><pubDate>Sun, 26 Mar 2023 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2023/03/26/sy-retrouver-dans-la-jungle-de-licences-m365/</guid><description>&lt;div class="article-story">
&lt;h1 id="sy-retrouver-dans-la-jungle-de-licences-m365">S&amp;rsquo;y retrouver dans la jungle de licences M365&lt;/h1>
&lt;p>Salut à toi ! Aujourd&amp;rsquo;hui, on va parler d&amp;rsquo;un site web bien pratique pour les personnes qui ont besoin de s&amp;rsquo;y retrouver dans le monde des licences Microsoft M365. Tu connais sûrement le sentiment de confusion qui t&amp;rsquo;envahit lorsque tu essayes de comprendre quelle licence tu dois acheter pour quel produit. Eh bien, rassure toi, le site web que je vais te présenter aujourd&amp;rsquo;hui est là pour t&amp;rsquo;aider à y voir plus clair.&lt;/p>
&lt;p>Le site en question, c&amp;rsquo;est &lt;a href="https://m365maps.com/" target="_blank" rel="noopener">https://m365maps.com/&lt;/a>. Il te permet d&amp;rsquo;accéder à une liste complète de toutes les licences existantes pour Microsoft M365. Et le mieux dans tout ça, c&amp;rsquo;est que chaque licence est accompagnée d&amp;rsquo;une vue graphique détaillée de tous les features, composants et produits qu&amp;rsquo;elle inclut. De cette façon, tu peux savoir exactement ce que tu achètes et ce à quoi tu auras accès.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png.png" alt="M365 Maps" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>Exemple avec une E3&lt;/em>&lt;/p>
&lt;p>Mais ce n&amp;rsquo;est pas tout, tu peux également comparer les vues graphiques de deux licences différentes pour voir les différences et les similitudes entre les deux. Cela peut s&amp;rsquo;avérer particulièrement utile si tu hésites entre deux licences et que tu veux savoir laquelle est la plus adaptée à tes besoins.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="M365 Maps" srcset="
/fr/2023/03/26/sy-retrouver-dans-la-jungle-de-licences-m365/image_hu_efd850754234ba2e.webp 400w,
/fr/2023/03/26/sy-retrouver-dans-la-jungle-de-licences-m365/image_hu_acc75c10cecccffa.webp 760w,
/fr/2023/03/26/sy-retrouver-dans-la-jungle-de-licences-m365/image_hu_6d14d9a9572aa1f2.webp 1200w"
src="https://alexin.tech/fr/2023/03/26/sy-retrouver-dans-la-jungle-de-licences-m365/image_hu_efd850754234ba2e.webp"
width="760"
height="419"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;em>Exemple simple de comparaison&lt;/em>&lt;/p>
&lt;p>En résumé, &lt;a href="https://m365maps.com/" target="_blank" rel="noopener">https://m365maps.com/&lt;/a> est un site web pratique et facile à utiliser qui t&amp;rsquo;aidera à comprendre les licences Microsoft M365 et à choisir celle qui te convient le mieux. Alors n&amp;rsquo;hésite pas à y jeter un coup d&amp;rsquo;œil la prochaine fois que tu auras besoin d&amp;rsquo;acheter une licence !&lt;/p>
&lt;/div></description></item><item><title>MSSQL - tempdb prend trop de place - disque FULL</title><link>https://alexin.tech/fr/2023/03/13/mssql-tempdb-prend-trop-de-place-disque-full/</link><pubDate>Mon, 13 Mar 2023 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2023/03/13/mssql-tempdb-prend-trop-de-place-disque-full/</guid><description>&lt;div class="article-story">
&lt;h1 id="mssql---tempdb-prend-trop-de-place---disque-full">MSSQL - tempdb prend trop de place - disque FULL&lt;/h1>
&lt;p>Salut à tous !&lt;/p>
&lt;p>Aujourd&amp;rsquo;hui, on va parler de &amp;ldquo;tempdb&amp;rdquo;, une base de données système dans Microsoft SQL Server qui stocke des données temporaires telles que des tables temporaires et des variables de table, des plans d&amp;rsquo;exécution de requêtes et des résultats de requêtes intermédiaires. Cette base de données est essentielle au bon fonctionnement de SQL Server, et il est important de contrôler sa taille. (&lt;em>ça fait chelou avec les mots en français plutôt qu&amp;rsquo;en anglais mais vous comprenez, &amp;ldquo;temporary tables, table variable, query execution plan, query intermediary results, etc etc&amp;rdquo;&lt;/em>)&lt;/p>
&lt;p>Le problème que l&amp;rsquo;on va traiter concerne la croissance excessive de la base de données &amp;ldquo;tempdb&amp;rdquo;.&lt;/p>
&lt;p>Pour déterminer la cause de ce problème, la première étape consiste à lancer SQL Server Management Studio et à accéder à la base de données &amp;ldquo;tempdb&amp;rdquo;.&lt;/p>
&lt;p>On fait un clic droit sur la &amp;ldquo;tempdb&amp;rdquo; et ensuite =&amp;gt; Tasks =&amp;gt; Shrink =&amp;gt; Files =&amp;gt; Ne réduisez rien, regardez simplement l&amp;rsquo;espace disponible. Si l&amp;rsquo;espace disponible est élevé, cela indique qu&amp;rsquo;une requête mal optimisée est en cours d&amp;rsquo;exécution et que &amp;ldquo;tempdb&amp;rdquo; ne libère pas l&amp;rsquo;espace disponible.&lt;/p>
&lt;p>Si l&amp;rsquo;espace disponible est faible, accédez à la base de données &amp;ldquo;tempdb&amp;rdquo; et exécutez un rapport standard, &amp;ldquo;Top Transactions by Age&amp;rdquo;, pour identifier si de nombreuses transactions sont ouvertes, ce qui pourrait provoquer la croissance de la base de données et la non-libération de l&amp;rsquo;espace.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png.png" alt="MSSQL" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Si cela ne renvoie rien, vous pouvez exécuter un script qui affiche tous les processus en cours d&amp;rsquo;exécution et la quantité d&amp;rsquo;espace qu&amp;rsquo;ils utilisent dans &amp;ldquo;tempdb&amp;rdquo;.&lt;/p>
&lt;p>Le script suivant devrait fonctionner :&lt;/p>
&lt;p>&lt;a href="https://littlekendra.com/2009/08/27/whos-using-all-that-space-in-tempdb-and-whats-their-plan/" target="_blank" rel="noopener">Who&amp;rsquo;s Using All that Space in tempdb, and What&amp;rsquo;s their Plan? - littlekendra.com&lt;/a>&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-sql" data-lang="sql">&lt;span class="line">&lt;span class="cl">&lt;span class="k">select&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">request_id&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">task_alloc_GB&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">cast&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">task_alloc_pages&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">8&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="mi">1024&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="mi">1024&lt;/span>&lt;span class="p">.)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nb">numeric&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">10&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">))&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">task_dealloc_GB&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">cast&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">task_dealloc_pages&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">8&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="mi">1024&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="mi">1024&lt;/span>&lt;span class="p">.)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="nb">numeric&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">10&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">))&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">host&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">case&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">when&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">&amp;lt;=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">50&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">then&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;SYS&amp;#39;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">else&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">host_name&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">end&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">login_name&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">status&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">last_request_start_time&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">last_request_end_time&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="k">row_count&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">transaction_isolation_level&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">query_text&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">coalesce&lt;/span>&lt;span class="p">((&lt;/span>&lt;span class="k">SELECT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">SUBSTRING&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">text&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">statement_start_offset&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">+&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">CASE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">WHEN&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">statement_end_offset&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="mi">1&lt;/span>&lt;span class="k">THEN&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">LEN&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">CONVERT&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">nvarchar&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">max&lt;/span>&lt;span class="p">),&lt;/span>&lt;span class="nb">text&lt;/span>&lt;span class="p">))&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">*&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="k">ELSE&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">statement_end_offset&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">END&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">statement_start_offset&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">/&lt;/span>&lt;span class="mi">2&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">FROM&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">dm_exec_sql_text&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">sql_handle&lt;/span>&lt;span class="p">))&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="s1">&amp;#39;Not currently executing&amp;#39;&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">query_plan&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">SELECT&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">query_plan&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">from&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">dm_exec_query_plan&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">plan_handle&lt;/span>&lt;span class="p">))&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">from&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">Select&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">request_id&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">task_alloc_pages&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="k">sum&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">internal_objects_alloc_page_count&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">+&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">user_objects_alloc_page_count&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">task_dealloc_pages&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">sum&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">internal_objects_dealloc_page_count&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">+&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">user_objects_dealloc_page_count&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">from&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">dm_db_task_space_usage&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">group&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">by&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">request_id&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">left&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">join&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">dm_exec_requests&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">on&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">request_id&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t2&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">request_id&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">left&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">join&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sys&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">dm_exec_sessions&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">as&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">on&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="n">s1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">where&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">&amp;gt;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">50&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="c1">-- ignore system unless you suspect there&amp;#39;s a problem there
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">and&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">session_id&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">&amp;lt;&amp;gt;&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">@@&lt;/span>&lt;span class="n">SPID&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="c1">-- ignore this request itself
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c1">&lt;/span>&lt;span class="k">order&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">by&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">t1&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">task_alloc_pages&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">DESC&lt;/span>&lt;span class="p">;&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="w">&lt;/span>&lt;span class="k">GO&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Une fois que vous avez toutes ces informations, vous pouvez commencer à trouver la cause de ce problème de taille excessive et savoir exactement &amp;ldquo;qui&amp;rdquo; ou &amp;ldquo;quoi&amp;rdquo; utilise l&amp;rsquo;espace.&lt;/p>
&lt;p>Pour corriger ce problème de manière temporaire, redémarrez simplement SQL Server, ce qui effacera le fichier journal de la &amp;ldquo;tempdb&amp;rdquo;. Ensuite vous pouvez modifier les paramètres de l&amp;rsquo;auto-growth et afin de mettre une taille fixe ou désactiver ce settings. Logiquement la query qui pose problème n&amp;rsquo;arrivera plus à s&amp;rsquo;exécuter et on devrait trouver le coupable.&lt;/p>
&lt;p>En suivant ces étapes, vous pouvez facilement identifier la cause de la croissance excessive de &amp;ldquo;tempdb&amp;rdquo; et résoudre le problème.&lt;/p>
&lt;p>J&amp;rsquo;espère que cet article vous a été utile. À bientôt !&lt;/p>
&lt;/div></description></item><item><title>Bac à sable Windows</title><link>https://alexin.tech/fr/2022/12/19/bac-a-sable-windows/</link><pubDate>Mon, 19 Dec 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/12/19/bac-a-sable-windows/</guid><description>&lt;div class="article-story">
&lt;h1 id="bac-à-sable-windows">Bac à sable Windows&lt;/h1>
&lt;p>Hello, aujourd&amp;rsquo;hui je vous présente une nouvelle fonctionnalité, le bac à sable !&lt;/p>
&lt;p>Le Bac à sable Windows est une fonctionnalité de Windows 10 qui permet d&amp;rsquo;exécuter des applications de manière isolée dans un environnement léger et sécurisé. Si vous êtes comme la plupart des utilisateurs de Windows, vous avez peut-être installé un certain nombre d&amp;rsquo;applications sur votre ordinateur au fil des ans. Certaines de ces applications peuvent être essentielles pour votre travail ou votre vie personnelle, tandis que d&amp;rsquo;autres peuvent être des programmes de divertissement ou des utilitaires de maintenance.&lt;/p>
&lt;p>Mais que se passe-t-il si vous voulez essayer une nouvelle application sans avoir à la mettre en place sur votre ordinateur principal ? Ou que vous voulez exécuter une application dangereuse sans risquer de l&amp;rsquo;endommager ? C&amp;rsquo;est là que le Bac à sable Windows entre en jeu.&lt;/p>
&lt;p>Le Bac à sable Windows fournit un environnement de bureau léger pour exécuter des applications en toute sécurité de manière isolée. Les logiciels installés à l&amp;rsquo;intérieur de l&amp;rsquo;environnement Bac à sable Windows restent &amp;ldquo;en bac à sable&amp;rdquo; et s&amp;rsquo;exécutent séparément de l&amp;rsquo;ordinateur hôte. Cela signifie que les logiciels et les applications installés sur l&amp;rsquo;hôte ne sont pas directement disponibles dans le bac à sable. Si vous avez besoin d&amp;rsquo;applications spécifiques disponibles dans l&amp;rsquo;environnement Bac à sable Windows, elles doivent être installées explicitement dans l&amp;rsquo;environnement.&lt;/p>
&lt;p>Un bac à sable est temporaire. Lorsqu&amp;rsquo;il est fermé, tous les logiciels et fichiers, ainsi que l&amp;rsquo;état, sont supprimés. Vous obtenez une nouvelle instance du bac à sable chaque fois que vous ouvrez l&amp;rsquo;application. Notez toutefois qu&amp;rsquo;à partir de Windows 11 build 22509, vos données sont conservées par le biais d&amp;rsquo;un redémarrage initié à partir de l&amp;rsquo;environnement virtualisé, ce qui est utile pour installer des applications qui nécessitent le redémarrage du système d&amp;rsquo;exploitation.&lt;/p>
&lt;p>Le Bac à sable Windows possède les propriétés suivantes :&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Fait partie de Windows :&lt;/strong> tout ce qui est requis pour cette fonctionnalité est inclus dans Windows 10/11 Professionnel et Enterprise. Il n&amp;rsquo;est pas nécessaire de télécharger un disque dur virtuel.&lt;/li>
&lt;li>&lt;strong>Pristine :&lt;/strong> Chaque fois que Bac à sable Windows s&amp;rsquo;exécute, il est aussi propre qu&amp;rsquo;une toute nouvelle installation de Windows.&lt;/li>
&lt;li>&lt;strong>Jetable :&lt;/strong> rien ne persiste sur l&amp;rsquo;appareil. Tout est ignoré lorsque l&amp;rsquo;utilisateur ferme l&amp;rsquo;application.&lt;/li>
&lt;li>&lt;strong>Sécurisé :&lt;/strong> utilise la virtualisation matérielle pour l&amp;rsquo;isolation du noyau. Il s&amp;rsquo;appuie sur l&amp;rsquo;hyperviseur Microsoft pour exécuter un noyau distinct qui isole Bac à sable Windows de l&amp;rsquo;hôte.&lt;/li>
&lt;li>&lt;strong>Efficace:&lt;/strong> Utilise le planificateur de noyau intégré, la gestion intelligente de la mémoire et le GPU virtuel.&lt;/li>
&lt;/ul>
&lt;p>Le Bac à sable Windows est un outil pratique pour les utilisateurs de Windows qui souhaitent essayer de nouvelles applications sans compromettre la sécurité de leur ordinateur principal. Si vous êtes intéressé par l&amp;rsquo;utilisation du Bac à sable Windows, assurez-vous d&amp;rsquo;avoir une version de Windows 10/11 Professionnel ou Enterprise et suivez les instructions de votre ordinateur pour activer cette fonctionnalité. Vous pouvez également consulter la documentation de Microsoft pour plus de détails sur l&amp;rsquo;utilisation du Bac à sable Windows.&lt;/p>
&lt;p>&lt;a href="https://learn.microsoft.com/fr-fr/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview" target="_blank" rel="noopener">https://learn.microsoft.com/fr-fr/windows/security/threat-protection/windows-sandbox/windows-sandbox-overview&lt;/a>&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>Pour installer et utiliser le Bac à sable Windows sur votre ordinateur, vous devez avoir une version de Windows 10 Professionnel ou Enterprise, build version 18305 ou Windows 11. Vous devez également activer la virtualisation sur votre ordinateur.&lt;/p>
&lt;p>Si vous utilisez une machine physique, vous devrez activer les fonctionnalités de virtualisation dans le BIOS.&lt;/p>
&lt;p>Si vous utilisez une machine virtuelle, vous pouvez utiliser la commande PowerShell &amp;ldquo;Set-VMProcessor -VMName &lt;VMName> -ExposeVirtualizationExtensions $true&amp;rdquo; pour activer la virtualisation imbriquée.&lt;/p>
&lt;p>Ensuite, vous pouvez utiliser l&amp;rsquo;outil Fonctionnalités facultatives Windows pour activer le Bac à sable Windows et redémarrer votre ordinateur si nécessaire.&lt;/p>
&lt;p>Vous pouvez également utiliser la commande PowerShell &amp;ldquo;Enable-WindowsOptionalFeature -FeatureName «Containers-DisposableClientVM» -All -Online&amp;rdquo; pour activer le Bac à sable Windows.&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">Enable-WindowsOptionalFeature -FeatureName «Containers-DisposableClientVM» -All -Online
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="utilisation">Utilisation&lt;/h2>
&lt;p>Une fois le Bac à sable Windows installé, vous pouvez le trouver et l&amp;rsquo;exécuter dans le menu Démarrer. Pour utiliser le Bac à sable Windows, copiez un fichier exécutable (et tous les autres fichiers nécessaires pour exécuter l&amp;rsquo;application) depuis votre ordinateur hôte et collez-les dans la fenêtre Bac à sable Windows. Exécutez le fichier exécutable ou le programme d&amp;rsquo;installation dans le bac à sable, puis fermez le bac à sable lorsque vous avez terminé. Notez que le Bac à sable Windows n&amp;rsquo;utilise pas les paramètres de souris de l&amp;rsquo;ordinateur hôte, donc si vous utilisez une souris de droite sur votre ordinateur hôte, vous devrez appliquer ces paramètres manuellement dans le Bac à sable Windows.&lt;/p>
&lt;p>Voilà, j&amp;rsquo;espère que ça vous sera utile ! Enjoy !&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><item><title>Trouver un groupe AD en utilisant un wildcard</title><link>https://alexin.tech/fr/2022/09/19/trouver-un-groupe-ad-en-utilisant-un-wildcard/</link><pubDate>Mon, 19 Sep 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/09/19/trouver-un-groupe-ad-en-utilisant-un-wildcard/</guid><description>&lt;div class="article-story">
&lt;h1 id="trouver-un-groupe-ad-en-utilisant-un-wildcard">Trouver un groupe AD en utilisant un wildcard&lt;/h1>
&lt;p>Si tu essayes de rechercher un groupe AD en utilisant l&amp;rsquo;outil &amp;ldquo;dsa.msc&amp;rdquo;, tu verras qu&amp;rsquo;il n&amp;rsquo;est pas capable de rechercher un groupe basé juste sur un morceau du nom. Il ne prend pas en compte les wilcard.&lt;/p>
&lt;p>Si tu essayes de rechercher un groupe AD en utilisant l&amp;rsquo;outil &amp;ldquo;dsa.msc&amp;rdquo;, tu verras qu&amp;rsquo;il n&amp;rsquo;est pas capable de rechercher un groupe basé juste sur un morceau du nom. Il ne prend pas en compte les wilcard.&lt;/p>
&lt;p>Afin de pouvoir effectuer ce type de recherches nous allons utiliser le module PowerShell Active Directory.&lt;/p>
&lt;p>Tu peux l&amp;rsquo;installer avec la commande suivante :&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">Import-Module ActiveDirectory
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Une fois le module installé, utilises la commande suivante et remplace le &amp;ldquo;PartOfMyGroup&amp;rdquo; par le morceau du groupe que tu recherches.&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">Get-ADGroup -Filter {name -like &amp;#34;*PartOfMyGroup*&amp;#34;} -Properties Description,info | Select Name,samaccountname,Description,info | Sort Name
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Ainsi tu obtiendras tous les groupes AD qui ont dans leur nom le morceau de texte que tu recherchais.&lt;/p>
&lt;p>Enjoy ! 😎&lt;/p>
&lt;/div></description></item><item><title>Package Manager pour Windows => Chocolatey</title><link>https://alexin.tech/fr/2022/03/16/package-manager-pour-windows-chocolatey/</link><pubDate>Wed, 16 Mar 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/03/16/package-manager-pour-windows-chocolatey/</guid><description>&lt;div class="article-story">
&lt;h1 id="package-manager-pour-windows--chocolatey">Package Manager pour Windows =&amp;gt; Chocolatey&lt;/h1>
&lt;p>Comme tu le sais sûrement, Windows a sorti son propre package manager &amp;ldquo;&lt;a href="https://docs.microsoft.com/en-us/windows/package-manager/winget/" target="_blank" rel="noopener">winget&lt;/a>&amp;rdquo; qui vient en built-in de Windows 11 mais avant cela, ou si tu as d&amp;rsquo;autres besoins ou préférences, tu peux utiliser un outil tiers tel que celui que je vais te présenter aujourd&amp;rsquo;hui : Chocolatey&lt;/p>
&lt;h2 id="pourquoi-chocolatey-">Pourquoi Chocolatey :&lt;/h2>
&lt;p>Chocolatey est une solution de gestion de logiciels différente de tout ce que tu as connu sur Windows. Chocolatey apporte les concepts d&amp;rsquo;une véritable gestion des paquets pour te permettre de versionner les choses, de gérer les dépendances et l&amp;rsquo;ordre d&amp;rsquo;installation ainsi qu&amp;rsquo;une meilleure gestion d&amp;rsquo;inventaire et pleins d&amp;rsquo;autres fonctionnalités sympas.&lt;/p>
&lt;h2 id="installation-">Installation :&lt;/h2>
&lt;p>En premier, nous allons vérifier tes paramètres dans PowerShell.&lt;/p>
&lt;p>Ouvre une fenêtre PowerShell en administrateur et lance la commande suivante :&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">Get-ExecutionPolicy
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Si tu obtiens comme résultat &amp;ldquo;Restricted&amp;rdquo; alors lance l&amp;rsquo;une des commandes suivantes afin d&amp;rsquo;authoriser l&amp;rsquo;execution de scripts PowerShell.&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">Set-ExecutionPolicy AllSigned
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>ou&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">Set-ExecutionPolicy Bypass -Scope Process
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Une fois ces premiers checks effectués, utilise la commande suivante pour installer Chocolatey :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-gdscript3" data-lang="gdscript3">&lt;span class="line">&lt;span class="cl">&lt;span class="n">Set&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="n">ExecutionPolicy&lt;/span> &lt;span class="n">Bypass&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="n">Scope&lt;/span> &lt;span class="n">Process&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="n">Force&lt;/span>&lt;span class="p">;&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="n">System&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Net&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ServicePointManager&lt;/span>&lt;span class="p">]::&lt;/span>&lt;span class="n">SecurityProtocol&lt;/span> &lt;span class="o">=&lt;/span> &lt;span class="p">[&lt;/span>&lt;span class="n">System&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Net&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">ServicePointManager&lt;/span>&lt;span class="p">]::&lt;/span>&lt;span class="n">SecurityProtocol&lt;/span> &lt;span class="o">-&lt;/span>&lt;span class="n">bor&lt;/span> &lt;span class="mi">3072&lt;/span>&lt;span class="p">;&lt;/span> &lt;span class="n">iex&lt;/span> &lt;span class="p">((&lt;/span>&lt;span class="n">New&lt;/span>&lt;span class="o">-&lt;/span>&lt;span class="ne">Object&lt;/span> &lt;span class="n">System&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">Net&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">WebClient&lt;/span>&lt;span class="p">)&lt;/span>&lt;span class="o">.&lt;/span>&lt;span class="n">DownloadString&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="s1">&amp;#39;https://community.chocolatey.org/install.ps1&amp;#39;&lt;/span>&lt;span class="p">))&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="installer-des-packages-">Installer des packages :&lt;/h2>
&lt;p>Pour installer des packages et ainsi commencer à utiliser Chocolatey, rien de plus simple, tu vas sur ce lien et tu cherches les packages qui t&amp;rsquo;intéressent :&lt;/p>
&lt;p>&lt;a href="https://community.chocolatey.org/packages" target="_blank" rel="noopener">https://community.chocolatey.org/packages&lt;/a>&lt;/p>
&lt;h3 id="exemple--installer-adobe-reader">Exemple : Installer Adobe Reader&lt;/h3>
&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">choco install adobereader
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Rien de plus simple ! Enjoy ! 😁&lt;/p>
&lt;p>ps : J&amp;rsquo;avais fait un article sur le package manager de Windows , tu le trouveras &lt;a href="https://www.alexin.tech/post/windows-package-manager-winget" target="_blank" rel="noopener">ici&lt;/a> .&lt;/p>
&lt;/div></description></item><item><title>Windows - groupes et utilisateurs par défaut (Built-in Users, Default Groups and Special Identities)</title><link>https://alexin.tech/fr/2022/03/01/windows-groupes-et-utilisateurs-par-defaut-built-in-users-default-groups-and-special-identities/</link><pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/03/01/windows-groupes-et-utilisateurs-par-defaut-built-in-users-default-groups-and-special-identities/</guid><description>&lt;div class="article-story">
&lt;h1 id="windows---groupes-et-utilisateurs-par-défaut-built-in-users-default-groups-and-special-identities">Windows - groupes et utilisateurs par défaut (Built-in Users, Default Groups and Special Identities)&lt;/h1>
&lt;p>Hello, long time no see, alors aujourd&amp;rsquo;hui je vous ai reformaté un tableau du site &lt;a href="http://ss64.com/" target="_blank" rel="noopener">ss64.com&lt;/a> en 3 tableaux distincts qui parlent des différents groupes et utilisateurs de Windows.&lt;/p>
&lt;p>Cet article est majoritairement en anglais car j&amp;rsquo;ai repris toutes les descriptions de &lt;a href="http://ss64.com/" target="_blank" rel="noopener">ss64.com&lt;/a> qui a fait un magnifique travail de récupération des infos présentent sur la doc Microsoft.&lt;/p>
&lt;p>Vous trouverez les sources ci-dessous :&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://ss64.com/nt/syntax-security_groups.html" target="_blank" rel="noopener">https://ss64.com/nt/syntax-security_groups.html&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-security-groups" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-security-groups&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="les-groupes-par-défaut-default--built-in-group">Les groupes par défaut (default / built-in group)&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Default Group&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Access Control Assistance Operators&lt;/td>
&lt;td>Remotely query authorization attributes and permissions for resources on the computer. BuiltIn Local. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Account Operators&lt;/td>
&lt;td>Grants limited account creation privileges to a user. Members of this group can create and modify most types of accounts, including those of users, local groups, and global groups, and members can log in locally to domain controllers. Members of the Account Operators group cannot manage the Administrator user account, the user accounts of administrators, or the Administrators, Server Operators, Account Operators, Backup Operators, or Print Operators groups. Members of this group cannot modify user rights. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Administrators&lt;/td>
&lt;td>A built-in group . Grants complete and unrestricted access to the computer, or if the computer is promoted to a domain controller, members have unrestricted access to the domain.This group cannot be renamed, deleted, or moved. This built-in group controls access to all the domain controllers in its domain, and it can change the membership of all administrative groups. Membership can be modified by members of the following groups: the default service Administrators, Domain Admins in the domain, or Enterprise Admins. The group is the default owner of any object that is created by a member of the group. &lt;a href="https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-security-groups#bkmk-admins" target="_blank" rel="noopener">Default User Rights for Administrators&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Allowed RODC Password Replication Group&lt;/td>
&lt;td>Manage a RODC password replication policy. The &lt;em>Denied RODC Password Replication Group&lt;/em> group contains a variety of high-privilege accounts and security groups. The Denied RODC Password Replication group supersedes the Allowed RODC Password Replication group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Backup Operators&lt;/td>
&lt;td>A built-in group. By default, the group has no members. Backup Operators can back up and restore all files on a computer, regardless of the permissions that protect those files. Backup Operators also can log on to the computer and shut it down. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Back up files and directories: SeBackupPrivilege Log on as a batch job: SeBatchLogonRight Restore files and directories: SeRestorePrivilege Shut down the system: SeShutdownPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Certificate Service DCOM Access&lt;/td>
&lt;td>Members of this group are allowed to connect to certification authorities in the enterprise. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cert Publishers&lt;/td>
&lt;td>A global group that includes all computers that are running an enterprise certificate authority. Cert Publishers are authorized to publish certificates for User objects in Active Directory. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cert Server Admins&lt;/td>
&lt;td>Certificate Authority Administrators - authorized to administer certificates for User objects in Active Directory. (Domain Local)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cert Requesters&lt;/td>
&lt;td>Members can request certificates (Domain Local)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cloneable Domain Controllers&lt;/td>
&lt;td>Members of the Cloneable Domain Controllers group that are domain controllers may be cloned. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cryptographic Operators&lt;/td>
&lt;td>Members of this group are authorized to perform cryptographic operations. This security group was added in Windows Vista Service Pack 1 (SP1) to configure Windows Firewall for IPsec in Common Criteria mode. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Denied RODC Password Replication Group&lt;/td>
&lt;td>Members of the Denied RODC Password Replication group cannot have their passwords replicated to any Read-only domain controller. The purpose of this security group is to manage a RODC password replication policy. This group contains a variety of high-privilege accounts and security groups. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Device Owners&lt;/td>
&lt;td>This group is not currently used in Windows. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Access this computer from the network: SeNetworkLogonRight Bypass traverse checking: SeChangeNotifyPrivilege Change the time zone: SeTimeZonePrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Distributed COM Users&lt;/td>
&lt;td>Members of the Distributed COM Users group are allowed to launch, activate, and use Distributed COM objects on the computer. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DnsAdmins (installed with DNS)&lt;/td>
&lt;td>Members of this group have administrative access to the DNS Server service. The default permissions are as follows: Allow: Read, Write, Create All Child objects, Delete Child objects, Special Permissions. This group has no default members. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DnsUpdateProxy (installed with DNS)&lt;/td>
&lt;td>Members of this group are DNS clients that can perform dynamic updates on behalf of other clients, such as DHCP servers. This group has no default members. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Admins&lt;/td>
&lt;td>A global group whose members are authorized to administer the domain. By default, the Domain Admins group is a member of the Administrators group on all computers that have joined a domain, including the domain controllers. Domain Admins is the default owner of any object that is created in the domain&amp;rsquo;s Active Directory by any member of the group. If members of the group create other objects, such as files, the default owner is the Administrators group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: as Administrators&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Computers&lt;/td>
&lt;td>A global group that includes all computers that have joined the domain, excluding domain controllers. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Controllers&lt;/td>
&lt;td>A global group that includes all domain controllers in the domain. New domain controllers are added to this group automatically. Default Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Guests&lt;/td>
&lt;td>A global group that, by default, has only one member, the domain&amp;rsquo;s built-in Guest account. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Guests&amp;rsquo;&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Users&lt;/td>
&lt;td>A global group that, by default, includes all user accounts in a domain. When you create a user account in a domain, it is added to this group automatically. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Users&amp;rsquo;&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Admins&lt;/td>
&lt;td>A group that exists only in the root domain of an Active Directory forest of domains. It is a universal group if the domain is in native mode, a global group if the domain is in mixed mode. The group is authorized to make forest-wide changes in Active Directory, such as adding child domains. By default, the only member of the group is the Administrator account for the forest root domain. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See Administrators See Denied RODC Password Replication Group&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Key Admins&lt;/td>
&lt;td>Members of this group can perform administrative actions on key objects within the forest. The Enterprise Key Admins group was introduced in Windows Server 2016. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Read-Only Domain Controllers&lt;/td>
&lt;td>Members of this group are Read-Only Domain Controllers in the enterprise. Except for account passwords, a Read-only domain controller holds all the Active Directory objects and attributes that a writable domain controller holds. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Event Log Readers&lt;/td>
&lt;td>Members of this group can read event logs from local computers. The group is created when the server is promoted to a domain controller. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Group Policy Creators Owners&lt;/td>
&lt;td>A global group that is authorized to create new Group Policy objects in Active Directory. By default, the only member of the group is Administrator. The default owner of a new Group Policy object is usually the user who created it. If the user is a member of Administrators or Domain Admins, all objects that are created by the user are owned by the group. Owners have full control of the objects they own. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Denied RODC Password Replication Group&amp;rsquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Guests&lt;/td>
&lt;td>A built-in group. By default, the only member is the Guest account. The Guests group allows occasional or one-time users to log on with limited privileges to a computer&amp;rsquo;s built-in Guest account. When a member of the Guests group signs out, the entire profile is deleted. This includes everything that is stored in the %userprofile% directory, including the user&amp;rsquo;s registry hive information, custom desktop icons, and other user-specific settings. This implies that a guest must use a temporary profile to sign in to the system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Hyper-V Administrators&lt;/td>
&lt;td>Members of the Hyper-V Administrators group have complete and unrestricted access to all the features in Hyper-V. Adding members to this group helps reduce the number of members required in the Administrators group, and further separates access. Introduced in Windows Server 2012. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>IIS_IUSRS&lt;/td>
&lt;td>IIS_IUSRS is a built-in group that is used by Internet Information Services beginning with IIS 7.0. A built-in account and group are guaranteed by the operating system to always have a unique SID. IIS 7.0 replaces the IUSR_MachineName account and the IIS_WPG group with the IIS_IUSRS group to ensure that the actual names that are used by the new account and group will never be localized. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Incoming Forest Trust Builders&lt;/td>
&lt;td>Members of the Incoming Forest Trust Builders group can create incoming, one-way trusts to this forest. Active Directory provides security across multiple domains or forests through domain and forest trust relationships. This group cannot be renamed, deleted, or moved. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Key Admins&lt;/td>
&lt;td>Members of this group can perform administrative actions on key objects within the domain. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Network Configuration Operators&lt;/td>
&lt;td>Members of this group can make changes to TCP/IP settings, Rename/Enable/disable LAN connections,Delete/rename remote access connections, enter the PIN unblock key (PUK) for mobile broadband devices that support a SIM card and renew and release TCP/IP addresses on domain controllers in the domain. This group has no default members. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Performance Monitor Users&lt;/td>
&lt;td>Members of this group can monitor performance counters on domain controllers in the domain, locally and from remote clients without being a member of the Administrators or Performance Log Users groups. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Performance Log Users&lt;/td>
&lt;td>Members of this group can manage performance counters, logs and alerts on domain controllers in the domain, locally and from remote clients without being a member of the Administrators group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Log on as a batch job: SeBatchLogonRight&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Power Users&lt;/td>
&lt;td>By default, members of this group have no more user rights or permissions than a standard user account. The Power Users group did once grant users specific admin rights and permissions in previous versions of Windows.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Pre-Windows 2000 Compatible Access&lt;/td>
&lt;td>A backward compatibility group which allows read access on all users and groups in the domain. By default, the special identity Everyone is a member of this group. Add users to this group only if they are running Windows NT 4.0 or earlier. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Bypass traverse checking: SeChangeNotifyPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Print Operators&lt;/td>
&lt;td>A built-in group that exists only on domain controllers. By default, the only member is the Domain Users group. Print Operators can manage printers and document queues. They can also manage Active Directory printer objects in the domain. Members of this group can locally sign in to and shut down domain controllers in the domain. Because members of this group can load and unload device drivers on all domain controllers in the domain, add users with caution. This group cannot be renamed, deleted, or moved. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Load and unload device drivers: SeLoadDriverPrivilege Shut down the system: SeShutdownPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Protected Users&lt;/strong>&lt;/td>
&lt;td>Members of the Protected Users group are afforded additional protection against the compromise of credentials during authentication processes. This security group is designed as part of a strategy to effectively protect and manage credentials within the enterprise. Members of this group automatically have non-configurable protection applied to their accounts. Membership in the Protected Users group is meant to be restrictive and proactively secure by default. The only method to modify the protection for an account is to remove the account from the security group. This group was introduced in Windows Server 2012 R2. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None &lt;strong>Vous devriez vraiment l&amp;rsquo;utiliser.&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RAS and IAS Servers&lt;/td>
&lt;td>Servers in this group are permitted access to the remote access properties of users. A domain local group . By default, this group has no members. Computers that are running the Routing and Remote Access service are added to the group automatically. Members of this group have access to certain properties of User objects, such as Read Account Restrictions, Read Logon Information, and Read Remote Access Information. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RDS Endpoint Servers&lt;/td>
&lt;td>Servers that are members in the RDS Endpoint Servers group can run virtual machines and host sessions where user RemoteApp programs and personal virtual desktops run. This group needs to be populated on servers running RD Connection Broker. Session Host servers and RD Virtualization Host servers used in the deployment need to be in this group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RDS Management Servers&lt;/td>
&lt;td>Servers that are members in the RDS Management Servers group can be used to perform routine administrative actions on servers running Remote Desktop Services. This group needs to be populated on all servers in a Remote Desktop Services deployment. The servers running the RDS Central Management service must be included in this group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RDS Remote Access Servers&lt;/td>
&lt;td>Servers in the RDS Remote Access Servers group provide users with access to RemoteApp programs and personal virtual desktops. In Internet facing deployments, these servers are typically deployed in an edge network. This group needs to be populated on servers running RD Connection Broker. RD Gateway servers and RD Web Access servers that are used in the deployment need to be in this group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Read-Only Domain Controllers&lt;/td>
&lt;td>This group is comprised of the Read-only domain controllers in the domain. A Read-only domain controller makes it possible for organizations to easily deploy a domain controller in scenarios where physical security cannot be guaranteed, such as branch office locations, or in scenarios where local storage of all domain passwords is considered a primary threat, such as in an extranet or in an application-facing role. Default User Rights See &amp;lsquo;Denied RODC Password Replication Group&amp;rsquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Remote Desktop Users&lt;/td>
&lt;td>The Remote Desktop Users group on an RD Session Host server is used to grant users and groups permissions to remotely connect to an RD Session Host server. This group cannot be renamed, deleted, or moved. It appears as a SID until the domain controller is made the primary domain controller and it holds the operations master role (also known as flexible single master operations or FSMO). Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Remote Management Users&lt;/td>
&lt;td>Members of the Remote Management Users group can access WMI resources over management protocols (such as WS-Management via the Windows Remote Management service). This applies only to WMI namespaces that grant access to the user. The Remote Management Users group is generally used to allow users to manage servers through the Server Manager console, whereas the WinRMRemoteWMIUsers_ group is allows remotely running Windows PowerShell commands. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Replicator&lt;/td>
&lt;td>Computers that are members of the Replicator group support file replication in a domain. Windows Server operating systems use the File Replication service (FRS) to replicate system policies and logon scripts stored in the System Volume (SYSVOL).The DFS Replication service is a replacement for FRS, and it can be used to replicate the contents of a SYSVOL shared resource, DFS folders, and other custom (non-SYSVOL) data. You should migrate all non-SYSVOL FRS replica sets to DFS Replication. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Schema Admins&lt;/td>
&lt;td>A group that exists only in the root domain of an Active Directory forest of domains. It is a universal group if the domain is in native mode , a global group if the domain is in mixed mode . The group is authorized to make schema changes in Active Directory. By default, the only member of the group is the Administrator account for the forest root domain. Because this group has significant power in the forest, add users with caution. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Denied RODC Password Replication Group&amp;rsquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Server Operators&lt;/td>
&lt;td>A built-in group that exists only on domain controllers. By default, the group has no members. Server Operators can log on to a server interactively; create and delete network shares; start and stop services; back up and restore files; format the hard disk of the computer; and shut down the computer. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Back up files and directories: SeBackupPrivilege Change the system time: SeSystemTimePrivilege Change the time zone: SeTimeZonePrivilege Force shutdown from a remote system: SeRemoteShutdownPrivilege Restore files and directories SeRestorePrivilege Shut down the system: SeShutdownPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Storage Replica Administrators&lt;/td>
&lt;td>Members of this group have complete and unrestricted access to all features of Storage Replica. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>System Managed Accounts Group&lt;/th>
&lt;th>Members of this group are managed by the system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Terminal Server License Servers&lt;/td>
&lt;td>Members of the Terminal Server License Servers group can update user accounts in Active Directory with information about license issuance. This is used to track and report TS Per User CAL usage. A TS Per User CAL gives one user the right to access a Terminal Server from an unlimited number of client computers or devices. This group appears as a SID until the domain controller is made the primary domain controller and it holds the operations master role (also known as flexible single master operations or FSMO). Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Users&lt;/td>
&lt;td>A built-in group. After the initial installation of the operating system, the only member is the Authenticated Users group. When a computer joins a domain, the Domain Users group is added to the Users group on the computer. Users can perform tasks such as running applications, using local and network printers, shutting down the computer, and locking the computer. Users can install applications that only they are allowed to use if the installation program of the application supports per-user installation. This group cannot be renamed, deleted, or moved. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Windows Authorization Access Group&lt;/td>
&lt;td>Members of this group have access to the computed token GroupsGlobalAndUniversal attribute on User objects. Some applications have features that read the token-groups-global-and-universal (TGGAU) attribute on user account objects or on computer account objects in Active Directory Domain Services. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>WinRMRemoteWMIUsers_&lt;/td>
&lt;td>In Windows 8 and in Windows Server 2012, a Share tab was added to the Advanced Security Settings user interface. This tab displays the security properties of a remote file share. To view this information, you must have the following permissions and memberships, as appropriate for the version of Windows Server that the file server is running.The WinRMRemoteWMIUsers_ group allows running PowerShell commands remotely whereas the &amp;lsquo;Remote Management Users&amp;rsquo; group is generally used to allow users to manage servers by using the Server Manager console. This security group was introduced in Windows Server 2012. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="utilisateurs-par-défaut-ou-propriétaire-de-session-default-user-or-session-owner">Utilisateurs par défaut ou propriétaire de session (Default User or Session owner)&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Default User or Session owner&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Administrator&lt;/td>
&lt;td>A user account for the system administrator. This account is the first account created during operating system installation. The account cannot be deleted or locked out. It is a member of the Administrators group and cannot be removed from that group.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Guest&lt;/td>
&lt;td>A user account for people who do not have individual accounts. This user account does not require a password. By default, the Guest account is disabled.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>KRBTGT&lt;/td>
&lt;td>A service account that is used by the Key Distribution Center (KDC) service.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="identités-spéciales-special-identity">Identités spéciales (Special Identity)&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Special Identity&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Anonymous Logon&lt;/td>
&lt;td>A user who has logged on anonymously. This identity allows anonymous access to resources, such as a web page that is published on corporate servers. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Authenticated Users&lt;/td>
&lt;td>group that includes all users whose identities were authenticated when they logged on. Membership is controlled by the operating system. This identity allows access to shared resources within the domain, such as files in a shared folder that should be accessible to all the workers in the organization. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Add workstations to domain: SeMachineAccountPrivilege (Often removed in environments that have an IT administrator.) Bypass traverse checking: SeChangeNotifyPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Batch&lt;/td>
&lt;td>Any user or process that accesses the system as a batch job (or through the batch queue) has the Batch identity. This identity allows batch jobs to run scheduled tasks, such as a nightly cleanup jobMembership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Creator Group&lt;/td>
&lt;td>The person who created the file or the directory is a member of this special identity group. Windows Server operating systems use this identity to automatically grant access permissions to the creator of a file or directory. A placeholder security identifier (SID) is created in an inheritable access control entry (ACE). When the ACE is inherited, the system replaces this SID with the SID for the primary group of the object’s current owner. The primary group is used only by the Portable Operating System Interface for UNIX (POSIX) subsystem. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Creator Owner&lt;/td>
&lt;td>The person who created the file or the directory is a member of this special identity group. Windows Server operating systems use this identity to automatically grant access permissions to the creator of a file or directory. A placeholder SID is created in an inheritable ACE. When the ACE is inherited, the system replaces this SID with the SID for the object’s current owner.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Dialup&lt;/td>
&lt;td>Any user who accesses the system through a dial-up connection has the Dial-Up identity. This identity distinguishes dial-up users from other types of authenticated users.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Digest Authentication&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Domain Controllers&lt;/td>
&lt;td>A group that includes all domain controllers an Active Directory directory service forest of domains. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Allow log on locally: SeInteractiveLogonRight&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Everyone&lt;/td>
&lt;td>All interactive, network, dial-up, and authenticated users are members of the Everyone group. This special identity group gives wide access to system resources. Whenever a user logs on to the network, the user is automatically added to the Everyone group. On computers running Windows 2000 and earlier, the Everyone group included the Anonymous Logon group as a default member, but as of Windows Server 2003, the Everyone group contains only Authenticated Users and Guest; and it no longer includes Anonymous Logon by default (although this can be changed). Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Act as part of the operating system: SeTcbPrivilege Bypass traverse checking: SeChangeNotifyPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Interactive&lt;/td>
&lt;td>Any user who is logged on to the local system has the Interactive identity. This identity allows only local users to access a resource. Whenever a user accesses a given resource on the computer to which they are currently logged on, the user is automatically added to the Interactive group. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Local Service&lt;/td>
&lt;td>The Local Service account is similar to an Authenticated User account. The Local Service account has the same level of access to resources and objects as members of the Users group. This limited access helps safeguard your system if individual services or processes are compromised. Services that run as the Local Service account access network resources as a null session with anonymous credentials. The name of the account is NT AUTHORITY\LocalService. This account does not have a password. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Adjust memory quotas for a process: SeIncreaseQuotaPrivilege Bypass traverse checking: SeChangeNotifyPrivilege Change the system time: SeSystemtimePrivilege Change the time zone: SeTimeZonePrivilege Create global objects: SeCreateGlobalPrivilege Generate security audits: SeAuditPrivilege Impersonate a client after authentication: SeImpersonatePrivilege Replace a process level token: SeAssignPrimaryTokenPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Local System&lt;/td>
&lt;td>This is a service account that is used by the operating system. The LocalSystem account is a powerful account that has full access to the system and acts as the computer on the network. If a service logs on to the LocalSystem account on a domain controller, that service has access to the entire domain. Some services are configured by default to log on to the LocalSystem account. Do not change the default service setting. The name of the account is LocalSystem. This account does not have a password. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Network&lt;/td>
&lt;td>This group implicitly includes all users who are logged on through a network connection. Any user who accesses the system through a network has the Network identity. This identity allows only remote users to access a resource. Whenever a user accesses a given resource over the network, the user is automatically added to the Network group. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Network Service&lt;/td>
&lt;td>The Network Service account is similar to an Authenticated User account. The Network Service account has the same level of access to resources and objects as members of the Users group. This limited access helps safeguard your system if individual services or processes are compromised. Services that run as the Network Service account access network resources by using the credentials of the computer account. The name of the account is NT AUTHORITY\NetworkService. This account does not have a password. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Adjust memory quotas for a process: SeIncreaseQuotaPrivilege Bypass traverse checking: SeChangeNotifyPrivilege Create global objects: SeCreateGlobalPrivilege Generate security audits: SeAuditPrivilege Impersonate a client after authentication: SeImpersonatePrivilege Restore files and directories: SeRestorePrivilege Replace a process level token: SeAssignPrimaryTokenPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>NTLM Authentication&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Other Organization&lt;/td>
&lt;td>This group implicitly includes all users who are logged on to the system through a dial-up connection. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Principal Self or Self&lt;/td>
&lt;td>This identity is a placeholder in an ACE on a user, group, or computer object in Active Directory. When you grant permissions to Principal Self, you grant them to the security principal that is represented by the object. During an access check, the operating system replaces the SID for Principal Self with the SID for the security principal that is represented by the object. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Remote Interactive Logon&lt;/td>
&lt;td>This identity represents all users who are currently logged on to a computer by using a Remote Desktop connection. This group is a subset of the Interactive group. Access tokens that contain the Remote Interactive Logon SID also contain the Interactive SID. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Restricted&lt;/td>
&lt;td>Users and computers with restricted capabilities have the Restricted identity. This identity group is used by a process that is running in a restricted security context, such as running an application with the RunAs service. When code runs at the Restricted security level, the Restricted SID is added to the user’s access token. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>SChannel Authentication&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Service&lt;/td>
&lt;td>Any service that accesses the system has the Service identity. This identity group includes all security principals that are signed in as a service. This identity grants access to processes that are being run by Windows Server services. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Create global objects: SeCreateGlobalPrivilege Impersonate a client after authentication: SeImpersonatePrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Terminal Server Users&lt;/td>
&lt;td>Any user accessing the system through Terminal Services has the Terminal Server User identity. This identity allows users to access Terminal Server applications and to perform other necessary tasks with Terminal Server services. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>This Organization&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Window Manager\Window Manager Group&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Bypass traverse checking: SeChangeNotifyPrivilege Increase a process working set: SeIncreaseWorkingSetPrivilege&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="heading">&lt;/h2>
&lt;p>Tu as atteint la fin des 3 tableaux. Félicitations ! 😎&lt;/p>
&lt;/div></description></item><item><title>Redémarrer un serveur distant en ligne de commande (CMD)</title><link>https://alexin.tech/fr/2022/01/03/redemarrer-un-serveur-distant-en-ligne-de-commande-cmd/</link><pubDate>Mon, 03 Jan 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/01/03/redemarrer-un-serveur-distant-en-ligne-de-commande-cmd/</guid><description>&lt;div class="article-story">
&lt;h1 id="redémarrer-un-serveur-distant-en-ligne-de-commande-cmd">Redémarrer un serveur distant en ligne de commande (CMD)&lt;/h1>
&lt;p>Adieu salut c&amp;rsquo;t&amp;rsquo;équipe ! Alors aujourd&amp;rsquo;hui un petit article ultra court qui explique comment redémarrer un serveur distant en ligne de commande (CMD).&lt;/p>
&lt;h2 id="la-commande-shutdown">La commande shutdown&lt;/h2>
&lt;p>Windows a une commande d&amp;rsquo;arrêt qui est intégrée et qui se nomme &amp;ldquo;shutdown&amp;rdquo;. On peut l&amp;rsquo;utiliser pour stopper ou redémarrer une machine locale ou distante.&lt;/p>
&lt;p>Pour utiliser cette commande, il vous suffit d&amp;rsquo;ouvrir une CMD.&lt;/p>
&lt;p>Le détail de cette commande s&amp;rsquo;obtient en tapant &amp;ldquo;shutdown /?&amp;rdquo; dans une CMD.&lt;/p>
&lt;p>Voici une liste des fonctions les plus utilisées :&lt;/p>
&lt;ul>
&lt;li>/s - éteindre la machine&lt;/li>
&lt;li>/r - redémarrer la machine&lt;/li>
&lt;li>/m - spécifier un ordinateur distant&lt;/li>
&lt;li>/l - ne pas logguer&lt;/li>
&lt;li>/t - Le temps en secondes avant le stop ou reboot.&lt;/li>
&lt;li>/c - Un commentaire qui s&amp;rsquo;affiche sur l&amp;rsquo;écran de reboot ou d&amp;rsquo;arrêt de la machine.&lt;/li>
&lt;/ul>
&lt;p>Voici quelques exemples :&lt;/p>
&lt;h2 id="arrêt-dune-machine">Arrêt d&amp;rsquo;une machine&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">shutdown /s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="restart-instantané-dune-machine">Restart instantané d&amp;rsquo;une machine&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">shutdown /r /t &lt;span class="m">00&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="restart-instantané-dune-machine-distante">Restart instantané d&amp;rsquo;une machine distante&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">shutdown /r /m &lt;span class="se">\\&lt;/span>yourRemoteServer /t &lt;span class="m">0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Voilà, enjoy ! 😉&lt;/p>
&lt;/div></description></item><item><title>Log4J scanner en PowerShell &amp; Shell pour Windows et Linux</title><link>https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/</link><pubDate>Fri, 17 Dec 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/</guid><description>&lt;div class="article-story">
&lt;h1 id="log4j-scanner-en-powershell--shell-pour-windows-et-linux">Log4J scanner en PowerShell &amp;amp; Shell pour Windows et Linux&lt;/h1>
&lt;p>Hello ! Alors aujourd&amp;rsquo;hui je voulais juste vous partager un petit scanner de vulnérabilités qui a été développé par l&amp;rsquo;entreprise Genevoise &lt;a href="https://www.e-xpertsolutions.com/" target="_blank" rel="noopener">e-Xpert Solutions&lt;/a> et qui permet de détecter les vulnérabilités liées à Log4J pour vos serveurs .&lt;/p>
&lt;p>&lt;a href="https://github.com/e-XpertSolutions/atdefense-research" target="_blank" rel="noopener">https://github.com/e-XpertSolutions/atdefense-research&lt;/a>&lt;/p>
&lt;p>Ce script a été développé par :
&lt;a href="https://github.com/peacand" target="_blank" rel="noopener">Michael Molho&lt;/a>
David Routin&lt;/p>
&lt;p>Et j&amp;rsquo;ai contribué à ce projet en ajoutant le check de la version 2.15 qui contient un faille de type DoS.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="github-contributor" srcset="
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_72441eec43a25a0.webp 400w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_d12ddba33affff4c.webp 760w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_9797acdc25320c2f.webp 1200w"
src="https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_72441eec43a25a0.webp"
width="235"
height="137"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Ouai je suis assez fier pour le coup, car je n&amp;rsquo;avais encore jamais participé à un projet sur GitHub. Donc de voir mon nom dans les &amp;ldquo;Contributors&amp;rdquo;, ça fait plaisir.&lt;/p>
&lt;p>&lt;em>Update 20.12.2021 : La version 2.16 est aussi vulnérable à une faille de type DoS, j&amp;rsquo;ai effectué une nouvelle pull request afin de maj le script PowerShell.&lt;/em>&lt;/p>
&lt;p>Voici comment l&amp;rsquo;utiliser sur Windows :&lt;/p>
&lt;ol>
&lt;li>Tu télécharges handle.exe (un outil des sysinternals) ici : &lt;a href="https://docs.microsoft.com/en-us/sysinternals/downloads/handle" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/sysinternals/downloads/handle&lt;/a>&lt;/li>
&lt;li>Tu déposes le script sur ton serveur&lt;/li>
&lt;li>Tu le lances en admin en utilisant cette commande :&lt;/li>
&lt;/ol>
&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="n">powershell&lt;/span> &lt;span class="n">-ExecutionPolicy&lt;/span> &lt;span class="n">Bypass&lt;/span> &lt;span class="o">-File&lt;/span> &lt;span class="n">log4find&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">ps1&lt;/span> &lt;span class="n">-HandlePath&lt;/span> &lt;span class="p">&amp;lt;&lt;/span>&lt;span class="n">handle&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">exe_filepath&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et tu auras des résultats colorés :&lt;/p>
&lt;ul>
&lt;li>vert : t&amp;rsquo;es bon&lt;/li>
&lt;li>rouge : attention, tu as une ou les deux vulnés sur ton serveur&lt;/li>
&lt;li>jaune : le check n&amp;rsquo;a pas réussi, vas faire un check à la mano.&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran PoSh Log4Find" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Dans le cas ou le check a raté, je te conseille d&amp;rsquo;utiliser &amp;ldquo;everything&amp;quot;de &lt;a href="https://www.voidtools.com/" target="_blank" rel="noopener">voidtools&lt;/a> . C&amp;rsquo;est un search engine pour Windows qui est vraiment incroyable de part sa vitesse.&lt;/p>
&lt;p>Pour utiliser Everything, il te suffit de le lancer en admin et ensuite tu tapes ta recherche.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">log4*
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>L&amp;rsquo;&lt;strong>astérisque&lt;/strong> &amp;ldquo;*&amp;rdquo; sert de wildcard.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="everything screenshot" srcset="
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_f9a657d8e5cebe1.webp 400w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_fd511ab9175bad4e.webp 760w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_5cabb5cb13a48b88.webp 1200w"
src="https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_f9a657d8e5cebe1.webp"
width="760"
height="248"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Dans mon cas, y a pas de java sur ma machine, juste 1000 scripts PowerShell et des fichiers/dossiers en lien avec ces scripts de détection de Log4J.&lt;/p>
&lt;p>Voilà. enjoy !&lt;/p>
&lt;/div></description></item><item><title>Trouver un compte de service (MSA) dans l'AD. Comptes cachés.</title><link>https://alexin.tech/fr/2021/11/11/trouver-un-compte-de-service-msa-dans-lad.-comptes-caches./</link><pubDate>Thu, 11 Nov 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/11/11/trouver-un-compte-de-service-msa-dans-lad.-comptes-caches./</guid><description>&lt;div class="article-story">
&lt;h1 id="trouver-un-compte-de-service-msa-dans-lad-comptes-cachés">Trouver un compte de service (MSA) dans l&amp;rsquo;AD. Comptes cachés.&lt;/h1>
&lt;p>Tu recherches un compte dans l&amp;rsquo;AD et tu ne le trouves pas ? Il y a des chances que ça soit un compte de service MSA et voici comment le trouver !&lt;/p>
&lt;h2 id="un-peu-de-théorie-sur-les-services-et-les-msa">Un peu de théorie sur les services et les MSA:&lt;/h2>
&lt;p>Un service possède une identité de sécurité primaire qui détermine les droits d&amp;rsquo;accès aux ressources locales et réseau. Le contexte de sécurité d&amp;rsquo;un service Microsoft Win32 est déterminé par le compte de service qui est utilisé pour démarrer le service. Généralement tu vas utiliser un compte de service pour :&lt;/p>
&lt;ul>
&lt;li>Identifier et authentifier un service.&lt;/li>
&lt;li>Démarrer avec succès un service.&lt;/li>
&lt;li>Accéder ou exécuter du code ou une application.&lt;/li>
&lt;li>Démarrer un processus.&lt;/li>
&lt;/ul>
&lt;p>En fonction de ton cas d&amp;rsquo;utilisation, tu peux utiliser un compte de service géré (MSA), un compte d&amp;rsquo;ordinateur ou un compte d&amp;rsquo;utilisateur pour exécuter un service. Tu dois bien entendu d&amp;rsquo;abord tester un service pour confirmer qu&amp;rsquo;il peut utiliser un compte de service géré. Si le service peut utiliser un MSA, alors la bonne pratique voudrait que tu en utilises un.&lt;/p>
&lt;p>L&amp;rsquo;avantage principal du compte de service MSA est que le mot de passe est entièrement géré par l&amp;rsquo;AD, aucune action manuelle n&amp;rsquo;est requise et le mot de passe nous reste donc inconnu.&lt;/p>
&lt;p>Source : &lt;a href="https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/service-accounts-on-premises" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/service-accounts-on-premises&lt;/a>&lt;/p>
&lt;h2 id="problématique-">Problématique :&lt;/h2>
&lt;p>Un compte de service AD avec un SamAccountName qui se termine par un &amp;ldquo;$&amp;rdquo; est caché. On ne le trouve pas en effectuant une recherche toute simple de type :&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="AD service account" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h2 id="solution">Solution&lt;/h2>
&lt;p>Afin de trouver ce compte tu peux utiliser PowerShell. Voici un exemple de la commande à exécuter.&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">PS &lt;/span>&lt;span class="n">C:&lt;/span>&lt;span class="p">\&amp;gt;&lt;/span> &lt;span class="nb">Get-ADServiceAccount&lt;/span> &lt;span class="n">-Identity&lt;/span> &lt;span class="n">service1&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="n">Enabled&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">True&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">Name&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">service1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">UserPrincipalName&lt;/span> &lt;span class="err">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">SamAccountName&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">service1&lt;/span>&lt;span class="p">$&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">ObjectClass&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="nb">msDS-ManagedServiceAccount&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">SID&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">S&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">1&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">5&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">21&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">159507390&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">2980359153&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">3438059098&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">29770&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">ObjectGUID&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">eaa435ee&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="n">6ebc&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="n">44dd-b4b6-dc1bb5bcd23a&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">HostComputers&lt;/span> &lt;span class="err">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">DistinguishedName&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">CN&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">service1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">CN&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">Managed&lt;/span> &lt;span class="n">Service&lt;/span> &lt;span class="n">Accounts&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">DC&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">contoso&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">DC&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">com&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Source : &lt;a href="https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adserviceaccount?view=windowsserver2019-ps" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adserviceaccount?view=windowsserver2019-ps&lt;/a>&lt;/p>
&lt;p>Comme il est accessible via PowerShell, tu peux donc l&amp;rsquo;administrer via PowerShell et, p.ex., le rajouter en tant que membre d&amp;rsquo;un groupe.&lt;/p>
&lt;p>J&amp;rsquo;espère que cet article t&amp;rsquo;a été utile !&lt;/p>
&lt;p>Enjoy ! 👨‍💻&lt;/p>
&lt;/div></description></item><item><title>Obtenir le port d'une instance SQL en Powershell</title><link>https://alexin.tech/fr/2021/08/12/obtenir-le-port-dune-instance-sql-en-powershell/</link><pubDate>Thu, 12 Aug 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/08/12/obtenir-le-port-dune-instance-sql-en-powershell/</guid><description>&lt;div class="article-story">
&lt;h1 id="obtenir-le-port-dune-instance-sql-en-powershell">Obtenir le port d&amp;rsquo;une instance SQL en Powershell&lt;/h1>
&lt;p>Le port par défaut d&amp;rsquo;un serveur MS SQL est le 1433 mais vous trouverez souvent que, par mesure de sécurité, le port a été modifié.&lt;/p>
&lt;p>Voici un petit script PowerShell permettant de retourner les instances ainsi que les ports utilisés d&amp;rsquo;un serveur MS SQL.&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="nv">$server&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">Read-Host&lt;/span> &lt;span class="n">-Prompt&lt;/span> &lt;span class="s1">&amp;#39;Input your servername&amp;#39;&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="nv">$namespace&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">gwmi &lt;/span>&lt;span class="n">-computername&lt;/span> &lt;span class="nv">$server&lt;/span> &lt;span class="n">-Namespace&lt;/span> &lt;span class="s2">&amp;#34;root\microsoft\sqlserver&amp;#34;&lt;/span> &lt;span class="n">-Class&lt;/span> &lt;span class="s2">&amp;#34;__Namespace&amp;#34;&lt;/span> &lt;span class="n">-Filter&lt;/span> &lt;span class="s2">&amp;#34;name like &amp;#39;ComputerManagement%&amp;#39;&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">sort &lt;/span>&lt;span class="n">desc&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">select &lt;/span>&lt;span class="n">-ExpandProperty&lt;/span> &lt;span class="n">name&lt;/span> &lt;span class="n">-First&lt;/span> &lt;span class="mf">1&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="nb">Get-WmiObject&lt;/span> &lt;span class="n">-computername&lt;/span> &lt;span class="nv">$server&lt;/span> &lt;span class="n">-Namespace&lt;/span> &lt;span class="s2">&amp;#34;root\microsoft\SqlServer\&lt;/span>&lt;span class="nv">$namespace&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span> &lt;span class="n">-Class&lt;/span> &lt;span class="n">ServerNetworkProtocolProperty&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">select &lt;/span>&lt;span class="n">instancename&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">propertystrval&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">PropertyName&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">IPAddressName&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">ProtocolName&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="n">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">IPAddressName&lt;/span> &lt;span class="o">-eq&lt;/span> &lt;span class="s1">&amp;#39;IPAll&amp;#39;&lt;/span> &lt;span class="o">-and&lt;/span> &lt;span class="nv">$_&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">propertystrval&lt;/span> &lt;span class="o">-ne&lt;/span> &lt;span class="s1">&amp;#39;&amp;#39;&lt;/span>&lt;span class="p">}&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">ft &lt;/span>&lt;span class="n">-autosize&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Lorsque vous exécuterez ce script, il vous demandera de rentrer le serveur pour lequel vous souhaitez trouver les instances et ports et vous obtiendrez le résultat suivant :
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran PoSh" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Enjoy ! 😉&lt;/p>
&lt;/div></description></item><item><title>Windows Package Manager - winget</title><link>https://alexin.tech/fr/2021/02/24/windows-package-manager-winget/</link><pubDate>Wed, 24 Feb 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/02/24/windows-package-manager-winget/</guid><description>&lt;div class="article-story">
&lt;h1 id="windows-package-manager---winget">Windows Package Manager - winget&lt;/h1>
&lt;p>Depuis la version 1909 de Windows 10, Microsoft a introduit un gestionnaire de packets qui permet d&amp;rsquo;installer des outils Microsoft directement depuis la CMD.&lt;/p>
&lt;p>Très pratique pour installer &lt;a href="https://github.com/microsoft/terminal" target="_blank" rel="noopener">Terminal&lt;/a> ou encore &lt;a href="https://github.com/microsoft/PowerToys" target="_blank" rel="noopener">PowerToys&lt;/a> .&lt;/p>
&lt;p>Voici un exemple pour installer Terminal :&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="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">Microsoft&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">WindowsTerminal&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et avec powertoys :&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="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">Microsoft&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Powertoys&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="winget" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;/div></description></item><item><title>Compresser des fichiers logs sous Windows</title><link>https://alexin.tech/fr/2021/02/03/compresser-des-fichiers-logs-sous-windows/</link><pubDate>Wed, 03 Feb 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/02/03/compresser-des-fichiers-logs-sous-windows/</guid><description>&lt;div class="article-story">
&lt;h1 id="compresser-des-fichiers-logs-sous-windows">Compresser des fichiers logs sous Windows&lt;/h1>
&lt;ol>
&lt;li>Activer la vue des fichiers compressés
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./view-options.png" alt="View options" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/li>
&lt;/ol>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./show-compressed-ntfs-files.png" alt="Show Compressed NTFS files" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;ol start="2">
&lt;li>Activer la compression. Click droit sur un dossier &amp;gt; Propriétés &amp;gt; Avancé&lt;/li>
&lt;/ol>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Enable compression" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Conclusion :
Le dossier prend une couleur bleue une fois compressé.
Cette méthode est très efficaces pour des fichiers contenant du texte tels que des logs.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./compressed-folder.png" alt="Compressed Folder" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;/div></description></item><item><title>IIS passer du mode "classic" au mode "integrated" pour un Application Pool</title><link>https://alexin.tech/fr/2021/02/03/iis-passer-du-mode-classic-au-mode-integrated-pour-un-application-pool/</link><pubDate>Wed, 03 Feb 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/02/03/iis-passer-du-mode-classic-au-mode-integrated-pour-un-application-pool/</guid><description>&lt;div class="article-story">
&lt;h1 id="iis-passer-du-mode-classic-au-mode-integrated-pour-un-application-pool">IIS passer du mode &amp;ldquo;classic&amp;rdquo; au mode &amp;ldquo;integrated&amp;rdquo; pour un Application Pool&lt;/h1>
&lt;p>Afin de changer le mode d&amp;rsquo;un application pool, il vous faut lancer IIS Manager, puis aller dans &amp;ldquo;Application Pools&amp;rdquo;.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./iis-applicationpools.png" alt="Capture d&amp;rsquo;écran IIS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Double cliquez sur votre &amp;ldquo;Application pool&amp;rdquo; et changez le mode de &amp;ldquo;Classic&amp;rdquo; à &amp;ldquo;Integrated&amp;rdquo;.&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran IIS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;/div></description></item><item><title>Obtenir la taille des blocs d'un disque via Powershell</title><link>https://alexin.tech/fr/2021/01/28/obtenir-la-taille-des-blocs-dun-disque-via-powershell/</link><pubDate>Thu, 28 Jan 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/01/28/obtenir-la-taille-des-blocs-dun-disque-via-powershell/</guid><description>&lt;div class="article-story">
&lt;h1 id="obtenir-la-taille-des-blocs-dun-disque-via-powershell">Obtenir la taille des blocs d&amp;rsquo;un disque via Powershell&lt;/h1>
&lt;p>Afin d&amp;rsquo;obtenir la taille des blocs sur un disque il vous suffit d&amp;rsquo;utiliser la cmdlet Get-cimInstance.&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-CimInstance&lt;/span> &lt;span class="n">-ClassName&lt;/span> &lt;span class="n">Win32_Volume&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Select-Object&lt;/span> &lt;span class="n">Label&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">DriveLetter&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">BlockSize&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Format-Table&lt;/span> &lt;span class="n">-AutoSize&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Nous pouvons également utiliser la cmdlet Get-wmiObject mais qui est dépréciée. Cela peut être utile sur des systèmes plus anciens.&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">-Class&lt;/span> &lt;span class="n">Win32_Volume&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Select-Object&lt;/span> &lt;span class="n">Label&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">DriveLetter&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">BlockSize&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Format-Table&lt;/span> &lt;span class="n">-AutoSize&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et voici un exemple de résultat :&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran PoSh" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;/div></description></item></channel></rss>