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