<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Windows Server | AlexIn Tech</title><link>https://alexin.tech/fr/tag/windows-server/</link><atom:link href="https://alexin.tech/fr/tag/windows-server/index.xml" rel="self" type="application/rss+xml"/><description>Windows Server</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>fr</language><lastBuildDate>Wed, 31 Jan 2024 00:00:00 +0000</lastBuildDate><image><url>https://alexin.tech/media/icon_hu_69c804372a707b16.png</url><title>Windows Server</title><link>https://alexin.tech/fr/tag/windows-server/</link></image><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>Protected Users - Sécurisez vos Identifiants contre Mimikatz &amp; Co</title><link>https://alexin.tech/fr/2024/01/12/protected-users-securisez-vos-identifiants-contre-mimikatz-co/</link><pubDate>Fri, 12 Jan 2024 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2024/01/12/protected-users-securisez-vos-identifiants-contre-mimikatz-co/</guid><description>&lt;div class="article-story">
&lt;h1 id="protected-users---sécurisez-vos-identifiants-contre-mimikatz--co">Protected Users - Sécurisez vos Identifiants contre Mimikatz &amp;amp; Co&lt;/h1>
&lt;p>Dans le monde de la technologie, la sécurité des informations est une préoccupation constante. Pour ceux d&amp;rsquo;entre nous qui gèrent des réseaux d&amp;rsquo;entreprise, la protection des identifiants d&amp;rsquo;utilisateur est une tâche de premier plan. Aujourd&amp;rsquo;hui, je vais vous parler d&amp;rsquo;un groupe spécial dans Active Directory (AD) - le groupe &amp;ldquo;Protected Users&amp;rdquo;, et pourquoi son utilisation est cruciale dans notre lutte contre des outils d&amp;rsquo;attaque comme Mimikatz.&lt;/p>
&lt;h3 id="quest-ce-que-le-groupe-protected-users-">Qu&amp;rsquo;est-ce que le Groupe &amp;ldquo;Protected Users&amp;rdquo; ?&lt;/h3>
&lt;p>Introduit dans Windows Server 2012 R2, le groupe &amp;ldquo;Protected Users&amp;rdquo; est une fonctionnalité de sécurité d&amp;rsquo;Active Directory qui offre une protection supplémentaire pour les comptes d&amp;rsquo;utilisateurs. L&amp;rsquo;ajout d&amp;rsquo;un compte utilisateur à ce groupe active des politiques de sécurité renforcées, limitant ainsi les méthodes par lesquelles les informations d&amp;rsquo;identification peuvent être compromises.&lt;/p>
&lt;h3 id="la-menace-de-mimikatz">La Menace de Mimikatz&lt;/h3>
&lt;p>Pour comprendre l&amp;rsquo;importance du groupe &amp;ldquo;Protected Users&amp;rdquo;, il faut d&amp;rsquo;abord connaître Mimikatz. Mimikatz est un outil de hacking tristement célèbre qui permet de récupérer des mots de passe, des hash de mots de passe et d&amp;rsquo;autres types d&amp;rsquo;informations d&amp;rsquo;identification à partir de la mémoire de Windows. C&amp;rsquo;est un outil puissant dans l&amp;rsquo;arsenal des cybercriminels pour effectuer des attaques de type &amp;ldquo;pass-the-hash&amp;rdquo; ou &amp;ldquo;pass-the-ticket&amp;rdquo;.&lt;/p>
&lt;h3 id="pourquoi-utiliser-le-groupe-protected-users-">Pourquoi Utiliser le Groupe &amp;ldquo;Protected Users&amp;rdquo; ?&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Amélioration de la Sécurité des Authentifications&lt;/strong> : Les membres du groupe &amp;ldquo;Protected Users&amp;rdquo; bénéficient de mesures de sécurité renforcées. Par exemple, ils ne peuvent pas authentifier l&amp;rsquo;utilisation de méthodes d&amp;rsquo;authentification plus anciennes et moins sécurisées, telles que NTLM, WDigest ou CredSSP.&lt;/li>
&lt;li>&lt;strong>Protection contre les Attaques de Type Pass-the-Hash/Ticket&lt;/strong> : Mimikatz et d&amp;rsquo;autres outils similaires exploitent souvent ces méthodes d&amp;rsquo;authentification plus anciennes pour leurs attaques. En limitant leur utilisation, le risque est considérablement réduit.&lt;/li>
&lt;li>&lt;strong>Réduction de la Surface d&amp;rsquo;Attaque&lt;/strong> : Les comptes dans le groupe &amp;ldquo;Protected Users&amp;rdquo; ne stockent pas leurs informations d&amp;rsquo;identification en mémoire de manière réutilisable, rendant les attaques par extraction de mémoire beaucoup moins efficaces.&lt;/li>
&lt;/ol>
&lt;h3 id="mise-en-place-et-bonnes-pratiques">Mise en Place et Bonnes Pratiques&lt;/h3>
&lt;ol>
&lt;li>&lt;strong>Version du Serveur&lt;/strong> : Assurez-vous que votre environnement AD fonctionne sous Windows Server 2012 R2 ou ultérieur.&lt;/li>
&lt;li>&lt;strong>Sélection des Comptes&lt;/strong> : N&amp;rsquo;ajoutez pas tous les comptes utilisateur à ce groupe. Commencez par les comptes à haut privilège comme les administrateurs.&lt;/li>
&lt;li>&lt;strong>Politique de Mot de Passe&lt;/strong> : Encouragez ou imposez l&amp;rsquo;utilisation de mots de passe forts et de l&amp;rsquo;authentification multi-facteurs pour les comptes du groupe.&lt;/li>
&lt;li>&lt;strong>Testez Avant Déploiement&lt;/strong> : Testez les paramètres sur un petit nombre de comptes avant de les appliquer à grande échelle.&lt;/li>
&lt;li>&lt;strong>Formation et Sensibilisation&lt;/strong> : Informez les utilisateurs des changements et des bonnes pratiques de sécurité.&lt;/li>
&lt;/ol>
&lt;p>En conclusion, l&amp;rsquo;utilisation du groupe &amp;ldquo;Protected Users&amp;rdquo; dans Active Directory est une étape essentielle pour renforcer la sécurité de vos identifiants utilisateurs. En limitant l&amp;rsquo;utilisation de méthodes d&amp;rsquo;authentification obsolètes et vulnérables, et en réduisant la surface d&amp;rsquo;attaque exploitable par des outils comme Mimikatz, vous pouvez considérablement augmenter la sécurité de votre réseau.&lt;/p>
&lt;p>Rappelez-vous, la sécurité informatique est un processus continu et évolutif. L&amp;rsquo;ajout de comptes au groupe &amp;ldquo;Protected Users&amp;rdquo; est une mesure parmi d&amp;rsquo;autres, et elle doit s&amp;rsquo;inscrire dans une stratégie de sécurité globale, incluant une formation régulière des utilisateurs, des mises à jour constantes des systèmes et une surveillance proactive.&lt;/p>
&lt;p>En tant que responsables IT, notre rôle est de rester vigilants et proactifs. L&amp;rsquo;utilisation judicieuse du groupe &amp;ldquo;Protected Users&amp;rdquo; est un pas dans la bonne direction pour garder une longueur d&amp;rsquo;avance sur les menaces. Ensemble, sécurisons notre environnement numérique.&lt;/p>
&lt;p>Enjoy 😎&lt;/p>
&lt;p>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>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>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>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>Convertir un serveur Windows de la version d'évaluation à la version retail</title><link>https://alexin.tech/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/</link><pubDate>Thu, 15 Jul 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/</guid><description>&lt;div class="article-story">
&lt;h1 id="convertir-un-serveur-windows-de-la-version-dévaluation-à-la-version-retail">Convertir un serveur Windows de la version d&amp;rsquo;évaluation à la version retail&lt;/h1>
&lt;p>Afin de convertir un serveur en version d&amp;rsquo;évaluation à la version retail il nous faut effectuer quelques petites commandes Powershell.&lt;/p>
&lt;p>Suivez le guide ! 😎&lt;/p>
&lt;p>&lt;strong>Afficher les versions disponibles&lt;/strong>&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">DISM&lt;/span> &lt;span class="p">/&lt;/span>&lt;span class="n">online&lt;/span> &lt;span class="p">/&lt;/span>&lt;span class="nb">Get-TargetEditions&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 alt="PoSh" srcset="
/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image_hu_dc278275bf33972f.webp 400w,
/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image_hu_8598caf5db30bac4.webp 760w,
/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image_hu_95c9a9bcdcaf69dd.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image_hu_dc278275bf33972f.webp"
width="468"
height="188"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>&lt;strong>Upgrader la version :&lt;/strong>
⚠ Il vous faut une licence valide ⚠&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">DISM&lt;/span> &lt;span class="p">/&lt;/span>&lt;span class="n">Online&lt;/span> &lt;span class="p">/&lt;/span>&lt;span class="nb">Set-Edition&lt;/span>&lt;span class="err">:&lt;/span>&lt;span class="n">ServerDatacenter&lt;/span> &lt;span class="p">/&lt;/span>&lt;span class="n">ProductKey&lt;/span>&lt;span class="err">:&lt;/span>&lt;span class="nb">xxxxx-xxxxx&lt;/span>&lt;span class="n">-xxxxx-xxxxx-xxxxx&lt;/span> &lt;span class="p">/&lt;/span>&lt;span class="n">AcceptEula&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 alt="PoSh" srcset="
/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image-1_hu_ddd3be4b094cb574.webp 400w,
/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image-1_hu_44a06201288b370b.webp 760w,
/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image-1_hu_8bd1d34e3c0e10e2.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/convertir-un-serveur-windows-de-la-version-devaluation-a-la-version-retail/image-1_hu_ddd3be4b094cb574.webp"
width="686"
height="336"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Taper &amp;ldquo;Y&amp;rdquo; et le serveur va redémarrer !&lt;/p>
&lt;p>Félicitations, vous avez passé d&amp;rsquo;une édition éval à une retail !&lt;/p>
&lt;/div></description></item><item><title>Déployer rapidement un serveur RDS</title><link>https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/</link><pubDate>Thu, 15 Jul 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/</guid><description>&lt;div class="article-story">
&lt;h1 id="déployer-rapidement-un-serveur-rds">Déployer rapidement un serveur RDS&lt;/h1>
&lt;p>Voici un petit guide step by step vous expliquant comment déployer rapidement un serveur RDS. Dans mon cas, je vais utiliser ce serveur pour publier des applications sur un portail web. Ces applications seront installées sur le serveur RDS et seront téléchargeables sur le portail web d&amp;rsquo;applications. Tous les PCs de mon réseau pourront ainsi les télécharger et les exécuter mais cela utilisera les ressources du serveur et non des PCs. De plus cela m&amp;rsquo;évite de devoir configurer l&amp;rsquo;application sur chacun des PCs, je la configure une seule et unique fois sur le serveur. 😎&lt;/p>
&lt;h2 id="prérequis">Prérequis&lt;/h2>
&lt;ul>
&lt;li>Le serveur doit être membre d&amp;rsquo;un domaine&lt;/li>
&lt;/ul>
&lt;h2 id="installation-de-rds">Installation de RDS&lt;/h2>
&lt;p>Sur un serveur Windows allez dans &amp;ldquo;Server Manager&amp;rdquo; et cliquez sur &amp;ldquo;Manage&amp;rdquo; &amp;gt; &amp;ldquo;Add Roles and Features&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image_hu_1a3a79dbd394797b.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image_hu_3002eea77564a217.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image_hu_33217f93de67fec6.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image_hu_1a3a79dbd394797b.webp"
width="760"
height="312"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-1_hu_a12103cf2412e864.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-1_hu_ab59fe64cfa61254.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-1_hu_bb8a280f8ba1ee98.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-1_hu_a12103cf2412e864.webp"
width="760"
height="539"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Choisir &amp;ldquo;Remote Desktop Service Installation&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-2_hu_99bec73eb5fbc1b7.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-2_hu_fa07bf0e1abed450.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-2_hu_e318ca5252caf95.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-2_hu_99bec73eb5fbc1b7.webp"
width="760"
height="541"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Choisir &amp;ldquo;Quick Start&amp;rdquo;
Le &amp;ldquo;Quick Start&amp;rdquo; installe tous les rôles nécessaires (broker, hôte de bureau à distance et accès web) sur le même serveur.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-3_hu_510dde861646354f.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-3_hu_e96209753d70cf46.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-3_hu_1548786b6d62395c.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-3_hu_510dde861646354f.webp"
width="760"
height="544"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Nous allons choisir Session-based desktop deployment. (Je n&amp;rsquo;ai pas besoin de virtual desktops)
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-4_hu_5b40b02df25c6f96.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-4_hu_3afa6dee2b2f105a.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-4_hu_bf379ecb8aba87ce.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-4_hu_5b40b02df25c6f96.webp"
width="760"
height="541"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-5_hu_d74004af510ad6c6.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-5_hu_9e65998a04e00ffe.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-5_hu_5daa0bfaea8371d3.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-5_hu_d74004af510ad6c6.webp"
width="760"
height="542"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Cocher la case &amp;ldquo;Restart the destination server&amp;rdquo; puis Deploy
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-6_hu_dad723da2eefcf25.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-6_hu_7454700642fcc109.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-6_hu_8f1ebb866f5c52ef.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-6_hu_dad723da2eefcf25.webp"
width="760"
height="543"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Installation&amp;hellip; Le serveur va redémarrer une ou plusieurs fois durant l&amp;rsquo;installation.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-7_hu_38b7afeef2f9e27e.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-7_hu_d4beffee01763ab6.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-7_hu_576df190cbf2d1b5.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-7_hu_38b7afeef2f9e27e.webp"
width="760"
height="541"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Close
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="RDS" srcset="
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-8_hu_ab5a955a41dd1252.webp 400w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-8_hu_557272e7b8b8aeed.webp 760w,
/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-8_hu_2abd05ea8830d6a9.webp 1200w"
src="https://alexin.tech/fr/2021/07/15/deployer-rapidement-un-serveur-rds/image-8_hu_ab5a955a41dd1252.webp"
width="760"
height="544"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Félicitations vous avez installé un serveur RDS ! Enjoy ! 😎&lt;/p>
&lt;/div></description></item><item><title>Créer un domaine sur Windows Server 2019</title><link>https://alexin.tech/fr/2021/07/14/creer-un-domaine-sur-windows-server-2019/</link><pubDate>Wed, 14 Jul 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/07/14/creer-un-domaine-sur-windows-server-2019/</guid><description>&lt;div class="article-story">
&lt;h1 id="créer-un-domaine-sur-windows-server-2019">Créer un domaine sur Windows Server 2019&lt;/h1>
&lt;p>Ce petit guide vous expliquera comment créer un domaine sur Windows Server 2019. Pour se faire nous installerons le rôle &amp;ldquo;Active Directory Domain Service&amp;rdquo; qui permet de stocker des informations au sujet des utilisateurs, ordinateurs et autres périphériques sur le réseau. AD DS aide les administrateurs à gérer de manière sécurisée ces informations et facilite la collaboration entre les utilisateurs d&amp;rsquo;un même domaine.&lt;/p>
&lt;h2 id="installation">Installation&lt;/h2>
&lt;p>Dans &amp;ldquo;Server Manager&amp;rdquo; , cliquer sur &amp;ldquo;Manage&amp;rdquo; puis &amp;ldquo;Add Roles and Features&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-1.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Choisir &amp;ldquo;Role-based or feature-based installation&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-2.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Choisir votre serveur puis Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-3.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Sélectionner &amp;ldquo;Active Directory Domain Services&amp;rdquo; puis cliquer sur &amp;ldquo;Add Features&amp;rdquo; puis Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-4.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Nous n&amp;rsquo;allons pas rajouter de features, cliquer sur Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-5.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-6.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Install
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-7.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Installation&amp;hellip; Lorsqu&amp;rsquo;elle sera terminée, cliquer sur &amp;ldquo;Close&amp;rdquo;.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-8.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Dans Server Manager, cliquer sur &amp;ldquo;AD DS&amp;rdquo;. Un message nous informe qu&amp;rsquo;il faut le configurer, cliquer sur &amp;ldquo;More&amp;hellip;&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-9.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Cliquer sur &amp;ldquo;Promote this server to a domain&amp;hellip;&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-10.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Dans notre cas je n&amp;rsquo;ai pas de forêt ni de domaine, je vais donc créer une nouvelle forêt dans laquelle il y aura mon domaine root &amp;ldquo;POC.local&amp;rdquo; . Vous pouvez le nommer comme bon vous semble, j&amp;rsquo;ai choisi POC pour Proof Of Concept.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-11.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Ici, laisser sur les functional level de 2016. De plus, nous allons laisser l&amp;rsquo;ajout du Rôle DNS de coché. Il nous faut créer notre mot de passe DSRM.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-12.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Nous n&amp;rsquo;avons pas besoin de DNS delegation pour le moment, donc on passe, cliquer sur &amp;ldquo;Next&amp;rdquo;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-13.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Le nom NetBIOS, pour moi je laisse comme ça, Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-14.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Nous allons utiliser les chemins par défaut , Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-15.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Next
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-16.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Maintenant il va effectuer un check des pré-requis, si tout est au vert on peut installer
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-17.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Installation&amp;hellip;
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-18.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Après l&amp;rsquo;installation le serveur reboot
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-19.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Félicitations, l&amp;rsquo;installation est maintenant terminée ! Il ne reste plus qu&amp;rsquo;à vous loguer avec le compte Admin qui a est maintenant le compte admin du domaine.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./image-20.png" alt="ADDS" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Enjoy ! 😎&lt;/p>
&lt;/div></description></item><item><title>Retourner la date des derniers backups pour toutes les DBs d'une instance MS SQL</title><link>https://alexin.tech/fr/2021/03/30/retourner-la-date-des-derniers-backups-pour-toutes-les-dbs-dune-instance-ms-sql/</link><pubDate>Tue, 30 Mar 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/03/30/retourner-la-date-des-derniers-backups-pour-toutes-les-dbs-dune-instance-ms-sql/</guid><description>&lt;div class="article-story">
&lt;h1 id="retourner-la-date-des-derniers-backups-pour-toutes-les-dbs-dune-instance-ms-sql">Retourner la date des derniers backups pour toutes les DBs d&amp;rsquo;une instance MS SQL&lt;/h1>
&lt;p>Voici un petit script SQL bien pratique pour savoir quand vos bases ont été backupées pour la dernière fois sur une instance MS SQL.&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 class="n">sdb&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">DatabaseName&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">COALESCE&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="k">CONVERT&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nb">VARCHAR&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="mi">12&lt;/span>&lt;span class="p">),&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="k">MAX&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="n">bus&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">backup_finish_date&lt;/span>&lt;span class="p">),&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="mi">101&lt;/span>&lt;span class="p">),&lt;/span>&lt;span class="s1">&amp;#39;-&amp;#39;&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">LastBackUpTime&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">sysdatabases&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sdb&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">OUTER&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">msdb&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">dbo&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">backupset&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">bus&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">bus&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">database_name&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="o">=&lt;/span>&lt;span class="w"> &lt;/span>&lt;span class="n">sdb&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">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="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">sdb&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">Name&lt;/span>&lt;span class="w">
&lt;/span>&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Enjoy ! ;-)&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></channel></rss>