Sie sind auf Seite 1von 19

HOME

VMWARE

ABOUT

CONTACT

You are here: Home / Microsoft / Windows Server 2012 Unattended Installation

Windows Server 2012 Unattended Installation


July 7, 2012 by Derek Seaman Comments (71)

One of the common tasks that you may do on a regular basis is installing Windows Server 2012 and you want to automate it as much as possible. Using similar tools to those used with Windows Server 2008 R2, you can create an autounattend.xml file that you inject into the Windows Server 2012 installation ISO for a hands-free install.

The same set of instructions would also work for Windows 8 as well, but you will need to use the Windows 8 install.wim image, and also pay attention to whether yo want to automate a 32-bit or 64-bit installation. The autounattend.xml can contain configuration data for both, so only one xml file is needed. If you want to download a pre-configured autounattend.xml file, you can find it here on my Skydrive folder.

1. Download the Windows ADK (Assessment and Deployment Kit) from this link. Never mind that it says Windows 8, as it will work with Windows Server 2012 since th are the same code base. 2. Start the installation process and after a long download select the two options below (Deployment Tools and Windows Preinstallation Environment (Windows PE WinPE is technically optional, but in case you need it in the future, Id install it anyway.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

3. After the installation completes go to the Start Menu and select Windows Kits > Windows ADK > Windows System Image Manager. 4. Mount the ISO image of Windows Server 2012, go to the sources directory and copy install.wim to a local drive, such as D. 5. From the File menu click on Select Windows Image, find the install.wim you copied, then select the edition that you want to build an answer file for. I selected SERVERSTANDARD.

6. Next it will complain that a catalog cannot be found, so it will build one for you, taking a few minutes. After the catalog is built, from the file menu select New Answ File.

7. Scroll through the Components pane and select amd64_Microsoft-Windows-International-Core-WinPE-_6.2.9200.0_neutral, as shown below, right click, and add to Pass 1.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

8. In the Answer File pane click on the component, and fill in the language settings as appropriate. In this case it is configured for US English. You can find a list of th codes here. You also need to configure the SetupUILanguage too.

9. Configuring the disk partitions is tedious, but required. To do that, find amd64_Microsoft-Windows-Setup_6.2.9200.0_neutral and add it to Pass 1 as well.

10. In the Answer File pane right click DiskConfiguration and select Insert New Disk. Right click on CreatePartitions and select Insert New CreatePartition. Configure t partition as shown below. This will create a 100MB primary boot partition. Note: The default in 2008 R2 was 100MB, but in 2012 this is now 350MB. I would suggest using 350MB instead of the 100MB in the screenshot.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

11. Create a second partition, but this time set Extend to true, and dont configure a size. This will use the remainder of the disk size.

12. In the Answer File pane click on Disk and change the ID to 0 and WillWipeDisk to true.

13. Right click on ModifyPartition and select Insert New ModifyPartition. Configure the partition as shown below.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

14. Add a second ModifyPartitions and configure as shown below:

15. Drill down to the OSImage option and configure as shown below:

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

16. Right click InstallFrom and select Insert New Metadata. Configure the metadata as shown below. To determine the proper label just think back to when you opened the Windows image (step 5) and enter the image name exactly as it is listed.

17. Configure the InstallTo and use DiskID 0 and PartitionID 2.

18. Configure the UserData options as shown below.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

19. Configure the UserDataProductKey option. The key you use will vary depending on how you are going to activate it (KMS or MAK). You should use the GVLK (generic volume license key) that Microsoft publishes here if you use a KMS server, or your MAK key.

20. Add the amd64_Microsoft-Windows-Shell-Setup_6.2.9200.0_neutral component to Pass 4 specialize.

21. In the Answer File pane click on amd64_Microsoft-Windows-Shell-Setup_6.2.9200.0_neutral and configure the highlighted items below (use the same key as before). You can change the computer name, or leave it blank and it will create a random name upon installation. For a list of timezone values, click here.

22. Add the amd64_Microsoft-Windows-Shell-Setup_6.2.9200.0_neutral component to Pass 7 oobesystem. In the Answer File pane click on amd64_Microsoft-Window Shell-Setup_6.2.9200.0_neutral and configure the highlighted items below.

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

23. Normally I configure autologon for a count of 2, so my image build process goes quicker and in case I forget the administrator password I configured in the answer file I can reset it during the first two reboots. You will also need to configure the password. Enter a password, and when the answer file is written it will be encrypted.

24. Under UserAccounts, configure the AdministratorPassword with the same password you entered for the AutoLogon information. 25. Save the file as autounattend.xml and verify that no errors are shown in the validation pane. You will see a lot of warnings, but that is normal. 26. Open the Windows Server 2012 ISO image in an ISO editor, like UltraISO. Add the autounattend.xml file to the ROOT of the ISO image. Save the ISO, and then configure a VM or physical server to boot from it and verify that there are no prompts or errors during the installation process. Note that the disk configuration and data will be wiped during the installation process.

Related Posts:
XenDesktop 7 Pt 8: Install Server VDA Download Windows Server 2012 R2 Preview Now! SQL 2012 Unattended Install Scripts VMware releases vSphere 5.0 Update 2 Inject Cisco UCS Drivers into Windows Server 2012 ISO

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Print
Share this:

PDF
Tw eet 0 Like 1 1 Share

Filed Under: Microsoft, Windows Server 2012

Comments (71)
Sort by: Date Rating Last Activity Unknown 55 weeks ago Well written. Thank you for taking the time to put this all together. 0

Login

Reply
Unknown 55 weeks ago Well written. Thank you for taking the time to put this all together. 0

Reply
Tommy 55 weeks ago Thanks, great post for a newbie on this like me ;) 0

Reply
Tommy 55 weeks ago Thanks, great post for a newbie on this like me ;) 0

