From 30c0007dbaf983988904c17ef4de53c6415236dd Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Thu, 24 Oct 2024 10:01:42 +0200 Subject: [PATCH] docs/powershell.md aktualisiert --- docs/powershell.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/powershell.md b/docs/powershell.md index 2f8c073..00b15ff 100644 --- a/docs/powershell.md +++ b/docs/powershell.md @@ -79,7 +79,7 @@ Set-NetIPInterface -InterfaceAlias 'Inside' -AddressFamily 'IPv6' -Dhcp Disabled Set-NetIPInterface -InterfaceIndex '3' -AddressFamily 'IPv6' -Dhcp Disabled ``` -## Set-Networkcard-to-private +##### Set-Networkcard-to-private > Set-NetConnectionProfile -InterfaceIndex [Index der Netzwerkkarte] -NetworkCategory [Public/Private/Domain] ```ruby @@ -95,14 +95,19 @@ New-NetRoute -DestinationPrefix '172.16.0.0/20' -InterfaceIndex '7' -NextHop '17 ``` ## Remote-Access + +
+ +Expand + Read TrustedHosts ```ps Get-Item WSMan:localhost\client\TrustedHosts ``` Set TrustedHost -> Command: Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname]' +> Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname]' -> Command: Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname],[IP bzw. hostname]' +> Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname],[IP bzw. hostname]' ```ruby Set-Item WSMan:localhost\client\TrustedHosts –Value '172.16.7.254' ``` @@ -123,6 +128,8 @@ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –Command {[ Invoke-Command –ComputerName [IP bzw. FQDN] –Credential [User] –ScriptBlock {[Befehle]} ``` +
+ ## AD Set-Serverroll, Join-Domain, Add-User