sysadmin:windows:changer_profil_connexion_ethernet
Différences
Ci-dessous, les différences entre deux révisions de la page.
| |
| sysadmin:windows:changer_profil_connexion_ethernet [2023/03/24 16:17] – créée yoann | sysadmin:windows:changer_profil_connexion_ethernet [2023/07/24 09:03] (Version actuelle) – yoann |
|---|
| {{tag>sysadmin netadmin windows réseau profil}} | {{tag>sysadmin netadmin windows réseau profil}} |
| |
| :TODO: | :TODO_DOCUPDATE: |
| |
| ====== Modifier le type de profil réseau ====== | ====== Modifier le type de profil réseau ====== |
| |
| <code> | Après redémarrage, le profil de connexion réseau est parfois modifié. Il peut par exemple passer de "private" à "public" et ainsi limiter les interactions du poste sur le réseau. |
| | |
| | <code powershell> |
| | # Afficher le profil associé à toutes les interfaces |
| Get-NetConnectionProfile | Get-NetConnectionProfile |
| |
| | # Définir le profil private pour l'interface NetworName |
| Set-NetConnectionProfile -Name "NetworkName" -NetworkCategory Private | Set-NetConnectionProfile -Name "NetworkName" -NetworkCategory Private |
| |
| </code> | </code> |
| |
| | |
| | <note> |
| | Sur le contrôleur de domaine, le profil "DomainAuthenticated" associé à l'interface LAN peut parfois passer à "private" ou "public" si l'interface démarre un peu avant que les services AD DS soient opérationnels. Le plus simple et de stopper/redémarre l'interface. |
| | </note> |
| | |
| | <code powershell> |
| | # Depuis une connexion distante, le script suivant permet de redémarre l'interface |
| | Disable-NetAdapter -Name "Ethernet" -Confirm:$false ; Start-Sleep -Seconds 5 ; Enable-NetAdapter -Name "Ethernet" -Confirm:$false ; |
| | </code> |
| |
| ===== Références ===== | ===== Références ===== |
| |
| * https://www.digitalcitizen.life/how-set-your-networks-location-private-or-public-windows-10/ | * https://www.digitalcitizen.life/how-set-your-networks-location-private-or-public-windows-10/ |
sysadmin/windows/changer_profil_connexion_ethernet.1679674658.txt.gz · Dernière modification : 2023/03/24 16:17 de yoann