From d2bf5e322f1e758a7fa771c211978351a9b4b538 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Tue, 22 Oct 2024 14:22:35 +0200 Subject: [PATCH] docs/powershell.md aktualisiert --- docs/powershell.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/powershell.md b/docs/powershell.md index b25a7ce..5c5b233 100644 --- a/docs/powershell.md +++ b/docs/powershell.md @@ -32,3 +32,16 @@ Set-DnsClientServerAddress -InterfaceIndex '3' -ServerAddresses ('172.16.7.11',' ```ruby Rename-Computer -NewName 'DC01' -Restart -Force ``` + +## Remote Access +Read TrustedHosts +> Command: Get-Item WSMan:localhost\client\TrustedHosts +```ruby +Get-Item WSMan:localhost\client\TrustedHosts +``` +Set TrustedHost +> Command: Set-Item WSMan:localhost\client\TrustedHosts –Value '[IP bzw. hostname]' +```ruby +Set-Item WSMan:localhost\client\TrustedHosts –Value '172.16.7.254' +``` +