Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 2bb8286

Browse files
author
theJasonHelmick
committed
Update to trusted hosts in Setup-Host.ps1
Kept Jeff Hicks code, but still set to * — want to explore ideas with him to automate machine names and IP addresses
1 parent 57bda5e commit 2bb8286

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Setup-Host.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if ($Trust.Value -eq "*") {
3434
Write-Host -ForegroundColor Green -Object "TrustHosts is already set to *. No changes needed"
3535
}
3636
else {
37-
$add = 'DC,S*,Client*,192.168.3.'
37+
$add = '*' # Jeffs idea - 'DC,S*,Client*,192.168.3.' - need to automate this, not hard code
3838
Write-Host -ForegroundColor Cyan -Object "Adding $add to TrustedHosts"
3939
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value $add -Concatenate -force
4040
}

0 commit comments

Comments
 (0)