network configuration recipes

See also: all the recipes and the intro See also how to configure CredSSP with PowerShell. #  DHCP server In a VM must use the Legacy adapter, or it would refuse to get a static address, and DHCP will refuse to attach to interfaces with dynamic address. # how to shut up the DHCP authorization…

0

Setting up the CredSSP access for multi-hop

I’ve previously shown the way to set  up the multi-hop access with RunAs, but nowadays the PowerShell team had added the great commands that make the CredSSP setup easy, and it became easier to use than RunAs. Here is how to do it. On the server side do: $null = Enable-WSManCredSSP -Role Server -Force On…

1

PowerShell remoting & DNS

I’ve noticed a strange thing: the PowerShell remoting works much faster if you use the remote computer’s IP address for connection rather than a DNS name. Well, not everything is faster but the re-connections. PowerShell uses the HTTP (or HTTPS) protocol to send the data. This connection is cached between the successive commands but if…

3

Certificates, part4: PowerShell/WinRM remoting over HTTPS, and cert copying

To do the PowerShell remoting over HTTPS, the WinRM on the remote machine needs a certificate. If you join the machine to a domain, this certificate might be generated automatically, I haven’t tried. But for the non-domain-joined machines a self-signed certificate can be used instead. I’m going to create the cert on my work machine and…

0

Certificates, part 1: what do they mean

I’ve recently learned about certificates on Windows, and I must say collecting the information about them wasn’t that easy. So I want to write down the summary while it’s fresh in my mind. It’s not the most exhaustive treatment but I hope that it’s a good quick introduction. First, what is a certificate? I hope…

3

Another solution to multi-hop PowerShell remoting

I’ve discovered another solutions for the problem of two hops in the PowerShell remoting, that I haven’t seen anywhere in my searches on the Internet. I’m sure that some people know about it but it doesn’t seem to be widely known. First, what’s the problem: If you create a PowerShell remote session to another computer, and then…

4