Reply
Tommy 55 weeks ago 0
Are you a developer? Try out the HTML to PDF API

open in browser PRO version

pdfcrowd.com

Thanks, great post for a newbie on this like me ;)

Reply
Anonymous 53 weeks ago Finally a great guide on how to do Windows 2012 unattended installs! Thank you! 0

Reply
Anonymous 53 weeks ago Finally a great guide on how to do Windows 2012 unattended installs! Thank you! 0

Reply
Anonymous 53 weeks ago Finally a great guide on how to do Windows 2012 unattended installs! Thank you! 0

Reply
Anonymous 47 weeks ago 0

Hmmmm... when I boot to my newly created .iso, I get an error message "No images are available." Any clue to where I might be making my mistake? Great writeup by the way!!

Reply

1 reply active 12 weeks ago 0

Derek Seaman, vExpert, VCP5, MCITP:EA, CISSP 47 weeks ago

Anonymous! Sounds like in step 16 you didn't enter exactly the name of the "image" you wanted to install. Double check your spelling.

Reply
Stephen Edworthy 43 weeks ago 0

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Adding RDP Access for Headless server install would be a great addition.

Reply
Stephen Edworthy 43 weeks ago Adding RDP Access for Headless server install would be a great addition. 0

Reply
Jerry 42 weeks ago 0

hmmm... my W2012 server boots up, but stops on the Settings: Country/Region page waiting for me to press 'next'. Any way to skip this page? Thanks Derek!

Reply
Jerry 42 weeks ago 0

hmmm... my W2012 server boots up, but stops on the Settings: Country/Region page waiting for me to press 'next'. Any way to skip this page? Thanks Derek!

Reply
Derek Seaman, vExpert, VCP5, MCITP:EA, CISSP 42 weeks ago Yes, a properly configured file will not prompt for country/region. Double check all the settings. 0

Reply

2 replies active 17 weeks ago 0

Derek Seaman, vExpert, VCP5, MCITP:EA, CISSP 42 weeks ago Yes, a properly configured file will not prompt for country/region. Double check all the settings.

Reply

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Derek Seaman, vExpert, VCP5, MCITP:EA, CISSP 42 weeks ago Odd..works for me

Reply

3 replies active 17 weeks ago 0

Derek Seaman, vExpert, VCP5, MCITP:EA, CISSP 42 weeks ago Odd..works for me

Reply
Derek Seaman, vExpert, VCP5, MCITP:EA, CISSP 42 weeks ago Odd..works for me 0

Reply
Jeffry A. Spain 41 weeks ago 0

When installing Windows Server 2012 on VMware ESXi, virtual EFI firmware appears to be a requirement. In place of steps 9 - 14 and 17 above, which are for BIOS firmware, see "Sample: Configure UEFI/GPT-Based Hard Drive Partitions by Using Windows Setup" at http://technet.microsoft.com/en-us/library/hh825702.aspx. I used the "Default UEFI/GTP drive partitions" successfully on ESXi 5.0 U1 (821926). Thanks. Jeff.

Reply

4 replies active 17 weeks ago 0

Jeffry A. Spain 41 weeks ago

The hang issue I found with ESX 5.0 b821926 and Windows Server 2012 RTM was with the use of a VMXNET3 NIC. While this is said in the compatibility guide to be supported, KB 2006859 states that it is not, and recommends the E1000E as a workaround. My testing confirms this. Anyway I imagine that many of these kinks are worked out in ESX 5.1, which I will be able to test once a compatible version of View is available.

