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
<details>
````ps
````ruby
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
<details>
````ps
````ruby
Get-NetConnectionProfile
````
````ps
````ruby
Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory "Private"
````
#### Firewall abschalten
<details>
````ps
````bash
netsh advfirewall set allprofiles state off
````
</details>
@@ -35,11 +35,11 @@ netsh advfirewall set allprofiles state off
### Powershell - IPv6 de-/aktivieren
<details>
````ps
````ruby
Disable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
````
````ps
````ruby
Enable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
````