Active Directory/README.md aktualisiert

This commit is contained in:
2024-11-04 11:10:18 +01:00
parent 2ef9e71fe9
commit a5bbe2ee61

View File

@@ -5,7 +5,7 @@
### Powershell - Local Password ### Powershell - Local Password
<details> <details>
````ps ````ruby
Get-LocalUser -Name "Administrator" | Set-LocalUser -Password (ConvertTo-SecureString -AsPlainText "Passw0rd" -Force) Get-LocalUser -Name "Administrator" | Set-LocalUser -Password (ConvertTo-SecureString -AsPlainText "Passw0rd" -Force)
```` ````
@@ -14,18 +14,18 @@ Get-LocalUser -Name "Administrator" | Set-LocalUser -Password (ConvertTo-SecureS
### Powershell - Netzwerkkarte auf Private setzen ### Powershell - Netzwerkkarte auf Private setzen
<details> <details>
````ps ````ruby
Get-NetConnectionProfile Get-NetConnectionProfile
```` ````
````ps ````ruby
Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory "Private" Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory "Private"
```` ````
#### Firewall abschalten #### Firewall abschalten
<details> <details>
````ps ````bash
netsh advfirewall set allprofiles state off netsh advfirewall set allprofiles state off
```` ````
</details> </details>
@@ -35,11 +35,11 @@ netsh advfirewall set allprofiles state off
### Powershell - IPv6 de-/aktivieren ### Powershell - IPv6 de-/aktivieren
<details> <details>
````ps ````ruby
Disable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6 Disable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
```` ````
````ps ````ruby
Enable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6 Enable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
```` ````