Reply

2 replies active 17 weeks ago 0

Jeffry A. Spain 41 weeks ago

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Using the above info from 10/21, confirmed that Windows Server 2012 RTM Datacenter Core installs successfully on ESXi 5.0 b821926 with EFI firmware, GPT disk, pvscsi disk controller, and vmxnet3 NIC.

Reply
Anonymous 39 weeks ago 0

Hi! we tried to follow your guide but in USB(UFD). but we are stuck on "no image are available". we already followed the step 5&16. and even used your answerfile but still the same.

Reply

1 reply active 17 weeks ago 0

Joseph Imusago 36 weeks ago

I have not had any luck with Win8 installation. It stops at "Windows cannot parse the unattend answer file's DiskConfiguration setting. I think I have it correct. Thanks in advance.....Joe

Reply

2 replies active 17 weeks ago 0

Joseph Imusago 36 weeks ago

I have not had any luck with Win8 installation. It stops at "Windows cannot parse the unattend answer file's DiskConfiguration setting. I think I have it correct. Thanks in advance.....Joe

Reply
1 2 Next

Post a new comment


open in browser PRO version
Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Enter text right here!

Comment as a Guest, or login: Name


Displayed next to your comments.

facebook

Email
Not displayed publicly.

Website (optional)
If you have a website, link to it here.

Subscribe to None

Submit Comment

FOLLOW ME

POPULAR POSTS
vCenter 5.1 U1 Installation: Part 1 (SSO Service) 177 comment s vCenter 5.1 U1 Install: Part 2 (Create vCenter SSL Certificates) 120 comment s vCenter 5.1 U1 Installation: Part 3 (Install vCenter SSO SSL Certificate) 113 comment s vCenter 5.1 U1 Installation: Part 7 (Install vCenter Server 5.1) 70 comment s

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

vCenter 5.1 U1 Installation: Part 14 (Log Browser and Web Client SSL) 58 comment s

ARCHIVES
2013 (77) July (9) June (30) May (4) April (17) March (7) February (7) January (3) 2012 (135) 2011 (94) 2010 (86) 2009 (102)

CATEGORIES
Adobe (4) Cisco (28) Cisco Nexus 1000v (12) Cisco UCS (17)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Citrix (28) NetScaler (6) XenDesktop 5.x (13) XenDesktop 7 Install and Config (11) General (13) HP (51) 3PAR (18) HP ProLiant (17) HP Virtual Connect Flex-10 (4) StoreVirtual 4000 (4) Microsoft (183) Exchange (18) Hyper-V (6) Lync 2010 (3) Microsoft Office (6) Orchestrator (1) Powershell (3) Rights Management Server (2) Security Compliance Manager (2) SQL Server 2008 (10)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

SQL Server 2008 R2 (14) SQL Server 2012 (6) System Center (29) TechED 2009 (6) TechED 2010 (15) TechEd 2011 (19) TechEd 2012 (22) TechEd 2013 (16) Windows 7 (29) Windows 8 (10) Windows Server 2008 R2 (21) Windows Server 2012 (19) Windows Server 2012 R2 (10) Security (32) SSL (11) Storage (26) VDI (25) VMware (221) ESXi (18) VAAI (5)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

vCenter (18) VMware View (14) VMware Workstation (8) VMworld 2011 (25) VMworld 2012 (18) vSphere (30) vSphere 4.1 (8) vSphere 5.0 (17) vSphere 5.1 (33)

ABOUT
I'm a Top 25 Virtualization Blogger, a VMware vExpert and I have 15+ years of experience in the IT industry, focusing on VMware virtualization, enterprise Microsoft products, and storage in high security environments. I hold several certifications including VMware VCP 3/4/5, MCSE 2003, MCITP:EA 2008, CISSP, Security+, and Brocade SAN switches. [Read More...]

My Tweets
The last comments for

XenDesktop 7 Pt 10: Application Delivery Group Derek Seaman 41p

XenApp connections would be brokered via StoreFront, then the ICA/HDX connection is directly to the ... 1 day ago
The last comments for

XenDesktop 7 Pt 1: Role Installation

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Derek Seaman 41p

At the bottom of each post you can click on the PDF button and separately save all installments. 1 day ago Comments by IntenseDebate

RETURN TO TOP OF PAGE COPY RIGHT 2013 NEWS THEME ON GENESIS FRAMEWORK WORDPRESS LOG IN 2013 - Sitemap

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Das könnte Ihnen auch gefallen