1. PowerShell settings
a.set-wsmanquickconfig
b.set-item wsman:localhost\client\trustedhosts -value *
c.Set-PSSessionConfiguration Microsoft.Powershell –ShowSecurityDescriptorUI
d.Enter-PSSession 192.168.1.2 -credential user
2. Powershell set-wsmanquickconfig failed with "WinRM firewall exception create rulue"
$nlm = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))
$connections = $nlm.getnetworkconnections()
$connections |foreach {
if ($_.getnetwork().getcategory() -eq 0)
{
$_.getnetwork().setcategory(1)
}
}