
Enterprise import tool
09 - 06 - 2016
How to setup HyperV 2012r2 Server.
31 - 08 - 2016This historical guide explains how to create a Hyper-V 2012 R2 OS template for SolidCP. Windows Server 2012 R2 is out of support, so use these version-specific steps only when maintaining an existing legacy deployment.
Historical and unsupported: Microsoft ended Windows Server 2012 R2 extended support on 11 October 2023; the final Extended Security Update year ended on 14 October 2026. Do not use this guide to build new production systems. See Microsoft’s Windows Server 2012 R2 lifecycle dates.
The original 2016 examples also disable password complexity, enable remote access, and put the administrator password in a plaintext answer-file field. Do not copy those settings unchanged. Protect answer files, restrict management access, use a current security policy, and test any legacy image in an isolated environment.
Prerequisites for a Hyper-V 2012 R2 OS template
- A Hyper-V host is installed and running.
- SolidCP Portal, Enterprise and Server are configured, and the Hyper-V host has been added.
- The historical guide assumes the Hyper-V 2012 provider is not configured yet. Review the archived Hyper-V 2012 R2 provider settings for context.
The article also mentions Windows Server 2008 R2, but that release is unsupported as well. These instructions and answer files are not a compatibility guide for other Windows Server versions.
Build the master virtual machine
Create a master VM in Hyper-V Manager to install the operating system, updates and software required by the template. The source naming pattern is Master - [installed applications]; its example is Master - Win Server 2012R2 DC.
- Store the master files in a dedicated template location on the host.
- Keep the virtual disk as small as practical. The historical SolidCP provider could expand it during deployment but could not shrink it.
- Install only the operating system, updates and applications required for the image. Verify licensing and compatibility for the exact release and host.
Prepare the guest operating system
The 2016 guide enables Remote Desktop and suggests disabling Network Level Authentication. Do not expose RDP to untrusted networks or disable NLA without a documented compatibility requirement. Restrict administrative access to a protected management network.
The source also recommends setting password history, minimum age and maximum age to zero, choosing a minimum length, and disabling password complexity. Treat those values as historical, not as a security baseline. Keep complexity enabled, set strong password length and history, apply your organisation’s account-age policy, and leave reversible password encryption disabled. Ensure any SolidCP password policy is consistent with the guest policy.
Install the legacy SolidCP VMConfig tool
The historical VMConfig utility let SolidCP change the VM name, administrator password and network settings, and display live statistics. Confirm that the tool is supported by the exact SolidCP version before installing it.
- Obtain the VMConfig package from the SolidCP Downloads page under Tools, and verify that the package is from a trusted source.
- Extract the files under
C:\Program Files\and name the folderVMConfig. - Inspect the executable’s publisher and file integrity before unblocking or running it.
- Open an elevated Command Prompt, change to the installation directory, and run the installer:
cd /d "C:\Program Files\VMConfig"
install.batVerify that the SolidCP VM Configuration service appears in Windows Services. Do not assume that this legacy utility works with current SolidCP or FuseCP builds.
Back up the virtual disk before Sysprep
Shut down the guest cleanly and make a separate copy of the VHD or VHDX before generalising it. The original guide warns that a Hyper-V checkpoint is not a substitute for this pre-Sysprep copy.
Prepare the Sysprep answer files
The original procedure used Windows System Image Manager from the Windows Automated Installation Kit to create an answer file for the customer environment. Use the Microsoft deployment tools and answer-file schema that match the operating system being maintained.
The old article linked to a SolidCP Sysprep archive over HTTP. That link does not provide transport integrity; do not download executable files from it. The first historical answer-file example below has been retained for reference, with its product-key value replaced by a placeholder. It contains SolidCP template variables for computer identity, network configuration and the administrator password; none of those values should be treated as ready for production.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<!-- Template variables -->
<ad:set name="architecture" value="amd64" /> <!-- "x86" for 32-bit OS editions and "amd64" for 64-bit OS editions -->
<settings pass="generalize">
<component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
</component>
<component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-IE-ESC" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<IEHardenAdmin>false</IEHardenAdmin>
<IEHardenUser>false</IEHardenUser>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ComputerName>#vm.Hostname.ToUpper()#</ComputerName>
<RegisteredOwner>#user.FirstName# #user.LastName#</RegisteredOwner>
<RegisteredOrganization>#user.CompanyName#</RegisteredOrganization>
<TimeZone>W. Europe Standard Time</TimeZone>
<ProductKey>REPLACE_WITH_VALID_KEY_OR_AVMA_CONFIGURATION</ProductKey>
</component>
<component name="Microsoft-Windows-TCPIP" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Interfaces>
<!-- External network -->
<ad:if test="#isnotempty(external_nic.MacAddress)#">
<Interface wcm:action="add">
<Identifier>#external_nic.MacAddress#</Identifier>
<Ipv4Settings>
<DhcpEnabled>#external_nic.IsDHCP.ToString().ToLower()#</DhcpEnabled>
</Ipv4Settings>
<ad:if test="#not(external_nic.IsDHCP)#">
<UnicastIpAddresses>
<ad:foreach collection="#external_nic.IPAddresses#" var="ip" index="i">
<IpAddress wcm:action="add" wcm:keyValue="#i#">#ip.IPAddress#/#ip.SubnetMaskCidr#</IpAddress>
</ad:foreach>
</UnicastIpAddresses>
</ad:if>
<ad:if test="#isnotempty(external_nic.DefaultGateway)#">
<Routes>
<Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>#external_nic.DefaultGateway#</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</ad:if>
</Interface>
</ad:if>
<!-- Management network -->
<ad:if test="#isnotempty(management_nic.MacAddress)#">
<Interface wcm:action="add">
<Identifier>#management_nic.MacAddress#</Identifier>
<Ipv4Settings>
<DhcpEnabled>#management_nic.IsDHCP.ToString().ToLower()#</DhcpEnabled>
</Ipv4Settings>
<ad:if test="#not(management_nic.IsDHCP)#">
<UnicastIpAddresses>
<ad:foreach collection="#management_nic.IPAddresses#" var="ip" index="i">
<IpAddress wcm:action="add" wcm:keyValue="#i#">#ip.IPAddress#/#ip.SubnetMaskCidr#</IpAddress>
</ad:foreach>
</UnicastIpAddresses>
</ad:if>
<ad:if test="#isnotempty(management_nic.DefaultGateway)#">
<Routes>
<Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>#management_nic.DefaultGateway#</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</ad:if>
</Interface>
</ad:if>
<!-- Private network -->
<ad:if test="#isnotempty(private_nic.MacAddress)#">
<Interface wcm:action="add">
<Identifier>#private_nic.MacAddress#</Identifier>
<Ipv4Settings>
<DhcpEnabled>#private_nic.IsDHCP.ToString().ToLower()#</DhcpEnabled>
</Ipv4Settings>
<ad:if test="#not(private_nic.IsDHCP)#">
<UnicastIpAddresses>
<ad:foreach collection="#private_nic.IPAddresses#" var="ip" index="i">
<IpAddress wcm:action="add" wcm:keyValue="#i#">#ip.IPAddress#/#ip.SubnetMaskCidr#</IpAddress>
</ad:foreach>
</UnicastIpAddresses>
</ad:if>
<ad:if test="#isnotempty(private_nic.DefaultGateway)#">
<Routes>
<Route wcm:action="add">
<Identifier>0</Identifier>
<Prefix>0.0.0.0/0</Prefix>
<NextHopAddress>#private_nic.DefaultGateway#</NextHopAddress>
<Metric>20</Metric>
</Route>
</Routes>
</ad:if>
</Interface>
</ad:if>
</Interfaces>
</component>
<component name="Microsoft-Windows-DNS-Client" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DNSDomain>#vm.Domain#</DNSDomain>
<Interfaces>
<!-- External network DNS settings -->
<ad:if test="#isnotempty(external_nic.MacAddress) and (isnotempty(external_nic.PreferredNameServer) or isnotempty(external_nic.AlternateNameServer))#">
<Interface wcm:action="add">
<Identifier>#external_nic.MacAddress#</Identifier>
<DNSServerSearchOrder>
<ad:if test="#isnotempty(external_nic.PreferredNameServer)#">
<IpAddress wcm:action="add" wcm:keyValue="1">#external_nic.PreferredNameServer#</IpAddress>
</ad:if>
<ad:if test="#isnotempty(external_nic.AlternateNameServer)#">
<IpAddress wcm:action="add" wcm:keyValue="2">#external_nic.AlternateNameServer#</IpAddress>
</ad:if>
</DNSServerSearchOrder>
</Interface>
</ad:if>
<!-- Management network DNS settings -->
<ad:if test="#isnotempty(management_nic.MacAddress) and (isnotempty(management_nic.PreferredNameServer) or isnotempty(management_nic.AlternateNameServer))#">
<Interface wcm:action="add">
<Identifier>#management_nic.MacAddress#</Identifier>
<DNSServerSearchOrder>
<ad:if test="#isnotempty(management_nic.PreferredNameServer)#">
<IpAddress wcm:action="add" wcm:keyValue="1">#management_nic.PreferredNameServer#</IpAddress>
</ad:if>
<ad:if test="#isnotempty(management_nic.AlternateNameServer)#">
<IpAddress wcm:action="add" wcm:keyValue="2">#management_nic.AlternateNameServer#</IpAddress>
</ad:if>
</DNSServerSearchOrder>
</Interface>
</ad:if>
<!-- Private network DNS settings -->
<ad:if test="#isnotempty(private_nic.MacAddress) and (isnotempty(private_nic.PreferredNameServer) or isnotempty(private_nic.AlternateNameServer))#">
<Interface wcm:action="add">
<Identifier>#private_nic.MacAddress#</Identifier>
<DNSServerSearchOrder>
<ad:if test="#isnotempty(private_nic.PreferredNameServer)#">
<IpAddress wcm:action="add" wcm:keyValue="1">#private_nic.PreferredNameServer#</IpAddress>
</ad:if>
<ad:if test="#isnotempty(private_nic.AlternateNameServer)#">
<IpAddress wcm:action="add" wcm:keyValue="2">#private_nic.AlternateNameServer#</IpAddress>
</ad:if>
</DNSServerSearchOrder>
</Interface>
</ad:if>
</Interfaces>
</component>
<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fDenyTSConnections>false</fDenyTSConnections>
</component>
<component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FirewallGroups>
<FirewallGroup wcm:action="add" wcm:keyValue="EnableRemoteDesktop">
<Active>true</Active>
<Group>Remote Desktop</Group>
<Profile>all</Profile>
</FirewallGroup>
<FirewallGroup wcm:action="add" wcm:keyValue="EnableRemoteDesktopDE">
<Active>true</Active>
<Group>Remotedesktop</Group>
<Profile>all</Profile>
</FirewallGroup>
</FirewallGroups>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-International-Core" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="#architecture#" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<ProtectYourPC>1</ProtectYourPC>
<NetworkLocation>Work</NetworkLocation>
</OOBE>
<UserAccounts>
<!-- Administrator account password -->
<AdministratorPassword>
<Value>#vm.AdministratorPassword#</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
</UserAccounts>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:c:/install_windows server 2012 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>The source also included a shorter answer file named unattend.xml. Its catalog path is an example from the original authoring system and must be replaced with a valid catalog for your image.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="generalize">
<component name="Microsoft-Windows-ServerManager-SvrMgrNc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon>
</component>
<component name="Microsoft-Windows-OutOfBoxExperience" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon>
</component>
</settings>
<cpi:offlineImage cpi:source="catalog:c:/install_windows server 2012 r2 serverdatacenter.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>The full example sets PlainText to true for the administrator password because Windows Setup reads the value from the answer file. This can expose the password in the file and related setup locations. Restrict access, use a unique secret, and remove answer files from the deployed image after setup.
Generalise the image and finish the template
Before running Sysprep, confirm that required software is installed, VMConfig is configured, and temporary network settings are reset as intended. The original command was:
cd /d "%WINDIR%\System32\Sysprep"
sysprep /generalize /oobe /shutdown /unattend:unattend.xmlAfter the VM shuts down, do not start it again from the master image. Mount the VHD or VHDX, replace the Sysprep answer file with the customer deployment answer file, then edit and compact the virtual disk in Hyper-V Manager. Validate the full process on a disposable copy before using the image.
Register the OS template in SolidCP
The historical SolidCP OS Templates screen used these fields. Names and behaviour can differ by provider version, so confirm them in the matching release before saving a template.
| Field | Historical guidance |
|---|---|
| Name | Use a clear name visible to administrators and customers. |
| File name | Enter the VHD or VHDX file name, for example Win2012r2DC.vhdx. |
| Volume index to expand | The source usually used 1 and noted some Windows Server 2016 images used 0. Verify the index in the target image. |
| Sysprep files | The source path was \Windows\System32\Sysprep\unattend.xml. |
| Use legacy adapter | The source left this unchecked. |
| Can set a computer name | The source enabled this option. |
| Can set an administrator password | The source enabled this option. Use a unique, protected secret. |
| Can set IP addresses | The source enabled this option. |
Rename the built-in administrator account (legacy method)
The archived article used a setupcomplete.cmd script to rename the built-in Administrator account and remove answer files. Account renaming is not a replacement for strong credentials, least privilege or network controls. WMIC is a legacy utility; test this method only on the matching Windows release and confirm SolidCP can still set the intended account password.
wmic useraccount where name='Administrator' call rename name='Sysadmin'
if exist "%WINDIR%\System32\Sysprep\unattend.xml" del /q /f "%WINDIR%\System32\Sysprep\unattend.xml"
if exist "%WINDIR%\Panther\unattend.xml" del /q /f "%WINDIR%\Panther\unattend.xml"The original script belongs in \Windows\Setup\Scripts\setupcomplete.cmd. Replace Sysadmin with the name required by your environment, and verify the resulting image before making it available to customers.
Related SolidCP documentation
- Review the archived Hyper-V 2012 R2 provider configuration before maintaining an existing host.
- Check the historical SolidCP system requirements and the archived provider list; neither is a current compatibility guarantee.

