1

The scenario is this: there is about 40 workstations that get regular backups and I would like to convert them to VMs and send them off to a disaster recovery site and then add them to the VCenter server cluster I've got there. Everything works great up until the point of putting them back on the domain...

Using PowerShell 2 makes it rather simple to script removing a computer from the domain and then after having it restart, adding it back again. The problem comes when trying to apply the script to the computers, especially multiple ones. So is there a way to mass apply a PS script to dozens of VMs? Or am I thinking of this wrongly?

2
  • 1
    Powershell 2.0 is designed for remote administration of many machines. Where are you hung up? It seems like there shouldn't be a problem.
    – MDMarra
    Oct 12, 2010 at 21:25
  • Well I suppose you have a point. I was thinking more from a VMWare support standpoint. But I suppose I could just run the script from a computer already on the domain... I'll approach it from that direction then. Thanks!
    – Nori
    Oct 12, 2010 at 21:31

1 Answer 1

1

Yep. Invoke-vmscript in PowerCLI will do that for you. In fact, it looks like someone wrote something already here!

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .