diff --git a/docs/powershell.md b/docs/powershell.md index f11075d..6a14d75 100644 --- a/docs/powershell.md +++ b/docs/powershell.md @@ -36,20 +36,18 @@ Get-NetIPInterface -AddressFamily 'IPv6' -## IPv6-abschalten +## IPv6
-IPv6-abschalten +IPv6-an/abschalten Schaltet IPv6 komplett ab! -> Command: Disable-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6 +> Command: [Disable/Enable]-NetAdapterBinding -Name [Name der Netzwerkkarte] -ComponentID ms_tcpip6 ```ruby Disable-NetAdapterBinding -Name 'eth0' -ComponentID ms_tcpip6 ``` -
- -## IPv6-DHCP-abschalten +### IPv6-DHCP-abschalten
IPv6-DHCP-abschalten @@ -64,6 +62,7 @@ Set-NetIPInterface -InterfaceAlias 'Inside' -AddressFamily 'IPv6' -Dhcp Disabled Set-NetIPInterface -InterfaceIndex '3' -AddressFamily 'IPv6' -Dhcp Disabled ``` +
## Set-Networkcard-to-private @@ -79,6 +78,14 @@ Set-NetConnectionProfile -InterfaceIndex '3' -NetworkCategory 'Private' New-NetRoute -DestinationPrefix '172.16.0.0/20' -InterfaceIndex '7' -NextHop '172.16.X.254' -RouteMetric '1' ``` +## Change-Serverrolle-im-DHCP +> Command: Move-ADDirectoryServerOperationMasterRole -Identity [Ziel-DC] -OperationMasterRole [Role] + +> Command: SchemaMaster,RIDMaster,InfrastructureMaster,DomainNamingMaster,PDCEmulator +```ruby +Move-ADDirectoryServerOperationMasterRole -Identity 'DC01' -OperationMasterRole PDCEmulator +``` + ## Remote-Access Read TrustedHosts ```ps