Jump to content

Windows 2008 Unattend


Recommended Posts


I will be working on this tonight when I get home. I have the RTM bits but want to build an unattended bootable DVD.

I'll doc it and share what I find. :)

~T

Good luck. as i have spent weeks trying to get roles and features to install via an unattend XML and not yet sucedded.

Link to comment
Share on other sites

has any one here worked out how to do an unattend instlation for windows 2008 so it installes additional roles and features e.g IIS and dns.

i have managed to master the unattend install so it does display password etc just not the features.

You can use Servermanagercmd

Server Manager command line syntax and parameters

The following sections show the syntax and command-line parameters and options for ServerManagerCmd.exe.

Syntax

ServerManagerCmd.exe -query [<query.xml>] [-logPath <log.txt>]

ServerManagerCmd.exe -inputPath <answer.xml> [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

ServerManagerCmd.exe -install <command-Id> [-allSubFeatures] [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

ServerManagerCmd.exe -remove <command-Id> [-resultPath <result.xml> [-restart] | -whatIf] [-logPath <log.txt>]

ServerManagerCmd.exe [-help | -?]

ServerManagerCmd.exe -version

Server Manager Technical Overview

you can install by doing something like this -

ServerManagercmd -install Web-Server

or you can install from a XML file using the -inputpath switch

<?xml version="1.0" encoding="utf-8" ?>
<ServerManagerConfiguration Action="Install" xmlns="http://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RoleService Id="FS-DFS-Namespace" />
<Feature Id="Backup" />

Link to comment
Share on other sites

I will be working on this tonight when I get home. I have the RTM bits but want to build an unattended bootable DVD.

I'll doc it and share what I find. :)

~T

Good luck. as i have spent weeks trying to get roles and features to install via an unattend XML and not yet sucedded.

Luckily, I have access to the products team and will be working with them :D

Link to comment
Share on other sites

  • 11 months later...
or you can install from a XML file using the -inputpath switch

<?xml version="1.0" encoding="utf-8" ?>
<ServerManagerConfiguration Action="Install" xmlns="http://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RoleService Id="FS-DFS-Namespace" />
<Feature Id="Backup" />

Can you please expain, what you meant by inputpath. Am trying to install server roles/features using xml unattendedly, but dont know how to install servermanager features using xml. I did copy and pasted the above scripts to my Autounattend.xml, but installation fails.

Please help/advice

Thank you

Link to comment
Share on other sites

or you can install from a XML file using the -inputpath switch

<?xml version="1.0" encoding="utf-8" ?>
<ServerManagerConfiguration Action="Install" xmlns="http://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RoleService Id="FS-DFS-Namespace" />
<Feature Id="Backup" />

Can you please expain, what you meant by inputpath. Am trying to install server roles/features using xml unattendedly, but dont know how to install servermanager features using xml. I did copy and pasted the above scripts to my Autounattend.xml, but installation fails.

Please help/advice

Thank you

a sample XML would be something like this

<?xml version="1.0" encoding="utf-8" ?>
<ServerManagerConfiguration Action="Install" xmlns="http://schemas.microsoft.com/sdm/Windows/ServerManager/Configuration/2007/1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<RoleService Id="FS-DFS-Namespace" />
<Feature Id="Backup" />
</ServerManagerConfiguration>

looking at your code you don't have the ending </servermanagerConfiguration> tag. like most XML, you need to keep it properly represented with an ending tag for a matching start tag

Another option is to use the MDT toolkit, they have an entire GUI interface to choose roles/feature that are available in 2008.

Link to comment
Share on other sites

This is my xml file (saved as unatted.xml, and is saved in dvd root/sources folder)

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing>
<package action="install">
<assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.0.6001.18000" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
<selection name="BitLocker" state="true" />
<selection name="DesktopExperience" state="true" />
<selection name="MicrosoftWindowsPowerShell" state="true" />
<selection name="NetFx3" state="true" />
<selection name="XPS-Viewer" state="true" />
<selection name="Printing-Server-Role" state="true" />
<selection name="Printing-InternetPrinting-Server" state="true" />
<selection name="WirelessNetworking" state="true" />
</package>
</servicing>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" 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">
<OOBE>
<HideEULAPage>true</HideEULAPage>
<NetworkLocation>Home</NetworkLocation>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
<ProtectYourPC>1</ProtectYourPC>
</OOBE>
<Themes>
<CustomDefaultThemeFile>c:\windows\resources\themes\windows 7.theme</CustomDefaultThemeFile>
<DefaultThemesOff>false</DefaultThemesOff>
</Themes>
</component>
</settings>
<settings pass="specialize">
<component name="Security-Malware-Windows-Defender" 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">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<component name="Security-Malware-Windows-Defender" processorArchitecture="wow64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<component name="Microsoft-Windows-IE-ESC" processorArchitecture="x86" 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-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>
</settings>
</unattend>

Created on a new server source using Windows System image manager. But still does not install roles/features. Can somebody please point out what or were am going wrong?

EDIT:

Or maybe can sombody please show me a working xml (obviously without personal info's..eg key..lol)

EDIT:

After validating my xml, i get this error.

14kxpcp.jpg

Thank you

Edited by shahed26
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...