30 C
Dubai
Friday, April 19, 2024

Vmware Windows 2012 R2 template configuration–Recommended

image

  • Floppy Drive Removed
  • Memory 4GB
  • Hard Disk 40 GB – Keeping it low is good as you cannot reduce thin provisioned disk size.

Make sure Hot Add is enabled

  • Enable Memory Hot Add for this Virtual Machine
  • Enable CPU Hot Add only for this Virtual Machine

image

  • Check and Upgrade Tools during Power Cycling

image

  • Check Enable Logging

image

Get to Boot Screen to do some configurations –

image

  • Boot-Time Diagnostic Screen to Enabled

image

Change Boot Order to  –

  • Hard Drive
  • Removable Devices
  • CD-ROM Drive
  • Network boot

Use + to Toggle or Shift ` +

image

Advanced –> I/O Device Configuration Serial Ports/Parallel Ports/Floppy Disabled.

image

  • Install VMware Tools

image

Disabled IPv6

image

Allow Remote Desktop –

image

  • Set Time to Display List of Operating Systems to 5 Seconds
  • Set Time to Display recovery Options when Needed to 5 Seconds

image

Change Machine Name –

image

Make sure Windows is up to date –

  • As .NET 4.6.1 is not supported for Some Applications like Exchange. Not Installing it at this point of time (Optional).

image

Open PowerShell Run as Administrator and Cleanup C:\Windows\WinSxS folder which contains all the Updates which is almost 8GB

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

This is a great command added with Windows 8.1 and Windows Server 2012 R2.  Essentially, it’s the mother of all commands. It cleanups and removes all the old superseded stuff from every component in the component store.

image

Change DVD ROM Drive Letter to Z: in Disk Management –

image

Control Panel – Notification Area Icons – Check Always Show All Icons and Notifications on the Taskbar

image

Power Options Set to High Performance

image

  • Proper Time Zone Updated in Server Manager
  • IE Enhance Security Configuration is set of OFF for Administrators only.

image

Start Run – Lusrmgr.msc – Local Administrator Account – Password Never Expires

image

Check – File Name Extensions

Windows Explorer – View –

image

Change Appropriate Date Format –

image

 

Optional – If you have Mcafee Agent Installed

cd “C:\Program Files\McAfee\Agent”

maconfig.exe –enforce –noguid

image

Optional – if you have Windows Update Services in the Environment – WSUS Client registration will fail if you don’t do below

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate

Delete SusClientId

Delete SusClientIdValidation

image

Download sdelete https://technet.microsoft.com/en-us/sysinternals/bb897443.aspx

sdelete64.exe –z C:

image

Uncheck below on Taskbar and navigation properties –

  • Store Recently Opened Programs
  • Store and display recently

image

image

  • Delete Temporary Profile if created (C:\users\
  • IE Full Reset (inetcpl.cpl)

image

Clear All Event Logs

Get-EventLog -List | foreach{Clear-EventLog -LogName $_.log}

image

Microsoft Recommendation –

  • Do not Disable User Access Control (UAC)
  • Do not Disable Windows Firewall (Enable ICMPv4In alone – It will be easy while provisioning)

 

  • Clear the IP from the NIC (Network Card)
  • Shutdown Windows 2012 R2 Template server

 

Now Shrink the VMDK File –

putty to the host – Browse to the VMDK file of the VM. ( This doesn’t work on a VSAN Environment)

vmkfstools –K Template.vmk

image

 

    • Convert to Template

image

Deploy Virtual Machine From this Template –

image

Customization Specifications Manager to Join Domain Automatically –

image

image

Enter Local Administrator Password –

image

Network Settings

image

image

Enter Domain Information –

image

  • Check Generate New Security ID (SID)

image

  • Customize using an Existing customization Specification

image

Deploy Virtual Machine using Template –

image

image

Machine Joined Automatically –

image

Using PowerCLI – Import Multiple Virtual Machines using CSV

Satheshwaran Manoharan
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

6 COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?