Last week I discussed enabling a connection and running a single command on a remote computer using powershell. In this post I’m going to continue that dialogue by discussing running a scriptblock on a remote computer.
Pretend you’ve got 5 identical windows 2003 servers (or any server for that matter – cent os, windows 2003, 2008, and mac os even!) to setup in one work shift. Why break your back trying to install them one at a time on top of doing all the updates? You can just do one base install and ‘ghost’ the drive. “That’s expensive”, you might proclaim! Not so – in fact, I’ll let you in on a little secret – Gparted. Why spend $700 on cloning software when you can just do the same job for free? Yeah, free! Free as the air you’re breathing right now (unless you’re in space, reading from the ocean, or maybe reading from Mt. Everest).