<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PowerShell | AlexIn Tech</title><link>https://alexin.tech/fr/tag/powershell/</link><atom:link href="https://alexin.tech/fr/tag/powershell/index.xml" rel="self" type="application/rss+xml"/><description>PowerShell</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>fr</language><lastBuildDate>Tue, 13 Jun 2023 00:00:00 +0000</lastBuildDate><image><url>https://alexin.tech/media/icon_hu_69c804372a707b16.png</url><title>PowerShell</title><link>https://alexin.tech/fr/tag/powershell/</link></image><item><title>Corriger le problème de "CatalogVersion" entre SCCM et WSUS</title><link>https://alexin.tech/fr/2023/06/13/corriger-le-probleme-de-catalogversion-entre-sccm-et-wsus/</link><pubDate>Tue, 13 Jun 2023 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2023/06/13/corriger-le-probleme-de-catalogversion-entre-sccm-et-wsus/</guid><description>&lt;div class="article-story">
&lt;h1 id="corriger-le-problème-de-catalogversion-entre-sccm-et-wsus">Corriger le problème de &amp;ldquo;CatalogVersion&amp;rdquo; entre SCCM et WSUS&lt;/h1>
&lt;p>Dans cet article, nous allons aborder un problème qui peut se produire après la récupération de WSUS ou SCCM. Ce problème se traduit par le fait que les mises à jour logicielles ne s&amp;rsquo;installent plus sur les clients SCCM. En examinant le UpdatesDeployment.log, vous pourriez trouver la mention :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-fallback" data-lang="fallback">&lt;span class="line">&lt;span class="cl">&amp;#39;EnumerateUpdates for action (UpdateActionInstall) - Total actionable updates = 0 &amp;#39;.
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Si vous faites une requête PowerShell sur un client pour lister toutes les mises à jour &amp;ldquo;manquantes&amp;rdquo; basées sur le catalogue WSUS, vous obtiendrez une liste de mises à jour &amp;ldquo;manquantes&amp;rdquo;.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">get-wmiobject&lt;/span> &lt;span class="n">-query&lt;/span> &lt;span class="s2">&amp;#34;SELECT * FROM CCM_UpdateStatus&amp;#34;&lt;/span> &lt;span class="n">-namespace&lt;/span> &lt;span class="s2">&amp;#34;root\ccm\SoftwareUpdates\UpdatesStore&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">where &lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nv">$_&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">status&lt;/span> &lt;span class="o">-eq&lt;/span> &lt;span class="s2">&amp;#34;Missing&amp;#34;&lt;/span>&lt;span class="p">}&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>La commande PowerShell suivante va vous afficher toutes les mises à jours &amp;ldquo;en attente&amp;rdquo; d&amp;rsquo;être déployées.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">get-wmiobject&lt;/span> &lt;span class="n">-query&lt;/span> &lt;span class="s2">&amp;#34;SELECT * FROM CCM_SoftwareUpdate&amp;#34;&lt;/span> &lt;span class="n">-namespace&lt;/span> &lt;span class="s2">&amp;#34;ROOT\ccm\ClientSDK&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Comme vous pourrez le constater, il ne retourne rien. Il a donc des mises à jours manquantes mais aucunes mises à jours &amp;ldquo;installables&amp;rdquo;. SCCM ne reconnaît pas ces mises à jour comme &amp;ldquo;applicables&amp;rdquo; car la version du catalogue n&amp;rsquo;est pas la même entre WSUS et SCCM.&lt;/p>
&lt;p>A chaque fois que SCCM synchronise avec succès le catalogue WSUS, il incrémente la &amp;ldquo;version du catalogue&amp;rdquo;. Après une récupération du site, il se peut que SCCM réinitialise ce compteur et commence à partir de 0. Tant que le compteur n&amp;rsquo;aura pas atteint la valeur de la dernière version du catalogue alors les mises à jours seront considérées comme &amp;ldquo;non applicable&amp;rdquo;.&lt;/p>
&lt;p>J&amp;rsquo;ai créé un script qui vous aidera à résoudre ce problème en récupérant la dernière version du catalogue dans la base de données ConfigMgr et en settant cela dans le registre afin que ConfigMgr puisse afficher la bonne CatalogVersion et que vos clients puissent donc recevoir leurs mises à jours.&lt;/p>
&lt;p>Voici le script:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="cm">&amp;lt;#
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .&lt;/span>&lt;span class="sd">SYNOPSIS&lt;/span>&lt;span class="cm">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> Solves CatalogVersion mismatch issue between WSUS and SCCM.
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .&lt;/span>&lt;span class="sd">DESCRIPTION&lt;/span>&lt;span class="cm">
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> This script retrieves the latest catalog version and sets it in the SCCM registry.
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .AUTHOR
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> Alexin.Tech
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .DATE
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> 14/06/2023
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> .VERSION
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm"> 1.0
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="cm">#&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Define the server name and database name variables&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$serverName&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;&amp;lt;your_server_name&amp;gt;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$databaseName&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;&amp;lt;your_database_name&amp;gt;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># SQL query to retrive the latest catalog version&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$query&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="sh">@&amp;#34;
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">;WITH XMLNAMESPACES ( DEFAULT &amp;#39;http://schemas.microsoft.com/SystemsCenterConfigurationManager/2009/07/10/DesiredConfiguration&amp;#39;)
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">SELECT MAX(CI.SDMPackageDigest.value(&amp;#39;(/DesiredConfigurationDigest/SoftwareUpdateBundle/ConfigurationMetadata/Provider/Operation[@Name=&amp;#34;Detect&amp;#34;]/Parameter/Property[@Name=&amp;#34;MinCatalogVersion&amp;#34;]/@Value)[1]&amp;#39;, &amp;#39;int&amp;#39;)) MinCatalogVersion
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">FROM [CI_ConfigurationItems] as CI
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">WHERE CIType_ID = 8
&lt;/span>&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="sh">&amp;#34;@&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Execute the SQL query and retrieve the latest catalog version&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connectionString&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;Data Source=&lt;/span>&lt;span class="nv">$serverName&lt;/span>&lt;span class="s2">;Initial Catalog=&lt;/span>&lt;span class="nv">$databaseName&lt;/span>&lt;span class="s2">;Integrated Security=SSPI;&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connection&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">New-Object&lt;/span> &lt;span class="n">System&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Data&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlClient&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlConnection&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nv">$connectionString&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$command&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">New-Object&lt;/span> &lt;span class="n">System&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Data&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlClient&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">SqlCommand&lt;/span>&lt;span class="p">(&lt;/span>&lt;span class="nv">$query&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="nv">$connection&lt;/span>&lt;span class="p">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connection&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Open&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$result&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nv">$command&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">ExecuteScalar&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$connection&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Close&lt;/span>&lt;span class="p">()&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Display the result of the SQL query&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Write-Host&lt;/span> &lt;span class="s2">&amp;#34;The latest catalog version is: &lt;/span>&lt;span class="nv">$result&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="c"># Set the registry values&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$regPath&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="s2">&amp;#34;HKLM:\SOFTWARE\Microsoft\SMS\Components\SMS_WSUS_SYNC_MANAGER&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Set-ItemProperty&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$regPath&lt;/span> &lt;span class="n">-Name&lt;/span> &lt;span class="s2">&amp;#34;ContentVersion&amp;#34;&lt;/span> &lt;span class="n">-Value&lt;/span> &lt;span class="nv">$result&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">DWORD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Set-ItemProperty&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$regPath&lt;/span> &lt;span class="n">-Name&lt;/span> &lt;span class="s2">&amp;#34;SyncToVersion&amp;#34;&lt;/span> &lt;span class="n">-Value&lt;/span> &lt;span class="nv">$result&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">DWORD&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Set-ItemProperty&lt;/span> &lt;span class="n">-Path&lt;/span> &lt;span class="nv">$regPath&lt;/span> &lt;span class="n">-Name&lt;/span> &lt;span class="s2">&amp;#34;LastAttemptVersion&amp;#34;&lt;/span> &lt;span class="n">-Value&lt;/span> &lt;span class="p">(&lt;/span>&lt;span class="nv">$result&lt;/span> &lt;span class="p">-&lt;/span> &lt;span class="mf">1&lt;/span>&lt;span class="p">)&lt;/span> &lt;span class="n">-Type&lt;/span> &lt;span class="n">DWORD&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Ce script permet de récupérer la version la plus récente du catalogue et de la configurer dans le registre pour qu&amp;rsquo;SCCM aille la récupérer. Par conséquent, après avoir exécuté ce script, il faut lancer une &amp;ldquo;Synchronize Software Updates&amp;rdquo; depuis la console SCCM. Ensuite, les agents SCCM doivent effectuer un &amp;ldquo;Machine-Policy refresh&amp;rdquo; pour obtenir la dernière version du catalogue et un &amp;ldquo;Update Evaluation Cycle&amp;rdquo; pour obtenir le changement.&lt;/p>
&lt;p>Votre mise à jour devrait alors commencer à s&amp;rsquo;installer et dans le UpdatesDeployment.log, vous verrez que les mises à jour sont maintenant &amp;ldquo;fonctionnelles&amp;rdquo;.&lt;/p>
&lt;p>Pour plus de détails sur ce problème, vous pouvez consulter l&amp;rsquo;article original de Roger Zander &lt;a href="https://rzander.azurewebsites.net/wsus-catalogversion-mismatch-in-sccm/" target="_blank" rel="noopener">ici&lt;/a> en anglais. Milles merci à lui pour cet article que j&amp;rsquo;ai traduit et modifié à ma sauce en y ajoutant un script afin d&amp;rsquo;automatiser la correction.&lt;/p>
&lt;/div></description></item><item><title>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>Windows - groupes et utilisateurs par défaut (Built-in Users, Default Groups and Special Identities)</title><link>https://alexin.tech/fr/2022/03/01/windows-groupes-et-utilisateurs-par-defaut-built-in-users-default-groups-and-special-identities/</link><pubDate>Tue, 01 Mar 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/03/01/windows-groupes-et-utilisateurs-par-defaut-built-in-users-default-groups-and-special-identities/</guid><description>&lt;div class="article-story">
&lt;h1 id="windows---groupes-et-utilisateurs-par-défaut-built-in-users-default-groups-and-special-identities">Windows - groupes et utilisateurs par défaut (Built-in Users, Default Groups and Special Identities)&lt;/h1>
&lt;p>Hello, long time no see, alors aujourd&amp;rsquo;hui je vous ai reformaté un tableau du site &lt;a href="http://ss64.com/" target="_blank" rel="noopener">ss64.com&lt;/a> en 3 tableaux distincts qui parlent des différents groupes et utilisateurs de Windows.&lt;/p>
&lt;p>Cet article est majoritairement en anglais car j&amp;rsquo;ai repris toutes les descriptions de &lt;a href="http://ss64.com/" target="_blank" rel="noopener">ss64.com&lt;/a> qui a fait un magnifique travail de récupération des infos présentent sur la doc Microsoft.&lt;/p>
&lt;p>Vous trouverez les sources ci-dessous :&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://ss64.com/nt/syntax-security_groups.html" target="_blank" rel="noopener">https://ss64.com/nt/syntax-security_groups.html&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-security-groups" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-security-groups&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="les-groupes-par-défaut-default--built-in-group">Les groupes par défaut (default / built-in group)&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Default Group&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Access Control Assistance Operators&lt;/td>
&lt;td>Remotely query authorization attributes and permissions for resources on the computer. BuiltIn Local. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Account Operators&lt;/td>
&lt;td>Grants limited account creation privileges to a user. Members of this group can create and modify most types of accounts, including those of users, local groups, and global groups, and members can log in locally to domain controllers. Members of the Account Operators group cannot manage the Administrator user account, the user accounts of administrators, or the Administrators, Server Operators, Account Operators, Backup Operators, or Print Operators groups. Members of this group cannot modify user rights. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Administrators&lt;/td>
&lt;td>A built-in group . Grants complete and unrestricted access to the computer, or if the computer is promoted to a domain controller, members have unrestricted access to the domain.This group cannot be renamed, deleted, or moved. This built-in group controls access to all the domain controllers in its domain, and it can change the membership of all administrative groups. Membership can be modified by members of the following groups: the default service Administrators, Domain Admins in the domain, or Enterprise Admins. The group is the default owner of any object that is created by a member of the group. &lt;a href="https://docs.microsoft.com/en-us/windows/security/identity-protection/access-control/active-directory-security-groups#bkmk-admins" target="_blank" rel="noopener">Default User Rights for Administrators&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Allowed RODC Password Replication Group&lt;/td>
&lt;td>Manage a RODC password replication policy. The &lt;em>Denied RODC Password Replication Group&lt;/em> group contains a variety of high-privilege accounts and security groups. The Denied RODC Password Replication group supersedes the Allowed RODC Password Replication group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Backup Operators&lt;/td>
&lt;td>A built-in group. By default, the group has no members. Backup Operators can back up and restore all files on a computer, regardless of the permissions that protect those files. Backup Operators also can log on to the computer and shut it down. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Back up files and directories: SeBackupPrivilege Log on as a batch job: SeBatchLogonRight Restore files and directories: SeRestorePrivilege Shut down the system: SeShutdownPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Certificate Service DCOM Access&lt;/td>
&lt;td>Members of this group are allowed to connect to certification authorities in the enterprise. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cert Publishers&lt;/td>
&lt;td>A global group that includes all computers that are running an enterprise certificate authority. Cert Publishers are authorized to publish certificates for User objects in Active Directory. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cert Server Admins&lt;/td>
&lt;td>Certificate Authority Administrators - authorized to administer certificates for User objects in Active Directory. (Domain Local)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cert Requesters&lt;/td>
&lt;td>Members can request certificates (Domain Local)&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cloneable Domain Controllers&lt;/td>
&lt;td>Members of the Cloneable Domain Controllers group that are domain controllers may be cloned. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Cryptographic Operators&lt;/td>
&lt;td>Members of this group are authorized to perform cryptographic operations. This security group was added in Windows Vista Service Pack 1 (SP1) to configure Windows Firewall for IPsec in Common Criteria mode. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Denied RODC Password Replication Group&lt;/td>
&lt;td>Members of the Denied RODC Password Replication group cannot have their passwords replicated to any Read-only domain controller. The purpose of this security group is to manage a RODC password replication policy. This group contains a variety of high-privilege accounts and security groups. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Device Owners&lt;/td>
&lt;td>This group is not currently used in Windows. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Access this computer from the network: SeNetworkLogonRight Bypass traverse checking: SeChangeNotifyPrivilege Change the time zone: SeTimeZonePrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Distributed COM Users&lt;/td>
&lt;td>Members of the Distributed COM Users group are allowed to launch, activate, and use Distributed COM objects on the computer. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DnsAdmins (installed with DNS)&lt;/td>
&lt;td>Members of this group have administrative access to the DNS Server service. The default permissions are as follows: Allow: Read, Write, Create All Child objects, Delete Child objects, Special Permissions. This group has no default members. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>DnsUpdateProxy (installed with DNS)&lt;/td>
&lt;td>Members of this group are DNS clients that can perform dynamic updates on behalf of other clients, such as DHCP servers. This group has no default members. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Admins&lt;/td>
&lt;td>A global group whose members are authorized to administer the domain. By default, the Domain Admins group is a member of the Administrators group on all computers that have joined a domain, including the domain controllers. Domain Admins is the default owner of any object that is created in the domain&amp;rsquo;s Active Directory by any member of the group. If members of the group create other objects, such as files, the default owner is the Administrators group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: as Administrators&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Computers&lt;/td>
&lt;td>A global group that includes all computers that have joined the domain, excluding domain controllers. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Controllers&lt;/td>
&lt;td>A global group that includes all domain controllers in the domain. New domain controllers are added to this group automatically. Default Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Guests&lt;/td>
&lt;td>A global group that, by default, has only one member, the domain&amp;rsquo;s built-in Guest account. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Guests&amp;rsquo;&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Domain Users&lt;/td>
&lt;td>A global group that, by default, includes all user accounts in a domain. When you create a user account in a domain, it is added to this group automatically. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Users&amp;rsquo;&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Admins&lt;/td>
&lt;td>A group that exists only in the root domain of an Active Directory forest of domains. It is a universal group if the domain is in native mode, a global group if the domain is in mixed mode. The group is authorized to make forest-wide changes in Active Directory, such as adding child domains. By default, the only member of the group is the Administrator account for the forest root domain. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See Administrators See Denied RODC Password Replication Group&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Key Admins&lt;/td>
&lt;td>Members of this group can perform administrative actions on key objects within the forest. The Enterprise Key Admins group was introduced in Windows Server 2016. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Read-Only Domain Controllers&lt;/td>
&lt;td>Members of this group are Read-Only Domain Controllers in the enterprise. Except for account passwords, a Read-only domain controller holds all the Active Directory objects and attributes that a writable domain controller holds. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Event Log Readers&lt;/td>
&lt;td>Members of this group can read event logs from local computers. The group is created when the server is promoted to a domain controller. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Group Policy Creators Owners&lt;/td>
&lt;td>A global group that is authorized to create new Group Policy objects in Active Directory. By default, the only member of the group is Administrator. The default owner of a new Group Policy object is usually the user who created it. If the user is a member of Administrators or Domain Admins, all objects that are created by the user are owned by the group. Owners have full control of the objects they own. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Denied RODC Password Replication Group&amp;rsquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Guests&lt;/td>
&lt;td>A built-in group. By default, the only member is the Guest account. The Guests group allows occasional or one-time users to log on with limited privileges to a computer&amp;rsquo;s built-in Guest account. When a member of the Guests group signs out, the entire profile is deleted. This includes everything that is stored in the %userprofile% directory, including the user&amp;rsquo;s registry hive information, custom desktop icons, and other user-specific settings. This implies that a guest must use a temporary profile to sign in to the system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Hyper-V Administrators&lt;/td>
&lt;td>Members of the Hyper-V Administrators group have complete and unrestricted access to all the features in Hyper-V. Adding members to this group helps reduce the number of members required in the Administrators group, and further separates access. Introduced in Windows Server 2012. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>IIS_IUSRS&lt;/td>
&lt;td>IIS_IUSRS is a built-in group that is used by Internet Information Services beginning with IIS 7.0. A built-in account and group are guaranteed by the operating system to always have a unique SID. IIS 7.0 replaces the IUSR_MachineName account and the IIS_WPG group with the IIS_IUSRS group to ensure that the actual names that are used by the new account and group will never be localized. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Incoming Forest Trust Builders&lt;/td>
&lt;td>Members of the Incoming Forest Trust Builders group can create incoming, one-way trusts to this forest. Active Directory provides security across multiple domains or forests through domain and forest trust relationships. This group cannot be renamed, deleted, or moved. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Key Admins&lt;/td>
&lt;td>Members of this group can perform administrative actions on key objects within the domain. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Network Configuration Operators&lt;/td>
&lt;td>Members of this group can make changes to TCP/IP settings, Rename/Enable/disable LAN connections,Delete/rename remote access connections, enter the PIN unblock key (PUK) for mobile broadband devices that support a SIM card and renew and release TCP/IP addresses on domain controllers in the domain. This group has no default members. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Performance Monitor Users&lt;/td>
&lt;td>Members of this group can monitor performance counters on domain controllers in the domain, locally and from remote clients without being a member of the Administrators or Performance Log Users groups. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Performance Log Users&lt;/td>
&lt;td>Members of this group can manage performance counters, logs and alerts on domain controllers in the domain, locally and from remote clients without being a member of the Administrators group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Log on as a batch job: SeBatchLogonRight&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Power Users&lt;/td>
&lt;td>By default, members of this group have no more user rights or permissions than a standard user account. The Power Users group did once grant users specific admin rights and permissions in previous versions of Windows.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Pre-Windows 2000 Compatible Access&lt;/td>
&lt;td>A backward compatibility group which allows read access on all users and groups in the domain. By default, the special identity Everyone is a member of this group. Add users to this group only if they are running Windows NT 4.0 or earlier. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Bypass traverse checking: SeChangeNotifyPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Print Operators&lt;/td>
&lt;td>A built-in group that exists only on domain controllers. By default, the only member is the Domain Users group. Print Operators can manage printers and document queues. They can also manage Active Directory printer objects in the domain. Members of this group can locally sign in to and shut down domain controllers in the domain. Because members of this group can load and unload device drivers on all domain controllers in the domain, add users with caution. This group cannot be renamed, deleted, or moved. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Load and unload device drivers: SeLoadDriverPrivilege Shut down the system: SeShutdownPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>Protected Users&lt;/strong>&lt;/td>
&lt;td>Members of the Protected Users group are afforded additional protection against the compromise of credentials during authentication processes. This security group is designed as part of a strategy to effectively protect and manage credentials within the enterprise. Members of this group automatically have non-configurable protection applied to their accounts. Membership in the Protected Users group is meant to be restrictive and proactively secure by default. The only method to modify the protection for an account is to remove the account from the security group. This group was introduced in Windows Server 2012 R2. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None &lt;strong>Vous devriez vraiment l&amp;rsquo;utiliser.&lt;/strong>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RAS and IAS Servers&lt;/td>
&lt;td>Servers in this group are permitted access to the remote access properties of users. A domain local group . By default, this group has no members. Computers that are running the Routing and Remote Access service are added to the group automatically. Members of this group have access to certain properties of User objects, such as Read Account Restrictions, Read Logon Information, and Read Remote Access Information. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RDS Endpoint Servers&lt;/td>
&lt;td>Servers that are members in the RDS Endpoint Servers group can run virtual machines and host sessions where user RemoteApp programs and personal virtual desktops run. This group needs to be populated on servers running RD Connection Broker. Session Host servers and RD Virtualization Host servers used in the deployment need to be in this group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RDS Management Servers&lt;/td>
&lt;td>Servers that are members in the RDS Management Servers group can be used to perform routine administrative actions on servers running Remote Desktop Services. This group needs to be populated on all servers in a Remote Desktop Services deployment. The servers running the RDS Central Management service must be included in this group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>RDS Remote Access Servers&lt;/td>
&lt;td>Servers in the RDS Remote Access Servers group provide users with access to RemoteApp programs and personal virtual desktops. In Internet facing deployments, these servers are typically deployed in an edge network. This group needs to be populated on servers running RD Connection Broker. RD Gateway servers and RD Web Access servers that are used in the deployment need to be in this group. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Read-Only Domain Controllers&lt;/td>
&lt;td>This group is comprised of the Read-only domain controllers in the domain. A Read-only domain controller makes it possible for organizations to easily deploy a domain controller in scenarios where physical security cannot be guaranteed, such as branch office locations, or in scenarios where local storage of all domain passwords is considered a primary threat, such as in an extranet or in an application-facing role. Default User Rights See &amp;lsquo;Denied RODC Password Replication Group&amp;rsquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Remote Desktop Users&lt;/td>
&lt;td>The Remote Desktop Users group on an RD Session Host server is used to grant users and groups permissions to remotely connect to an RD Session Host server. This group cannot be renamed, deleted, or moved. It appears as a SID until the domain controller is made the primary domain controller and it holds the operations master role (also known as flexible single master operations or FSMO). Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Remote Management Users&lt;/td>
&lt;td>Members of the Remote Management Users group can access WMI resources over management protocols (such as WS-Management via the Windows Remote Management service). This applies only to WMI namespaces that grant access to the user. The Remote Management Users group is generally used to allow users to manage servers through the Server Manager console, whereas the WinRMRemoteWMIUsers_ group is allows remotely running Windows PowerShell commands. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Replicator&lt;/td>
&lt;td>Computers that are members of the Replicator group support file replication in a domain. Windows Server operating systems use the File Replication service (FRS) to replicate system policies and logon scripts stored in the System Volume (SYSVOL).The DFS Replication service is a replacement for FRS, and it can be used to replicate the contents of a SYSVOL shared resource, DFS folders, and other custom (non-SYSVOL) data. You should migrate all non-SYSVOL FRS replica sets to DFS Replication. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Schema Admins&lt;/td>
&lt;td>A group that exists only in the root domain of an Active Directory forest of domains. It is a universal group if the domain is in native mode , a global group if the domain is in mixed mode . The group is authorized to make schema changes in Active Directory. By default, the only member of the group is the Administrator account for the forest root domain. Because this group has significant power in the forest, add users with caution. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: See &amp;lsquo;Denied RODC Password Replication Group&amp;rsquo;.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Server Operators&lt;/td>
&lt;td>A built-in group that exists only on domain controllers. By default, the group has no members. Server Operators can log on to a server interactively; create and delete network shares; start and stop services; back up and restore files; format the hard disk of the computer; and shut down the computer. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Allow log on locally: SeInteractiveLogonRight Back up files and directories: SeBackupPrivilege Change the system time: SeSystemTimePrivilege Change the time zone: SeTimeZonePrivilege Force shutdown from a remote system: SeRemoteShutdownPrivilege Restore files and directories SeRestorePrivilege Shut down the system: SeShutdownPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Storage Replica Administrators&lt;/td>
&lt;td>Members of this group have complete and unrestricted access to all features of Storage Replica. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>System Managed Accounts Group&lt;/th>
&lt;th>Members of this group are managed by the system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Terminal Server License Servers&lt;/td>
&lt;td>Members of the Terminal Server License Servers group can update user accounts in Active Directory with information about license issuance. This is used to track and report TS Per User CAL usage. A TS Per User CAL gives one user the right to access a Terminal Server from an unlimited number of client computers or devices. This group appears as a SID until the domain controller is made the primary domain controller and it holds the operations master role (also known as flexible single master operations or FSMO). Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Users&lt;/td>
&lt;td>A built-in group. After the initial installation of the operating system, the only member is the Authenticated Users group. When a computer joins a domain, the Domain Users group is added to the Users group on the computer. Users can perform tasks such as running applications, using local and network printers, shutting down the computer, and locking the computer. Users can install applications that only they are allowed to use if the installation program of the application supports per-user installation. This group cannot be renamed, deleted, or moved. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Windows Authorization Access Group&lt;/td>
&lt;td>Members of this group have access to the computed token GroupsGlobalAndUniversal attribute on User objects. Some applications have features that read the token-groups-global-and-universal (TGGAU) attribute on user account objects or on computer account objects in Active Directory Domain Services. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>WinRMRemoteWMIUsers_&lt;/td>
&lt;td>In Windows 8 and in Windows Server 2012, a Share tab was added to the Advanced Security Settings user interface. This tab displays the security properties of a remote file share. To view this information, you must have the following permissions and memberships, as appropriate for the version of Windows Server that the file server is running.The WinRMRemoteWMIUsers_ group allows running PowerShell commands remotely whereas the &amp;lsquo;Remote Management Users&amp;rsquo; group is generally used to allow users to manage servers by using the Server Manager console. This security group was introduced in Windows Server 2012. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="utilisateurs-par-défaut-ou-propriétaire-de-session-default-user-or-session-owner">Utilisateurs par défaut ou propriétaire de session (Default User or Session owner)&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Default User or Session owner&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Administrator&lt;/td>
&lt;td>A user account for the system administrator. This account is the first account created during operating system installation. The account cannot be deleted or locked out. It is a member of the Administrators group and cannot be removed from that group.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Guest&lt;/td>
&lt;td>A user account for people who do not have individual accounts. This user account does not require a password. By default, the Guest account is disabled.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>KRBTGT&lt;/td>
&lt;td>A service account that is used by the Key Distribution Center (KDC) service.&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="identités-spéciales-special-identity">Identités spéciales (Special Identity)&lt;/h2>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>&lt;strong>Special Identity&lt;/strong>&lt;/th>
&lt;th>&lt;strong>Description&lt;/strong>&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>Anonymous Logon&lt;/td>
&lt;td>A user who has logged on anonymously. This identity allows anonymous access to resources, such as a web page that is published on corporate servers. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Authenticated Users&lt;/td>
&lt;td>group that includes all users whose identities were authenticated when they logged on. Membership is controlled by the operating system. This identity allows access to shared resources within the domain, such as files in a shared folder that should be accessible to all the workers in the organization. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Add workstations to domain: SeMachineAccountPrivilege (Often removed in environments that have an IT administrator.) Bypass traverse checking: SeChangeNotifyPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Batch&lt;/td>
&lt;td>Any user or process that accesses the system as a batch job (or through the batch queue) has the Batch identity. This identity allows batch jobs to run scheduled tasks, such as a nightly cleanup jobMembership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Creator Group&lt;/td>
&lt;td>The person who created the file or the directory is a member of this special identity group. Windows Server operating systems use this identity to automatically grant access permissions to the creator of a file or directory. A placeholder security identifier (SID) is created in an inheritable access control entry (ACE). When the ACE is inherited, the system replaces this SID with the SID for the primary group of the object’s current owner. The primary group is used only by the Portable Operating System Interface for UNIX (POSIX) subsystem. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Creator Owner&lt;/td>
&lt;td>The person who created the file or the directory is a member of this special identity group. Windows Server operating systems use this identity to automatically grant access permissions to the creator of a file or directory. A placeholder SID is created in an inheritable ACE. When the ACE is inherited, the system replaces this SID with the SID for the object’s current owner.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Dialup&lt;/td>
&lt;td>Any user who accesses the system through a dial-up connection has the Dial-Up identity. This identity distinguishes dial-up users from other types of authenticated users.&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Digest Authentication&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Enterprise Domain Controllers&lt;/td>
&lt;td>A group that includes all domain controllers an Active Directory directory service forest of domains. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Allow log on locally: SeInteractiveLogonRight&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Everyone&lt;/td>
&lt;td>All interactive, network, dial-up, and authenticated users are members of the Everyone group. This special identity group gives wide access to system resources. Whenever a user logs on to the network, the user is automatically added to the Everyone group. On computers running Windows 2000 and earlier, the Everyone group included the Anonymous Logon group as a default member, but as of Windows Server 2003, the Everyone group contains only Authenticated Users and Guest; and it no longer includes Anonymous Logon by default (although this can be changed). Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Access this computer from the network: SeNetworkLogonRight Act as part of the operating system: SeTcbPrivilege Bypass traverse checking: SeChangeNotifyPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Interactive&lt;/td>
&lt;td>Any user who is logged on to the local system has the Interactive identity. This identity allows only local users to access a resource. Whenever a user accesses a given resource on the computer to which they are currently logged on, the user is automatically added to the Interactive group. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Local Service&lt;/td>
&lt;td>The Local Service account is similar to an Authenticated User account. The Local Service account has the same level of access to resources and objects as members of the Users group. This limited access helps safeguard your system if individual services or processes are compromised. Services that run as the Local Service account access network resources as a null session with anonymous credentials. The name of the account is NT AUTHORITY\LocalService. This account does not have a password. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Adjust memory quotas for a process: SeIncreaseQuotaPrivilege Bypass traverse checking: SeChangeNotifyPrivilege Change the system time: SeSystemtimePrivilege Change the time zone: SeTimeZonePrivilege Create global objects: SeCreateGlobalPrivilege Generate security audits: SeAuditPrivilege Impersonate a client after authentication: SeImpersonatePrivilege Replace a process level token: SeAssignPrimaryTokenPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Local System&lt;/td>
&lt;td>This is a service account that is used by the operating system. The LocalSystem account is a powerful account that has full access to the system and acts as the computer on the network. If a service logs on to the LocalSystem account on a domain controller, that service has access to the entire domain. Some services are configured by default to log on to the LocalSystem account. Do not change the default service setting. The name of the account is LocalSystem. This account does not have a password. Default User Rights: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Network&lt;/td>
&lt;td>This group implicitly includes all users who are logged on through a network connection. Any user who accesses the system through a network has the Network identity. This identity allows only remote users to access a resource. Whenever a user accesses a given resource over the network, the user is automatically added to the Network group. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Network Service&lt;/td>
&lt;td>The Network Service account is similar to an Authenticated User account. The Network Service account has the same level of access to resources and objects as members of the Users group. This limited access helps safeguard your system if individual services or processes are compromised. Services that run as the Network Service account access network resources by using the credentials of the computer account. The name of the account is NT AUTHORITY\NetworkService. This account does not have a password. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Adjust memory quotas for a process: SeIncreaseQuotaPrivilege Bypass traverse checking: SeChangeNotifyPrivilege Create global objects: SeCreateGlobalPrivilege Generate security audits: SeAuditPrivilege Impersonate a client after authentication: SeImpersonatePrivilege Restore files and directories: SeRestorePrivilege Replace a process level token: SeAssignPrimaryTokenPrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>NTLM Authentication&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Other Organization&lt;/td>
&lt;td>This group implicitly includes all users who are logged on to the system through a dial-up connection. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Principal Self or Self&lt;/td>
&lt;td>This identity is a placeholder in an ACE on a user, group, or computer object in Active Directory. When you grant permissions to Principal Self, you grant them to the security principal that is represented by the object. During an access check, the operating system replaces the SID for Principal Self with the SID for the security principal that is represented by the object. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Remote Interactive Logon&lt;/td>
&lt;td>This identity represents all users who are currently logged on to a computer by using a Remote Desktop connection. This group is a subset of the Interactive group. Access tokens that contain the Remote Interactive Logon SID also contain the Interactive SID. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Restricted&lt;/td>
&lt;td>Users and computers with restricted capabilities have the Restricted identity. This identity group is used by a process that is running in a restricted security context, such as running an application with the RunAs service. When code runs at the Restricted security level, the Restricted SID is added to the user’s access token. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>SChannel Authentication&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Service&lt;/td>
&lt;td>Any service that accesses the system has the Service identity. This identity group includes all security principals that are signed in as a service. This identity grants access to processes that are being run by Windows Server services. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Create global objects: SeCreateGlobalPrivilege Impersonate a client after authentication: SeImpersonatePrivilege&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Terminal Server Users&lt;/td>
&lt;td>Any user accessing the system through Terminal Services has the Terminal Server User identity. This identity allows users to access Terminal Server applications and to perform other necessary tasks with Terminal Server services. Membership is controlled by the operating system. Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>This Organization&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: None&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>Window Manager\Window Manager Group&lt;/td>
&lt;td>Default &lt;a href="https://ss64.com/nt/ntrights.html" target="_blank" rel="noopener">User Rights&lt;/a>: Bypass traverse checking: SeChangeNotifyPrivilege Increase a process working set: SeIncreaseWorkingSetPrivilege&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h2 id="heading">&lt;/h2>
&lt;p>Tu as atteint la fin des 3 tableaux. Félicitations ! 😎&lt;/p>
&lt;/div></description></item><item><title>Redémarrer un serveur distant en ligne de commande (CMD)</title><link>https://alexin.tech/fr/2022/01/03/redemarrer-un-serveur-distant-en-ligne-de-commande-cmd/</link><pubDate>Mon, 03 Jan 2022 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2022/01/03/redemarrer-un-serveur-distant-en-ligne-de-commande-cmd/</guid><description>&lt;div class="article-story">
&lt;h1 id="redémarrer-un-serveur-distant-en-ligne-de-commande-cmd">Redémarrer un serveur distant en ligne de commande (CMD)&lt;/h1>
&lt;p>Adieu salut c&amp;rsquo;t&amp;rsquo;équipe ! Alors aujourd&amp;rsquo;hui un petit article ultra court qui explique comment redémarrer un serveur distant en ligne de commande (CMD).&lt;/p>
&lt;h2 id="la-commande-shutdown">La commande shutdown&lt;/h2>
&lt;p>Windows a une commande d&amp;rsquo;arrêt qui est intégrée et qui se nomme &amp;ldquo;shutdown&amp;rdquo;. On peut l&amp;rsquo;utiliser pour stopper ou redémarrer une machine locale ou distante.&lt;/p>
&lt;p>Pour utiliser cette commande, il vous suffit d&amp;rsquo;ouvrir une CMD.&lt;/p>
&lt;p>Le détail de cette commande s&amp;rsquo;obtient en tapant &amp;ldquo;shutdown /?&amp;rdquo; dans une CMD.&lt;/p>
&lt;p>Voici une liste des fonctions les plus utilisées :&lt;/p>
&lt;ul>
&lt;li>/s - éteindre la machine&lt;/li>
&lt;li>/r - redémarrer la machine&lt;/li>
&lt;li>/m - spécifier un ordinateur distant&lt;/li>
&lt;li>/l - ne pas logguer&lt;/li>
&lt;li>/t - Le temps en secondes avant le stop ou reboot.&lt;/li>
&lt;li>/c - Un commentaire qui s&amp;rsquo;affiche sur l&amp;rsquo;écran de reboot ou d&amp;rsquo;arrêt de la machine.&lt;/li>
&lt;/ul>
&lt;p>Voici quelques exemples :&lt;/p>
&lt;h2 id="arrêt-dune-machine">Arrêt d&amp;rsquo;une machine&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">shutdown /s
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="restart-instantané-dune-machine">Restart instantané d&amp;rsquo;une machine&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">shutdown /r /t &lt;span class="m">00&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="restart-instantané-dune-machine-distante">Restart instantané d&amp;rsquo;une machine distante&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">shutdown /r /m &lt;span class="se">\\&lt;/span>yourRemoteServer /t &lt;span class="m">0&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Voilà, enjoy ! 😉&lt;/p>
&lt;/div></description></item><item><title>Log4J scanner en PowerShell &amp; Shell pour Windows et Linux</title><link>https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/</link><pubDate>Fri, 17 Dec 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/</guid><description>&lt;div class="article-story">
&lt;h1 id="log4j-scanner-en-powershell--shell-pour-windows-et-linux">Log4J scanner en PowerShell &amp;amp; Shell pour Windows et Linux&lt;/h1>
&lt;p>Hello ! Alors aujourd&amp;rsquo;hui je voulais juste vous partager un petit scanner de vulnérabilités qui a été développé par l&amp;rsquo;entreprise Genevoise &lt;a href="https://www.e-xpertsolutions.com/" target="_blank" rel="noopener">e-Xpert Solutions&lt;/a> et qui permet de détecter les vulnérabilités liées à Log4J pour vos serveurs .&lt;/p>
&lt;p>&lt;a href="https://github.com/e-XpertSolutions/atdefense-research" target="_blank" rel="noopener">https://github.com/e-XpertSolutions/atdefense-research&lt;/a>&lt;/p>
&lt;p>Ce script a été développé par :
&lt;a href="https://github.com/peacand" target="_blank" rel="noopener">Michael Molho&lt;/a>
David Routin&lt;/p>
&lt;p>Et j&amp;rsquo;ai contribué à ce projet en ajoutant le check de la version 2.15 qui contient un faille de type DoS.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="github-contributor" srcset="
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_72441eec43a25a0.webp 400w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_d12ddba33affff4c.webp 760w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_9797acdc25320c2f.webp 1200w"
src="https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image_hu_72441eec43a25a0.webp"
width="235"
height="137"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Ouai je suis assez fier pour le coup, car je n&amp;rsquo;avais encore jamais participé à un projet sur GitHub. Donc de voir mon nom dans les &amp;ldquo;Contributors&amp;rdquo;, ça fait plaisir.&lt;/p>
&lt;p>&lt;em>Update 20.12.2021 : La version 2.16 est aussi vulnérable à une faille de type DoS, j&amp;rsquo;ai effectué une nouvelle pull request afin de maj le script PowerShell.&lt;/em>&lt;/p>
&lt;p>Voici comment l&amp;rsquo;utiliser sur Windows :&lt;/p>
&lt;ol>
&lt;li>Tu télécharges handle.exe (un outil des sysinternals) ici : &lt;a href="https://docs.microsoft.com/en-us/sysinternals/downloads/handle" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/sysinternals/downloads/handle&lt;/a>&lt;/li>
&lt;li>Tu déposes le script sur ton serveur&lt;/li>
&lt;li>Tu le lances en admin en utilisant cette commande :&lt;/li>
&lt;/ol>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">powershell&lt;/span> &lt;span class="n">-ExecutionPolicy&lt;/span> &lt;span class="n">Bypass&lt;/span> &lt;span class="o">-File&lt;/span> &lt;span class="n">log4find&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">ps1&lt;/span> &lt;span class="n">-HandlePath&lt;/span> &lt;span class="p">&amp;lt;&lt;/span>&lt;span class="n">handle&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="n">exe_filepath&lt;/span>&lt;span class="p">&amp;gt;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et tu auras des résultats colorés :&lt;/p>
&lt;ul>
&lt;li>vert : t&amp;rsquo;es bon&lt;/li>
&lt;li>rouge : attention, tu as une ou les deux vulnés sur ton serveur&lt;/li>
&lt;li>jaune : le check n&amp;rsquo;a pas réussi, vas faire un check à la mano.&lt;/li>
&lt;/ul>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran PoSh Log4Find" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Dans le cas ou le check a raté, je te conseille d&amp;rsquo;utiliser &amp;ldquo;everything&amp;quot;de &lt;a href="https://www.voidtools.com/" target="_blank" rel="noopener">voidtools&lt;/a> . C&amp;rsquo;est un search engine pour Windows qui est vraiment incroyable de part sa vitesse.&lt;/p>
&lt;p>Pour utiliser Everything, il te suffit de le lancer en admin et ensuite tu tapes ta recherche.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">log4*
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>L&amp;rsquo;&lt;strong>astérisque&lt;/strong> &amp;ldquo;*&amp;rdquo; sert de wildcard.
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img alt="everything screenshot" srcset="
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_f9a657d8e5cebe1.webp 400w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_fd511ab9175bad4e.webp 760w,
/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_5cabb5cb13a48b88.webp 1200w"
src="https://alexin.tech/fr/2021/12/17/log4j-scanner-en-powershell-shell-pour-windows-et-linux/image-1_hu_f9a657d8e5cebe1.webp"
width="760"
height="248"
loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Dans mon cas, y a pas de java sur ma machine, juste 1000 scripts PowerShell et des fichiers/dossiers en lien avec ces scripts de détection de Log4J.&lt;/p>
&lt;p>Voilà. enjoy !&lt;/p>
&lt;/div></description></item><item><title>Trouver un compte de service (MSA) dans l'AD. Comptes cachés.</title><link>https://alexin.tech/fr/2021/11/11/trouver-un-compte-de-service-msa-dans-lad.-comptes-caches./</link><pubDate>Thu, 11 Nov 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/11/11/trouver-un-compte-de-service-msa-dans-lad.-comptes-caches./</guid><description>&lt;div class="article-story">
&lt;h1 id="trouver-un-compte-de-service-msa-dans-lad-comptes-cachés">Trouver un compte de service (MSA) dans l&amp;rsquo;AD. Comptes cachés.&lt;/h1>
&lt;p>Tu recherches un compte dans l&amp;rsquo;AD et tu ne le trouves pas ? Il y a des chances que ça soit un compte de service MSA et voici comment le trouver !&lt;/p>
&lt;h2 id="un-peu-de-théorie-sur-les-services-et-les-msa">Un peu de théorie sur les services et les MSA:&lt;/h2>
&lt;p>Un service possède une identité de sécurité primaire qui détermine les droits d&amp;rsquo;accès aux ressources locales et réseau. Le contexte de sécurité d&amp;rsquo;un service Microsoft Win32 est déterminé par le compte de service qui est utilisé pour démarrer le service. Généralement tu vas utiliser un compte de service pour :&lt;/p>
&lt;ul>
&lt;li>Identifier et authentifier un service.&lt;/li>
&lt;li>Démarrer avec succès un service.&lt;/li>
&lt;li>Accéder ou exécuter du code ou une application.&lt;/li>
&lt;li>Démarrer un processus.&lt;/li>
&lt;/ul>
&lt;p>En fonction de ton cas d&amp;rsquo;utilisation, tu peux utiliser un compte de service géré (MSA), un compte d&amp;rsquo;ordinateur ou un compte d&amp;rsquo;utilisateur pour exécuter un service. Tu dois bien entendu d&amp;rsquo;abord tester un service pour confirmer qu&amp;rsquo;il peut utiliser un compte de service géré. Si le service peut utiliser un MSA, alors la bonne pratique voudrait que tu en utilises un.&lt;/p>
&lt;p>L&amp;rsquo;avantage principal du compte de service MSA est que le mot de passe est entièrement géré par l&amp;rsquo;AD, aucune action manuelle n&amp;rsquo;est requise et le mot de passe nous reste donc inconnu.&lt;/p>
&lt;p>Source : &lt;a href="https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/service-accounts-on-premises" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/service-accounts-on-premises&lt;/a>&lt;/p>
&lt;h2 id="problématique-">Problématique :&lt;/h2>
&lt;p>Un compte de service AD avec un SamAccountName qui se termine par un &amp;ldquo;$&amp;rdquo; est caché. On ne le trouve pas en effectuant une recherche toute simple de type :&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="AD service account" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;h2 id="solution">Solution&lt;/h2>
&lt;p>Afin de trouver ce compte tu peux utiliser PowerShell. Voici un exemple de la commande à exécuter.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">PS &lt;/span>&lt;span class="n">C:&lt;/span>&lt;span class="p">\&amp;gt;&lt;/span> &lt;span class="nb">Get-ADServiceAccount&lt;/span> &lt;span class="n">-Identity&lt;/span> &lt;span class="n">service1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">Enabled&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">True&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">Name&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">service1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">UserPrincipalName&lt;/span> &lt;span class="err">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">SamAccountName&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">service1&lt;/span>&lt;span class="p">$&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">ObjectClass&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="nb">msDS-ManagedServiceAccount&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">SID&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">S&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">1&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">5&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">21&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">159507390&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">2980359153&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">3438059098&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="mf">29770&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">ObjectGUID&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">eaa435ee&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="n">6ebc&lt;/span>&lt;span class="p">-&lt;/span>&lt;span class="n">44dd-b4b6-dc1bb5bcd23a&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">HostComputers&lt;/span> &lt;span class="err">:&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="n">DistinguishedName&lt;/span> &lt;span class="err">:&lt;/span> &lt;span class="n">CN&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">service1&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">CN&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">Managed&lt;/span> &lt;span class="n">Service&lt;/span> &lt;span class="n">Accounts&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">DC&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">contoso&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">DC&lt;/span>&lt;span class="p">=&lt;/span>&lt;span class="n">com&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Source : &lt;a href="https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adserviceaccount?view=windowsserver2019-ps" target="_blank" rel="noopener">https://docs.microsoft.com/en-us/powershell/module/activedirectory/get-adserviceaccount?view=windowsserver2019-ps&lt;/a>&lt;/p>
&lt;p>Comme il est accessible via PowerShell, tu peux donc l&amp;rsquo;administrer via PowerShell et, p.ex., le rajouter en tant que membre d&amp;rsquo;un groupe.&lt;/p>
&lt;p>J&amp;rsquo;espère que cet article t&amp;rsquo;a été utile !&lt;/p>
&lt;p>Enjoy ! 👨‍💻&lt;/p>
&lt;/div></description></item><item><title>Obtenir le port d'une instance SQL en Powershell</title><link>https://alexin.tech/fr/2021/08/12/obtenir-le-port-dune-instance-sql-en-powershell/</link><pubDate>Thu, 12 Aug 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/08/12/obtenir-le-port-dune-instance-sql-en-powershell/</guid><description>&lt;div class="article-story">
&lt;h1 id="obtenir-le-port-dune-instance-sql-en-powershell">Obtenir le port d&amp;rsquo;une instance SQL en Powershell&lt;/h1>
&lt;p>Le port par défaut d&amp;rsquo;un serveur MS SQL est le 1433 mais vous trouverez souvent que, par mesure de sécurité, le port a été modifié.&lt;/p>
&lt;p>Voici un petit script PowerShell permettant de retourner les instances ainsi que les ports utilisés d&amp;rsquo;un serveur MS SQL.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$server&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">Read-Host&lt;/span> &lt;span class="n">-Prompt&lt;/span> &lt;span class="s1">&amp;#39;Input your servername&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nv">$namespace&lt;/span> &lt;span class="p">=&lt;/span> &lt;span class="nb">gwmi &lt;/span>&lt;span class="n">-computername&lt;/span> &lt;span class="nv">$server&lt;/span> &lt;span class="n">-Namespace&lt;/span> &lt;span class="s2">&amp;#34;root\microsoft\sqlserver&amp;#34;&lt;/span> &lt;span class="n">-Class&lt;/span> &lt;span class="s2">&amp;#34;__Namespace&amp;#34;&lt;/span> &lt;span class="n">-Filter&lt;/span> &lt;span class="s2">&amp;#34;name like &amp;#39;ComputerManagement%&amp;#39;&amp;#34;&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">sort &lt;/span>&lt;span class="n">desc&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">select &lt;/span>&lt;span class="n">-ExpandProperty&lt;/span> &lt;span class="n">name&lt;/span> &lt;span class="n">-First&lt;/span> &lt;span class="mf">1&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Get-WmiObject&lt;/span> &lt;span class="n">-computername&lt;/span> &lt;span class="nv">$server&lt;/span> &lt;span class="n">-Namespace&lt;/span> &lt;span class="s2">&amp;#34;root\microsoft\SqlServer\&lt;/span>&lt;span class="nv">$namespace&lt;/span>&lt;span class="s2">&amp;#34;&lt;/span> &lt;span class="n">-Class&lt;/span> &lt;span class="n">ServerNetworkProtocolProperty&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">select &lt;/span>&lt;span class="n">instancename&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">propertystrval&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">PropertyName&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">IPAddressName&lt;/span>&lt;span class="p">,&lt;/span>&lt;span class="n">ProtocolName&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="n">where&lt;/span>&lt;span class="p">{&lt;/span>&lt;span class="nv">$_&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">IPAddressName&lt;/span> &lt;span class="o">-eq&lt;/span> &lt;span class="s1">&amp;#39;IPAll&amp;#39;&lt;/span> &lt;span class="o">-and&lt;/span> &lt;span class="nv">$_&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">propertystrval&lt;/span> &lt;span class="o">-ne&lt;/span> &lt;span class="s1">&amp;#39;&amp;#39;&lt;/span>&lt;span class="p">}&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">ft &lt;/span>&lt;span class="n">-autosize&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Lorsque vous exécuterez ce script, il vous demandera de rentrer le serveur pour lequel vous souhaitez trouver les instances et ports et vous obtiendrez le résultat suivant :
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran PoSh" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;p>Enjoy ! 😉&lt;/p>
&lt;/div></description></item><item><title>Windows Package Manager - winget</title><link>https://alexin.tech/fr/2021/02/24/windows-package-manager-winget/</link><pubDate>Wed, 24 Feb 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/02/24/windows-package-manager-winget/</guid><description>&lt;div class="article-story">
&lt;h1 id="windows-package-manager---winget">Windows Package Manager - winget&lt;/h1>
&lt;p>Depuis la version 1909 de Windows 10, Microsoft a introduit un gestionnaire de packets qui permet d&amp;rsquo;installer des outils Microsoft directement depuis la CMD.&lt;/p>
&lt;p>Très pratique pour installer &lt;a href="https://github.com/microsoft/terminal" target="_blank" rel="noopener">Terminal&lt;/a> ou encore &lt;a href="https://github.com/microsoft/PowerToys" target="_blank" rel="noopener">PowerToys&lt;/a> .&lt;/p>
&lt;p>Voici un exemple pour installer Terminal :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">Microsoft&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">WindowsTerminal&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et avec powertoys :&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="n">winget&lt;/span> &lt;span class="n">install&lt;/span> &lt;span class="n">Microsoft&lt;/span>&lt;span class="p">.&lt;/span>&lt;span class="py">Powertoys&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="winget" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;/div></description></item><item><title>Obtenir la taille des blocs d'un disque via Powershell</title><link>https://alexin.tech/fr/2021/01/28/obtenir-la-taille-des-blocs-dun-disque-via-powershell/</link><pubDate>Thu, 28 Jan 2021 00:00:00 +0000</pubDate><guid>https://alexin.tech/fr/2021/01/28/obtenir-la-taille-des-blocs-dun-disque-via-powershell/</guid><description>&lt;div class="article-story">
&lt;h1 id="obtenir-la-taille-des-blocs-dun-disque-via-powershell">Obtenir la taille des blocs d&amp;rsquo;un disque via Powershell&lt;/h1>
&lt;p>Afin d&amp;rsquo;obtenir la taille des blocs sur un disque il vous suffit d&amp;rsquo;utiliser la cmdlet Get-cimInstance.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Get-CimInstance&lt;/span> &lt;span class="n">-ClassName&lt;/span> &lt;span class="n">Win32_Volume&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Select-Object&lt;/span> &lt;span class="n">Label&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">DriveLetter&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">BlockSize&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Format-Table&lt;/span> &lt;span class="n">-AutoSize&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Nous pouvons également utiliser la cmdlet Get-wmiObject mais qui est dépréciée. Cela peut être utile sur des systèmes plus anciens.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-powershell" data-lang="powershell">&lt;span class="line">&lt;span class="cl">&lt;span class="nb">Get-WmiObject&lt;/span> &lt;span class="n">-Class&lt;/span> &lt;span class="n">Win32_Volume&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Select-Object&lt;/span> &lt;span class="n">Label&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">DriveLetter&lt;/span>&lt;span class="p">,&lt;/span> &lt;span class="n">BlockSize&lt;/span> &lt;span class="p">|&lt;/span> &lt;span class="nb">Format-Table&lt;/span> &lt;span class="n">-AutoSize&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Et voici un exemple de résultat :&lt;/p>
&lt;p>
&lt;figure >
&lt;div class="flex justify-center ">
&lt;div class="w-100" >&lt;img src="./featured.png" alt="Capture d&amp;rsquo;écran PoSh" loading="lazy" data-zoomable />&lt;/div>
&lt;/div>&lt;/figure>
&lt;/p>
&lt;/div></description></item></channel></rss>