From 07915fa68d975496ef8a6f9f9a13c1dc5c865d84 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Tue, 22 Oct 2024 14:11:10 +0200 Subject: [PATCH] =?UTF-8?q?POWERSHELL.md=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- POWERSHELL.md | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 POWERSHELL.md diff --git a/POWERSHELL.md b/POWERSHELL.md deleted file mode 100644 index b25a7ce..0000000 --- a/POWERSHELL.md +++ /dev/null @@ -1,34 +0,0 @@ -# Powershell -## IPv6 DHCP abschalten -> Command: Get-NetIPInterface -AddressFamily [IPv6/IPv4] -```ruby -Get-NetIPInterface -AddressFamily 'IPv6' -``` -> Command: Set-NetIPInterface -InterfaceAlias [Name der Netzwerkkarte] -AddressFamily [IPv4/IPv6] -Dhcp Disabled -```ruby -Set-NetIPInterface -InterfaceAlias 'Inside' -AddressFamily 'IPv6' -Dhcp Disabled -``` -> Command: Set-NetIPInterface -InterfaceIndex [Index der Netzwerkkarte] -AddressFamily [IPv4/IPv6] -Dhcp Disabled -```ruby -Set-NetIPInterface -InterfaceIndex '3' -AddressFamily 'IPv6' -Dhcp Disabled -``` -## Add-Route -> Command: New-NetRoute -DestinationPrefix [Subnet] -InterfaceIndex [Index der Netzwerkkarte] -NextHop [IP-Adress] -RouteMetric [Metric] -```ruby -New-NetRoute -DestinationPrefix '172.16.0.0/20' -InterfaceIndex '7' -NextHop '172.16.X.254' -RouteMetric '1' -``` -## IP-Config -> Command: New-NetIPAddress -InterfaceIndex [Index des Interfaces] -AddressFamily [IPv4/IPv6] -IPAddress [IP-Adress] -PrefixLength [SNM / Prefix] -DefaultGateway [IP-Adresse des Default-Gateway] -```ruby -New-NetIPAddress -InterfaceIndex 3 -AddressFamily IPv4 -IPAddress '172.16.7.100' -PrefixLength '255.255.255.0' -DefaultGateway '172.16.7.254' -``` -## DNS-Config -> Command: Set-DnsClientServerAddress -InterfaceIndex [Index des Interfaces] -ServerAddresses ("[IP-Adresse primärer DNS]","[IP-Adresse sekundärer DNS]") -```ruby -Set-DnsClientServerAddress -InterfaceIndex '3' -ServerAddresses ('172.16.7.11','172.16.7.12') -``` -## Set-Hostname -> Command: Rename-Computer -NewName [Name der Maschine] -Restart -Force -```ruby -Rename-Computer -NewName 'DC01' -Restart -Force -```