Overview

This is a group of PowerShell scripts that provide a minimal graphical interface intended to aid in common configuration tasks for Microsoft Hyper-V Server 2012 and the Core editions of Microsoft Windows Server 2012. It is built directly from the scripts in Core Config 2.0, but it is being worked on by a completely different team.

Tested Compatibility

  • Verified: Microsoft Windows Server 2012 (Core Installation)
  • Verified: Microsoft Windows Server 2012 (Complete GUI Installation)
  • Verified: Microsoft Hyper-V Server 2012
  • Not verified but should function: Microsoft Windows Server 2012 (Minimal Server Interface Installation)
  • Verified to be partially functional: Microsoft Windows 8 Professional
  • Verified to be partially functional (not recommended for this or any other Windows version prior to 8 and 2012): Microsoft Windows 7 Enterprise SP1 with Windows Management Framework 3.0

Installation

  1. From the Downloads page, acquire the ZIP or ISO distribution
  2. If you have downloaded the ZIP version, you may need to right-click on it in Windows Explorer, go to Properties, and click the "Unblock" button.
  3. Create a folder on the root of the target system. Ex: MD C:\Corefig
  4. Copy the contents of the ZIP or ISO to the newly created folder.

Uninstallation

  1. Delete the folder created in step 3 of the installation instructions.
  2. Delete the "Corefig" folder created under %ALLUSERSPROFILE% (C:\ProgramData on most systems)
  3. If you wish to reverse the PowerShell execution policy set by Corefig, open a PowerShell prompt and run the following: Set-ExecutionPolicy Restricted (note that other scripts you use may rely on a RemoteSigned policy)

Operation

This tool can only be run from the console of the system to be managed.

  1. At a command prompt, switch to the folder that you created in step 3 of the installation instructions, ex: CD /D C:\Corefig
  2. For the first run, run: CSCRIPT Start_corefig.wsf
  3. You may use the Start_corefig script on each run, but on successive runs you could use the following instead: POWERSHELL .\COREFIG.PS1

Common Problems

  • Restricted Execution Problems

    The number one most commonly reported problem is with execution errors even when the system execution policy is RemoteSigned or Unrestricted. These errors have always been sourced to the .PS1 files being marked as Blocked. Please refer to step 2 in the installation directions above. You may also use the  Unblock-File cmdlet. It is easier to unblock the ZIP file and re-extract it than to unblock each individual script file.

Last edited Jul 11, 2013 at 7:30 PM by ejsiron, version 6

Comments

jbriscoe1 Apr 14 at 8:19 PM 
In order for me to get this working, I had to follow the instructions here
http://translate.google.com/translate?hl=en&sl=ru&u=http://social.technet.microsoft.com/Forums/en-US/689f9537-3248-438f-8c54-48932aed0948/action%3FthreadDisplayName%3Dcore-configurator-20-&prev=/search%3Fq%3Dcorefig%2Bwshshell.exec%2Bthe%2Bsystem%2Bcannot%2Bfind%2Bthe%2Bfile%2Bspecified%26espv%3D210%26es_sm%3D93%26biw%3D1366%26bih%3D653

If you don't want to read through the badly translated Russian, one of the comments recommends replacing all instances of "oclist" with "dism". I guess Hyper V Server 2012 R2 doesn't recognize oclist anymore?

The error that led me to that post was "C:\Corefig\Start_Coreconfig.wsf <292, 6> WshShell.Exec: The System cannot find the file specified."

emoxam Feb 1 at 2:09 PM 
"If you have downloaded the ZIP version, you may need to right-click on it in Windows Explorer,"
Are you serious ? On hyper-v server or core edition ?

r1ch13 Jan 17 at 7:01 PM 
.

briangw,

The Licencing.ps1 file contains these lines on 1258 - 1263

switch($Type)
{
$TextStrings.Info{$pboxInfo.visible = $true}
$TextStrings.Error {$pboxError.visible = $true}
$TextStrings.Warning{$pboxWarning.visible = $true}
}

A space needs to placed between $TextStrings.Info and the curly bracket, and there needs to be a space between $TextStrings.Warning and the curly bracket like so...

switch($Type)
{
$TextStrings.Info {$pboxInfo.visible = $true}
$TextStrings.Error {$pboxError.visible = $true}
$TextStrings.Warning {$pboxWarning.visible = $true}
}

Everyone else will have this same problem in Corefig 1.1.1 unless they make these changes.

Good luck,
r1ch13

TheExpert Nov 6, 2013 at 4:40 PM 
Doesn't work correct with Microsoft Hyper-V Server 2012 R2:

1. There are no VMs listed in the Hyper-V Manager part of Corefig.
2. The Licensing section isn't working.

briangw Oct 23, 2013 at 5:30 PM 
I can confirm that Corefig 1.1 does work on Hyper-V Server 2012. Been running it for months with none of the errors you mentioned. However, just upgraded to Hyper-V Server 2012 R2 and the Licensing section seems to be broken when attempting to open it:

At C:\Corefig\licencing.ps1:1260 char:49
+ $TextStrings.Info{$pboxInfo.visible = $true}
+ ~
Missing statement block in switch statement clause.
At C:\Corefig\licencing.ps1:1262 char:56
+ $TextStrings.Warning{$pboxWarning.visible = $true }
+ ~
Missing statement block in switch statement clause.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : MissingSwitchStatementClause

mnguyenvan Jun 21, 2013 at 11:52 AM 
Managed to use the tool after meeting the restricted execution error :
Begin by :
CSCRIPT Start_corefig.wsf
as asked.
Then run PowerShell :
powershell
In PowerShell screen :
set-executionpolicy unrestricted
And last :
POWERSHELL .\COREFIG.PS1
Accept its execution by Yes
The Corefig GUI displays. For each job you click you must return into PowerShell screen to say Yes to accept the execution of the job.

solr Jun 7, 2013 at 9:04 PM 
Does not work properly on a Hyper-V Server 2012. Keep getting restricted execution errors on each click, in the GUI, even though Set_ExecutionPolicy is Unrestricted!