<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Gpo on slash-root.fr</title><link>https://beta.slash-root.fr/tags/gpo/</link><description>Recent content in Gpo on slash-root.fr</description><generator>Hugo -- gohugo.io</generator><language>fr-fr</language><lastBuildDate>Fri, 25 Mar 2022 08:50:52 +0100</lastBuildDate><atom:link href="https://beta.slash-root.fr/tags/gpo/index.xml" rel="self" type="application/rss+xml"/><item><title>GPO: Disable web search from taskbar</title><link>https://beta.slash-root.fr/gpo-disable-web-search-from-taskbar/</link><pubDate>Thu, 24 Mar 2022 22:49:53 +0100</pubDate><guid>https://beta.slash-root.fr/gpo-disable-web-search-from-taskbar/</guid><description>&lt;img src="https://beta.slash-root.fr/gpo-disable-web-search-from-taskbar/cover.png" alt="Featured image of post GPO: Disable web search from taskbar" /&gt;&lt;h2 id="présentation"&gt;&lt;a href="#pr%c3%a9sentation" class="header-anchor"&gt;&lt;/a&gt;Présentation
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Une machine Windows Server 2019 contrôleur de domaine.&lt;/li&gt;
&lt;li&gt;Une machine client sous Windows 10 Professionnel.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Le but est de ne plus avoir l'onglet Web ni la mention &lt;em&gt;Rechercher sur le Web&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="159" width="300" decoding="async" src="image-20220310190211323.png" alt="" /&gt;&lt;/p&gt;
&lt;h2 id="première-solution"&gt;&lt;a href="#premi%c3%a8re-solution" class="header-anchor"&gt;&lt;/a&gt;Première solution
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;Dans le &lt;strong&gt;Gestionnaire du serveur / Outils / Gestion des stratégies de groupe&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="233" width="300" decoding="async" src="image-20220312210233691.png" alt="" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dans &lt;strong&gt;Objets de stratégie de groupe / Clic droit -&amp;gt; Nouveau&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;Nommez votre stratégie et faites un &lt;strong&gt;clic droit / Modifier&lt;/strong&gt; sur votre nouvelle GPO&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Cette fenêtre apparait :&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="248" width="300" decoding="async" src="image-20220312202028603.png" alt="" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Sélectionnez une stratégie &lt;strong&gt;Configuration &lt;em&gt;Ordinateur / Modèles d'administration / Composants Windows / Rechercher&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Activez les trois paramètres suivants :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ne pas autoriser la recherche Web&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ne pas effectuer des recherches sur le Web ou afficher des résultats Web dans Search&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ne pas effectuer des recherches sur le Web ou afficher des résultats Web dans Search via des connexions limitées&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="75" width="300" decoding="async" src="image-20220312201045231.png" alt="" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Pensez à positionnez votre nouvelle GPO sur l'unité organisationnelle concernée&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Appliquez la GPO à l'aide de la commande &lt;strong&gt;gpudate /force&lt;/strong&gt; dans l'invite de commande&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gpupdate /force
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="deuxième-solution"&gt;&lt;a href="#deuxi%c3%a8me-solution" class="header-anchor"&gt;&lt;/a&gt;Deuxième solution
&lt;/h2&gt;&lt;p&gt;Il est possible que la première solution ne fonctionne pas, dans ce cas il faudra créer une GPO qui modifiera le registre.&lt;/p&gt;
&lt;p&gt;Toujours dans l'éditeur de gestion des stratégies de groupe, après avoir créé une nouvelle GPO :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sélectionnez une stratégie &lt;strong&gt;Configuration utilisateur / Préférences / Paramètres Windows&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;Effectuez un clic droit sur &lt;strong&gt;Registre / Nouveau / Élément Registre&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;La fenetre suivante apparait :&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="300" width="262" decoding="async" src="image-20220312203851972.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Remplissez cette fenêtre comme suit :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Action : &lt;strong&gt;Créer&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Ruche : &lt;strong&gt;HKEY_CURRENT_USER&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Chemin d'accès de la clé : &lt;strong&gt;Software\Policies\Microsoft\Windows\Explorer&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Nom de la valeur : &lt;strong&gt;DisableSearchBoxSuggestions&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Type de valeur : &lt;strong&gt;REG_DWORD&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Données de valeur : &lt;strong&gt;1&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="300" width="260" decoding="async" src="image-20220312204300470.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;L'élément de registre a bien été ajouté :&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="36" width="300" decoding="async" src="image-20220312204631856.png" alt="" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Pensez à positionnez votre nouvelle GPO sur l'unité organisationnelle concernée&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Appliquez la GPO à l'aide de la commande &lt;strong&gt;gpudate /force&lt;/strong&gt; dans l'invite de commande&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gpupdate /force
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="vérification"&gt;&lt;a href="#v%c3%a9rification" class="header-anchor"&gt;&lt;/a&gt;Vérification
&lt;/h2&gt;&lt;p&gt;L'onglet Web ainsi que la mention &lt;em&gt;Rechercher sur le web&lt;/em&gt; ont bien été désactivés :&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" height="212" width="300" decoding="async" src="image-20220312205059110.png" alt="" /&gt;&lt;/p&gt;</description></item><item><title>Samba : Installation d’un contrôleur de domaine</title><link>https://beta.slash-root.fr/samba-installation-dun-controleur-de-domaine/</link><pubDate>Fri, 29 Oct 2021 10:40:56 +0200</pubDate><guid>https://beta.slash-root.fr/samba-installation-dun-controleur-de-domaine/</guid><description>&lt;img src="https://beta.slash-root.fr/samba-installation-dun-controleur-de-domaine/cover.png" alt="Featured image of post Samba : Installation d’un contrôleur de domaine" /&gt;&lt;h2 id="introduction"&gt;&lt;a href="#introduction" class="header-anchor"&gt;&lt;/a&gt;Introduction
&lt;/h2&gt;&lt;p&gt;Samba permet d'implémenter le protocole propriétaire SMB/CIFS de Microsoft sous un environnement Unix et ses dérivés. Il offre la possibilité de partager des ressources dans un SI hétérogène Windows/Linux.&lt;/p&gt;
&lt;p&gt;A partir de la version 3, Samba fournit le partage de fichiers/imprimantes et peut intégrer un domaine Active Directory en tant que membre. Il peut également être PDC (Primary Domain Controller) avec un niveau fonctionnel NT4.&lt;/p&gt;
&lt;p&gt;A partir de la version 4, Samba peut servir de contrôleur de domaine Active Directory avec un niveau fonctionnel Windows Server 2008 et offre les services d'authentification AD. Des GPOs peuvent être déployées.&lt;/p&gt;
&lt;p&gt;Dans cette procédure, une distribution Debian 10 et Samba en version 4 sont utilisées.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Le serveur samba sera nommé : srv-samba&lt;/li&gt;
&lt;li&gt;Le domaine sera : domaine.local&lt;/li&gt;
&lt;li&gt;L'adresse IP du serveur samba sera : 192.168.1.10&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="préparation"&gt;&lt;a href="#pr%c3%a9paration" class="header-anchor"&gt;&lt;/a&gt;Préparation
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Modifier le nom du serveur en y indiquant le futur domaine :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo echo &lt;span style="color:#e6db74"&gt;&amp;#34;srv-samba.domaine.local&amp;#34;&lt;/span&gt; &amp;gt; /etc/hostname &lt;span style="color:#75715e"&gt;# Pour la persistence après un reboot&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo hostname &lt;span style="color:#66d9ef"&gt;$(&lt;/span&gt;cat /etc/hostname&lt;span style="color:#66d9ef"&gt;)&lt;/span&gt; &lt;span style="color:#75715e"&gt;# Pour modifier le nom sans avoir à reboot&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Attribuer une adresse IP fixe :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo vi /etc/network/interfaces
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Exemple :&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# auto ens18&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# iface ens18 inet static&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# address 192.168.1.10&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# netmask 255.255.255.0&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# gateway 192.168.1.254&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Modifier le fichier hosts en conséquence :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo echo &lt;span style="color:#e6db74"&gt;&amp;#34;192.168.1.10 srv-samba.domaine.local srv-samba&amp;#34;&lt;/span&gt; &amp;gt;&amp;gt; /etc/hosts
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="installation-et-configuration-de-samba"&gt;&lt;a href="#installation-et-configuration-de-samba" class="header-anchor"&gt;&lt;/a&gt;Installation et configuration de Samba
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Installation des paquets nécessaires :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt -y install samba krb5-config winbind smbclient
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Modifier smb.conf pour utiliser les paramètres WINS fournis par DHCP ? : &lt;strong&gt;Non&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Royaume (« realm ») Kerberos version 5 par défaut : &lt;strong&gt;domaine.local&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Serveurs Kerberos du royaume : &lt;strong&gt;srv-samba.domaine.local&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Serveur administratif du royaume Kerberos : &lt;strong&gt;srv-samba.domaine.local&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Samba est installé.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="création-du-domaine"&gt;&lt;a href="#cr%c3%a9ation-du-domaine" class="header-anchor"&gt;&lt;/a&gt;Création du domaine
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Renommer le fichier de configuration principal de samba &lt;code&gt;/etc/samba/smb.conf&lt;/code&gt; :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.org
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Provisionner le domaine :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo samba-tool domain provision
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Realm [DOMAINE.LOCAL]: &lt;strong&gt;Appuyer sur Entrée&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Domain [DOMAINE]: &lt;strong&gt;Appuyer sur Entrée&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Server Role (dc, member, standalone) [dc]: &lt;strong&gt;Appuyer sur Entrée&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: &lt;strong&gt;Appuyer sur Entrée&lt;/strong&gt; (Le serveur DNS sera interne à Samba dans cette installation)&lt;/li&gt;
&lt;li&gt;DNS forwarder IP address (write 'none' to disable forwarding) [1.1.1.1]: &lt;strong&gt;Appuyer sur Entrée&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Administrator password: &lt;strong&gt;Saisir le mot de passe admin du domaine&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Retype password: &lt;strong&gt;Ressaisir le mot de passe admin du domaine&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Le domaine est créé :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Looking up IPv4 addresses
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Looking up IPv6 addresses
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;No IPv6 address will be assigned
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up share.ldb
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up secrets.ldb
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up the registry
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up the privileges database
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up idmap db
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up SAM db
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb partitions and settings
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb rootDSE
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Pre-loading the Samba &lt;span style="color:#ae81ff"&gt;4&lt;/span&gt; and AD schema
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Adding DomainDN: DC&lt;span style="color:#f92672"&gt;=&lt;/span&gt;domaine,DC&lt;span style="color:#f92672"&gt;=&lt;/span&gt;local
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Adding configuration container
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb schema
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb configuration data
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up display specifiers
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Modifying display specifiers and extended rights
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Adding users container
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Modifying users container
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Adding computers container
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Modifying computers container
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb data
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up well known security principals
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb users and groups
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up self join
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Adding DNS accounts
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Creating CN&lt;span style="color:#f92672"&gt;=&lt;/span&gt;MicrosoftDNS,CN&lt;span style="color:#f92672"&gt;=&lt;/span&gt;System,DC&lt;span style="color:#f92672"&gt;=&lt;/span&gt;domaine,DC&lt;span style="color:#f92672"&gt;=&lt;/span&gt;local
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Creating DomainDnsZones and ForestDnsZones partitions
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Populating DomainDnsZones and ForestDnsZones partitions
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Setting up sam.ldb rootDSE marking as synchronized
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Fixing provision GUIDs
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;A Kerberos configuration suitable &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; Samba AD has been generated at /var/lib/samba/private/krb5.conf
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Merge the contents of this file with your system krb5.conf or replace it with this one. Do not create a symlink!
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Once the above files are installed, your Samba AD server will be ready to use
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Server Role: active directory domain controller
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Hostname: srv-samba
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;NetBIOS Domain: DOMAINE
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;DNS Domain: domaine.local
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;DOMAIN SID: S-1-5-21-1555810112-1359199810-2012430263
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="mise-en-service-du-domaine"&gt;&lt;a href="#mise-en-service-du-domaine" class="header-anchor"&gt;&lt;/a&gt;Mise en service du domaine
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Copier le fichier de configuration de kerberos dans le répertoire &lt;code&gt;/etc&lt;/code&gt; :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo cp /var/lib/samba/private/krb5.conf /etc/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Arrêter les services SMB, NMBD et Bind :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo systemctl stop smbd nmbd winbind
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Désactiver les services SMB, NMBD et Bind :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo systemctl disable smbd nmbd winbind
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Rendre visible le service &lt;code&gt;samba-ad-dc&lt;/code&gt; :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo systemctl unmask samba-ad-dc
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Démarrer le service :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo systemctl start samba-ad-dc
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Activer le service :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo systemctl enable samba-ad-dc
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Vérifier le statut de Samba :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;smbclient -L localhost -U%
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tout est OK :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Sharename Type Comment
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --------- ---- -------
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; netlogon Disk
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; sysvol Disk
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; IPC$ IPC IPC Service &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Samba 4.9.5-Debian&lt;span style="color:#f92672"&gt;)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Reconnecting with SMB1 &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; workgroup listing.
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Server Comment
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --------- -------
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; Workgroup Master
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --------- -------
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; WORKGROUP SRV-SAMBA
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Vérifier le niveau fonctionnel du domaine :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo samba-tool domain level show
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Le niveau fonctionnel du domaine est Windows 2008 R2 :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Domain and forest &lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; level &lt;span style="color:#66d9ef"&gt;for&lt;/span&gt; domain &lt;span style="color:#e6db74"&gt;&amp;#39;DC=domaine,DC=local&amp;#39;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Forest &lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; level: &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Windows&lt;span style="color:#f92672"&gt;)&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2008&lt;/span&gt; R2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Domain &lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; level: &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Windows&lt;span style="color:#f92672"&gt;)&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2008&lt;/span&gt; R2
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Lowest &lt;span style="color:#66d9ef"&gt;function&lt;/span&gt; level of a DC: &lt;span style="color:#f92672"&gt;(&lt;/span&gt;Windows&lt;span style="color:#f92672"&gt;)&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;2008&lt;/span&gt; R2
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="création-utilisateur"&gt;&lt;a href="#cr%c3%a9ation-utilisateur" class="header-anchor"&gt;&lt;/a&gt;Création utilisateur
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Créer un 1er utilisateur dans l'annuaire :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo samba-tool user create superman
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Indiquer le mot de passe de superman :&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;New Password:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;Retype Password:
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;User &lt;span style="color:#e6db74"&gt;&amp;#39;superman&amp;#39;&lt;/span&gt; created successfully
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="jonction-au-domaine"&gt;&lt;a href="#jonction-au-domaine" class="header-anchor"&gt;&lt;/a&gt;Jonction au domaine
&lt;/h2&gt;&lt;p&gt;La jonction au domaine d'un poste Windows est identique qu'avec un contrôleur de domaine Microsoft. Les outils d'administrations (RSAT) peuvent être employé pour administrer les objets du domaine (dsa.msc), les gpo (gpmc.msc), le serveur dns (dnsmgmt.msc)...&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Avec un DC Microsoft, un compte utilisateur du domaine peut être employé pour joindre un poste au domaine. Avec samba, le compte &lt;strong&gt;administrator&lt;/strong&gt; doit être employé.&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>Tactical RMM : Agent installation</title><link>https://beta.slash-root.fr/tactical-rmm-agent-installation/</link><pubDate>Thu, 21 Oct 2021 10:35:03 +0200</pubDate><guid>https://beta.slash-root.fr/tactical-rmm-agent-installation/</guid><description>&lt;img src="https://beta.slash-root.fr/tactical-rmm-agent-installation/cover.png" alt="Featured image of post Tactical RMM : Agent installation" /&gt;&lt;h2 id="a-lire"&gt;&lt;a href="#a-lire" class="header-anchor"&gt;&lt;/a&gt;A lire
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Pour l'instant seul un agent Windows est pleinement fonctionnel. Les versions Linux et macOS sont en cours de développement.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Afin d'éviter la détection de l'agent par l'antivirus, 2 solutions :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Agent avec code signé par Microsoft.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Un don mensuel de 50$ est demandé afin d'avoir accès à l'agent avec le code signé Microsoft. Le status Sponsor est alors attribué au sein du projet Tactical RMM.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;Agent sans code signé par Microsoft.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;Le setup généré dynamiquement de l'agent (explications plus bas) sans code signé peut provoquer une alerte virale sur votre système. L'utilisation de l'agent générique (via script, gpo) ne provoque pas d'alerte virale.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Penser à vérifier vos exclusions antivirus une fois l'agent Windows déployé:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Program Files\TacticalAgent\*
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Program Files\Mesh Agent\*
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Windows\Temp\winagent-v*.exe
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\Windows\Temp\trmm\*
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;C:\temp\tacticalrmm*.exe
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote&gt;
&lt;p&gt;Lors du déploiement de l'agent, les exclusions sont automatiquement créées dans Windows Defender.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Par défaut les mises à jour Windows sont désactivées automatiquement après l'installation de l'agent.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="déploiement-agent"&gt;&lt;a href="#d%c3%a9ploiement-agent" class="header-anchor"&gt;&lt;/a&gt;Déploiement agent
&lt;/h2&gt;&lt;blockquote&gt;
&lt;p&gt;L'exécution de l'installation des agents doit être effectué sur les hôtes à surveiller.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id="déploiement-manuel"&gt;&lt;a href="#d%c3%a9ploiement-manuel" class="header-anchor"&gt;&lt;/a&gt;Déploiement manuel
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Se rendre sur &lt;a href="https://rmm.example.com"&gt;https://rmm.example.com&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Clic droit sur le client/site puis &lt;strong&gt;Install Agent&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="install_agent.png" alt="install_agent" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Vérifier que le &lt;strong&gt;Client&lt;/strong&gt; et le &lt;strong&gt;Site&lt;/strong&gt; soient corrects.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Définir le type de machine (Server / Workstation) à qui s'adresse l'agent.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Définir le temps de validité de l'agent (Token expiration).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Définir les options appliqués par l'agent (Enable RDP, Enable Ping, Disable sleep/hibernate).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sélectionner la méthode d'installation souhaitée :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Agent généré dynamiquement&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="agent_dynamic.png" alt="agent_dynamic" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Attention à l'antivirus si le code de l'agent est non signé par Microsoft. Voir la section &lt;em&gt;A lire&lt;/em&gt; au début de cet article.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Powershell&lt;/strong&gt; : Génération d'un script Powershell. L'agent est générique et le scripts contient tous les paramètres de l'agent.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Autoriser l'exécution du script Powershell :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;PS C:\&amp;gt; Set-ExecutionPolicy Unrestricted
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Manuel&lt;/strong&gt; : L'agent est générique. Le script d'exécution est afficher à l'écran. Cette méthode est préconisée pour l'intégration dans des scripts et/ou des GPOs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="agent_manual.png" alt="agent_manual" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Attention à la durée du token si cette méthode est choisie pour une utilisation dans des scripts et/ou GPOs. Mettre une valeur très importante si besoin d'une validité &lt;em&gt;permanente&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="lien-de-déploiement"&gt;&lt;a href="#lien-de-d%c3%a9ploiement" class="header-anchor"&gt;&lt;/a&gt;Lien de déploiement
&lt;/h3&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A partir du client, se rendre sur &lt;a href="https://rmm.example.com"&gt;https://rmm.example.com&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Menu &lt;strong&gt;Agents&lt;/strong&gt; puis &lt;strong&gt;Manage Deployments&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="link_deploy.png" alt="link_deploy" /&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Astuce : Créer un client/site default avec un lien de déploiement (token avec une longue expiration) pour avoir une URL générique. Puis déplacer l'agent dans le client / site souhaité.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;L'agent téléchargé à travers ce lien est de type dynamique. Il est potentiellement détectable par les antivirus (si code non signé). Se référer à la section &lt;em&gt;A lire&lt;/em&gt; en début de cet article.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="starwars_link_agent.png" alt="starwars_link" /&gt;&lt;/p&gt;
&lt;h3 id="déploiement-par-gpo"&gt;&lt;a href="#d%c3%a9ploiement-par-gpo" class="header-anchor"&gt;&lt;/a&gt;Déploiement par GPO
&lt;/h3&gt;&lt;blockquote&gt;
&lt;p&gt;La GPO de déploiement de l'agent doit être appliquée au niveau ordinateur afin que l'installation de l'agent se déroule sous un compte &lt;strong&gt;Local System&lt;/strong&gt; ayant les droits nécessaires.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Récupérer le script d'installation de l'installation manuelle (voir plus haut) ainsi que l'exécutable de l'agent générique.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stocker le script et l'agent.exe dans un dossier partager du contrôleur de domaine (exemple: &lt;code&gt;C:\agent_rmm\&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Sur le domaine Windows, ouvrir la console MMC des GPOs :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gpmc.msc
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Créer une nouvelle GPO ciblant une OU contenant des Ordinateurs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_oucpu.png" alt="gpo_oucpu" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Editer cette GPO. Trois étapes sont nécessaire pour que celle-ci fonctionne parfaitement.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;La création d'un dossier sur le poste client.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_dir.png" alt="gpo_dir" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;La copie du script et de l'agent.exe sur le poste client.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_fic.png" alt="gpo_fic" /&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;L'exécution d'un script au démarrage du poste client :&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;cd c:\agent_rmm
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;agent_rmm.bat
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;img data-recalc-dims="1" decoding="async" src="gpo_start.png" alt="gpo_start" /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Patienter ou forcer l'application de la nouvelle GPO :&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-powershell" data-lang="powershell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;gpupdate /force
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Un modèle de GPO importable dans un domaine est disponible : &lt;a href="GPO-Deploiement_agent_TacticalRMM.zip" title="GPO-Deploiement_agent_TacticalRMM"&gt;ICI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="arguments-optionnels"&gt;&lt;a href="#arguments-optionnels" class="header-anchor"&gt;&lt;/a&gt;Arguments optionnels
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Quelques arguments qui peuvent être utilisés dans des scripts :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-log debug&lt;/code&gt; : Affiche un log verbeux lors de l'installation de l'agent&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-silent&lt;/code&gt; : Aucun message durant l'installation de l'agent&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-proxy &amp;quot;http://proxyserver:port&amp;quot;&lt;/code&gt; : Pour utiliser un proxy&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-meshdir &amp;quot;C:\Mesh Agent&amp;quot;&lt;/code&gt; : Spécifier le chemin contenant meshagent.exe&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;-nomesh&lt;/code&gt; : N'installe pas l'agent meshcentral. Pas de take control, remote terminal, file browser&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>