Sha256: f542123bd24826330efa442d3abc64b4a5e3526aa926ecddf3824e4818f238bc
Contents?: true
Size: 364 Bytes
Versions: 58
Compression:
Stored size: 364 Bytes
Contents
Param( [string]$hostname ) $trustedHosts = ( Get-Item "wsman:\localhost\client\trustedhosts").Value.Replace( $hostname, '') $trustedHosts = $trustedHosts.Replace(",,","") if($trustedHosts.EndsWith(",")){ $trustedHosts = $trustedHosts.Substring(0,$trustedHosts.length-1) } Set-Item "wsman:\localhost\client\trustedhosts" -Value $trustedHosts -Force
Version data entries
58 entries across 54 versions & 6 rubygems