the_ferret82 Posted February 28, 2008 Share Posted February 28, 2008 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. Link to comment Share on other sites More sharing options...
Talderon Posted March 3, 2008 Share Posted March 3, 2008 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 Link to comment Share on other sites More sharing options...
the_ferret82 Posted March 3, 2008 Author Share Posted March 3, 2008 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. ~TGood 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 More sharing options...
fizban2 Posted March 3, 2008 Share Posted March 3, 2008 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 ServermanagercmdServer Manager command line syntax and parametersThe following sections show the syntax and command-line parameters and options for ServerManagerCmd.exe.SyntaxServerManagerCmd.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 -versionServer Manager Technical Overviewyou can install by doing something like this - ServerManagercmd -install Web-Serveror 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 More sharing options...
Talderon Posted March 3, 2008 Share Posted March 3, 2008 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. ~TGood 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 Link to comment Share on other sites More sharing options...
shahed26 Posted February 15, 2009 Share Posted February 15, 2009 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/adviceThank you Link to comment Share on other sites More sharing options...
cluberti Posted February 18, 2009 Share Posted February 18, 2009 Moving to Vista unattend, as this is a more appropriate location for this question. Link to comment Share on other sites More sharing options...
shahed26 Posted February 18, 2009 Share Posted February 18, 2009 Thank you for Moving to appropriate section. Hopefully someone will be able to answer my above question now. Link to comment Share on other sites More sharing options...
fizban2 Posted February 19, 2009 Share Posted February 19, 2009 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/adviceThank youa 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 More sharing options...
shahed26 Posted February 19, 2009 Share Posted February 19, 2009 Thanks for your reply, this was really helpfull, and now hopefully i should be able to get the server roles installed unattendenly via xml. Link to comment Share on other sites More sharing options...
dim Posted February 19, 2009 Share Posted February 19, 2009 I am not sure what the issue is.This should be pretty straightforward.Are you using Windows System image manager?Add the Foundation Pack to your XML file and chose your roles and options Link to comment Share on other sites More sharing options...
shahed26 Posted February 19, 2009 Share Posted February 19, 2009 (edited) 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.Thank you Edited February 19, 2009 by shahed26 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now