VMware template server 2012 best practice

Virtual Hardware (VMX) Template configuration




4 GB


Number of virtual sockets: 1
Number of cores per socket: 2

VMCI device


SCSI Controller 0
Hard disk 1

50 GB lazy zeroed or

50 GB Thin (but performance is lower) or

50 GB eager zeroed (performance is best, but most storage waste)

CD/DVD Drive 1

Client Device

Floppy Drive 1


Network Adapter 1

VMXNET3, network: VM Network with DHCP (for joining domain)

General Options

OS: Microsoft Windows Server 2012 R2 (64-bit)




Microsoft Windows Server 2012 R2 template configuration

– Always install the latest VMware Tools

Disable IPv6



– Change the CD/DVD Drive 1 from drive letter D:\ to Z:\


Install VMware display driver: VMware SVGA 3D (Microsoft Corporation – WDDM)


Driver located: C:\Program Files\Common Files\VMware\Drivers\wddm_video\

Enable Remote Desktop Protocol: Allow connections from computers running Remote Desktop with Network Level Authentication (recommended)


– Computer Name: change full computer name to W2012R2TMPL


– Windows Updates: Install all available Windows Updates



– (Optional; security risk!!) Disable UAC: Never notify when: Programs try to install software or make changes to my computer + I make changes to Windows setting


– Notification bar: Always show all icons and notifications on the taskbar



– Internet Explorer: Turn Internet Explorer Enhanced Security off for Administrators. Leave it On for users.

1. On the Windows Server 2012 server desktop, locate and start the Server Manager.

2. Select Local Server (The server you are currently on and the one that needs IE ESC turned off)



– Account: Select for local Administrator account: Password never expires


Pagefile:  Restrict pagefile size to max 4GB

Performance Options: Under the System Properties>performance opton>Visual Effects tab, select Adjust for best performance






Firewall: Turn the Windows Firewall off





Indexing: Go to the properties of the C drive and uncheck the option to allow files to be indexed




Hybernation: Go to the cmd prompt and type powercfg.exe -h off to disable hibernation. This command also deletes the hiberfile.sys from C:\





– Power Option: customize power plan to: High performance


– Feature: install features

Bginfo :Installeer BGinfo

Download bginfo from sysinternals

You simply place the unzipped Bginfo.exe to c:\bginfo folder for example

Open bginfo.exe and create an template file

from File menu do a Save As to save the *.bgi file to c:\bginfo.

Then you can create a simple batch file, which will launch that *.bgi file on logon

@echo off
CALL “C:\bginfo\bginfo.exe” “C:\bginfo\YOUR.bgi” /timer:0 /nolicprompt

Place all the batchfile in c:\Bginfo

Files Needed there are:

  • Bginfo.exe
  • YOUR.bgi (the personalized config)
  • file.bat (your script)

Modify to batch file to match your structure and naming convention.

Copy a shortcut to the file.bat to:

c:Documents and Settings\All Users\Start Menu\Programs\Startup

That’s the location for startup programs for all users. That’s all.

BGinfo in Domain environment via GPO

Bginfo when used in domain environment, it’s certainly usefull to configure a GPO whcih calls the BAT script when user logs on. Simply create a GPO or modify some existing GPO if you like. The level where you need to configure that is:

User Configuration > Policies > Windows Settings > Scripts (Logon/Logoff) and then double-click on Logon and browse via network to the batch file.

 Finalize Windows 2012R2 template procedure

Clear Microsoft Event Logs: System, Security, Application
Defragment the C drive
Shutdown Windows 2012R2 Template server


Customization Specifications Manager

– Computer Name: Use virtual machine name. This because I use sometimes scripts to deploy multiple VM’s with PowerCLI



– Network: configure default network settings with static





– Workgroup or Domain: configure Windows Server Domain



Operation System Options: Always select: Generate New Security ID (SID)



Geplaatst in VMware, Windows Server.