Sunday, January 20, 2013

Using CoreConfig on Windows Hyper-V Server 2012

 

Microsoft Hyper-V Server 2012 is a great opportunity to virtualize the whole IT environment for low cost (free download, free-of-charge activation – as for today).

As for core server there aren’t any window based management tools, the administrator may want to learn and exercise console and powershell commands. Alternatively, there’s an administration package named CoreConfig at codeplex: http://coreconfig.codeplex.com/

After copy to the target box one may encounter problems starting the configuration tools. The reason is based on changed command set for Windows Server 2012 and described here:

http://coreconfig.codeplex.com/discussions/397446

So, once you downloaded the content of the package to your fresh installed Hyper-V Server 2012 box, the next step is: find “oclist” string and replace it by “dism” in following files:

  • Start_CoreConfig.wsf
  • CoreConfig.ps1
  • Networking.ps1
  • Roles.ps1

After the files are changed you can start the Start_CoreConfig.wsf as usual (as on Hyper-V Server 2008 R2) – or launch powershell and start single modules.

If you get an error message

"File cannot be loaded because the execution of scripts is disabled on this system"

you’ll need to set execution policy to unrestricted with following powershell command:

Set-ExecutionPolicy Unrestricted

After the steps are done you should be able to start the configuration modules as expected:

image

Enjoy!

No comments: