Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Enable Basic Security

$
0
0

Thanks for the quick reply Dom.

The goal is to have a simple solution no real preference, my thought was configuring the client to enable Basic authentication over a non-SSL connection. On re-reading what I had put I realized I had missed forcing New-PSSession to use Basic authentication.

$computer = Get-Content -Path C:\Temp\TrimUnmap\Servers.txt
$cred = Get-Credential
$pso = New-PSSessionOption -NoEncryption
foreach ($computer1 in $computer) {
$sess = New-PSSession -ComputerName $computer1 -Credential $cred -Authentication Basic -SessionOption $pso
}

I still get the same “Unencrypted traffic is currently disabled in the client configuration.” I wonder if from what you have put that Basic authentication cannot work over non-SSL and while the client is enabled for unencrypted traffic the message really relates to unencrypted traffic not being allowed with basic authentication.


Viewing all articles
Browse latest Browse all 13067

Trending Articles