54 lines
941 B
Markdown
54 lines
941 B
Markdown
# Active Directory
|
|
|
|
## Konfiguration
|
|
|
|
### Powershell - Local Password
|
|
<details>
|
|
|
|
````ruby
|
|
Get-LocalUser -Name "Administrator" | Set-LocalUser -Password (ConvertTo-SecureString -AsPlainText "Passw0rd" -Force)
|
|
````
|
|
|
|
</details>
|
|
|
|
### Powershell - Netzwerkkarte auf Private setzen
|
|
<details>
|
|
|
|
````ruby
|
|
Get-NetConnectionProfile
|
|
````
|
|
|
|
````ruby
|
|
Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory "Private"
|
|
````
|
|
|
|
#### Firewall abschalten
|
|
<details>
|
|
|
|
````bash
|
|
netsh advfirewall set allprofiles state off
|
|
````
|
|
</details>
|
|
|
|
</details>
|
|
|
|
### Powershell - IPv6 de-/aktivieren
|
|
<details>
|
|
|
|
````ruby
|
|
Disable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
|
|
````
|
|
|
|
````ruby
|
|
Enable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6
|
|
````
|
|
|
|
</details>
|
|
|
|
## Powershell - Aufnahme in die Domäne
|
|
<details>
|
|
|
|
````ruby
|
|
Add-Computer -Domain "podxx.spielwiese.intern" -Restart -Force
|
|
````
|
|
</details> |