Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 2770

sysprep doesnt enable webserver IIS windows server 2012 r2 datacenter

$
0
0

Hello everyone,

Im trying to deploy windows 2012 r2 vm. Ive a sysprep config with two part, servicing and settings. all settings part is succesfully configured in the so, but servicing doesnt and is supposed to enable iis webserver. When vm starts i go to c:/ windows/panther/unattend.xml is present and complete. if i run the unattend.xml with pkgmgr it enable servicing.

The question is why it doesnt work on the first attemp, while so is installing. But then it works if i do manually.

Thanks.

<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n
<unattend xmlns=\"urn:schemas-microsoft-com:unattend\">\r\n    
    <settings pass=\"windowsPE\">\r\n        
        <component name=\"Microsoft-Windows-International-Core-WinPE\" 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\">\r\n            
            <SetupUILanguage>\r\n                
                <UILanguage>es-ES</UILanguage>\r\n                
                <WillShowUI>Never</WillShowUI>\r\n            
            </SetupUILanguage>\r\n            
            <InputLocale>es-ES</InputLocale>\r\n            
            <SystemLocale>es-ES</SystemLocale>\r\n
            <UILanguage>es-ES</UILanguage>\r\n            
            <UserLocale>es-ES</UserLocale>\r\n            
            <UILanguageFallback>es-ES</UILanguageFallback>\r\n        
        </component>\r\n        
        <component name=\"Microsoft-Windows-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\">\r\n            
            <UserData>\r\n                
                <AcceptEula>true</AcceptEula>\r\n                
                <FullName>__fullname__</FullName>\r\n                
                <Organization>test</Organization>\r\n            
            </UserData>\r\n        
        </component>\r\n    
    </settings>\r\n    
    <settings pass=\"specialize\">\r\n        
        <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\">\r\n            
            <TimeZone>SA Pacific Standard Time</TimeZone>\r\n            
            <RegisteredOwner>__fullname__</RegisteredOwner>\r\n            
            <RegisteredOrganization>test</RegisteredOrganization>\r\n            
            <ComputerName>__hostname__</ComputerName>\r\n        
        </component>\r\n
        <component name=\"Microsoft-Windows-TCPIP\" 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\">\r\n           
            <Interfaces>\r\n                
                <Interface wcm:action=\"add\">\r\n\t\t\t\t\t
                    <Ipv4Settings>\r\n                       
                        <DhcpEnabled>false</DhcpEnabled>\r\n                   
                    </Ipv4Settings>\r\n                    
                    <Identifier>Ethernet</Identifier>\r\n                   
                    <UnicastIpAddresses>\r\n                       
                        <IpAddress wcm:action=\"add\" wcm:keyValue=\"1\">__ipaddress__</IpAddress>\r\n                   </UnicastIpAddresses>\r\n                    
                    <Routes>\r\n                       
                        <Route wcm:action=\"add\">\r\n                           
                            <Identifier>0</Identifier>\r\n                           
                            <Prefix>0.0.0.0/0</Prefix>\r\n                           
                            <Metric>20</Metric>\r\n                           
                            <NextHopAddress>__gateway__</NextHopAddress>\r\n                       
                        </Route>\r\n                   
                    </Routes>\r\n\t\t\t\t
                </Interface>\r\n\t\t\t
            </Interfaces>\r\n\t\t
        </component>\r\n        
        <component name=\"Microsoft-Windows-DNS-Client\" 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\">\r\n\t\t\t
            <Interfaces>\r\n\t\t\t\t
                <Interface wcm:action=\"add\">\r\n\t\t\t\t\t
                    <Identifier>Ethernet</Identifier>\r\n\t\t\t\t\t
                    <DNSServerSearchOrder>\r\n                       
                        <IpAddress wcm:action=\"add\" wcm:keyValue=\"1\"></IpAddress>\r\n\t\t\t\t\t\t
                        <IpAddress wcm:action=\"add\" wcm:keyValue=\"2\"></IpAddress>\r\n                   </DNSServerSearchOrder>\r\n                
                </Interface>\r\n            
            </Interfaces>\r\n        
        </component>\r\n    
    </settings>\r\n    
    <settings pass=\"oobeSystem\">\r\n        
        <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\">\r\n            
            <UserAccounts>\r\n                
                <AdministratorPassword>\r\n                    
                    <Value>__adminpassword__</Value>\r\n                   
                    <PlainText>true</PlainText>\r\n                
                </AdministratorPassword>\r\n            
            </UserAccounts>\r\n            
            <RegisteredOwner>__fullname__</RegisteredOwner>\r\n            
            <RegisteredOrganization>test</RegisteredOrganization>\r\n            
            <TimeZone>SA Pacific Standard Time</TimeZone>\r\n            
            <OOBE>\r\n                
                <HideEULAPage>true</HideEULAPage>\r\n                
                <HideLocalAccountScreen>true</HideLocalAccountScreen>\r\n                
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>\r\n                
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>\r\n                
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>\r\n                
                <NetworkLocation>Work</NetworkLocation>\r\n                
                <SkipMachineOOBE>true</SkipMachineOOBE>\r\n                
                <SkipUserOOBE>true</SkipUserOOBE>\r\n            
            </OOBE>\r\n        
        </component>\r\n    
    </settings>\r\n    
    <servicing>\r\n    
        <package action=\"configure\">\r\n        
            <assemblyIdentity name=\"Microsoft-Windows-ServerCore-Package\" version=\"6.3.9600.16384\" processorArchitecture=\"amd64\" publicKeyToken=\"31bf3856ad364e35\" language=\"neutral\" />\r\n        
            <selection name=\"WirelessNetworking\" state=\"true\" />\r\n        
            <selection name=\"Xps-Foundation-Xps-Viewer\" state=\"true\" />\r\n        
            <selection name=\"TelnetClient\" state=\"true\" />\r\n        
            <selection name=\"IIS-WebServerRole\" state=\"true\" />\r\n        
            <selection name=\"IIS-WebServer\" state=\"true\" />\r\n        
            <selection name=\"IIS-CommonHttpFeatures\" state=\"true\" />\r\n        
            <selection name=\"IIS-DefaultDocument\" state=\"true\" />\r\n        
            <selection name=\"IIS-StaticContent\" state=\"true\" />\r\n        
            <selection name=\"IIS-DirectoryBrowsing\" state=\"true\" />\r\n        
            <selection name=\"IIS-ApplicationDevelopment\" state=\"true\" />\r\n        
            <selection name=\"IIS-WebServerManagementTools\" state=\"true\" />\r\n        
            <selection name=\"IIS-ManagementConsole\" state=\"true\" />\r\n        
            <selection name=\"IIS-ManagementScriptingTools\" state=\"true\" />\r\n        
            <selection name=\"IIS-ASPNET\" state=\"true\" />\r\n        
            <selection name=\"IIS-ASPNET45\" state=\"true\" />\r\n        
            <selection name=\"IIS-NetFxExtensibility\" state=\"true\" />\r\n        
            <selection name=\"IIS-NetFxExtensibility45\" state=\"true\" />\r\n        
            <selection name=\"IIS-ISAPIExtensions\" state=\"true\" />\r\n        
            <selection name=\"IIS-CGI\" state=\"true\" />\r\n        
            <selection name=\"IIS-HttpErrors\" state=\"true\" />\r\n        
            <selection name=\"IIS-HttpRedirect\" state=\"true\" />\r\n        
            <selection name=\"IIS-RequestFiltering\" state=\"true\" />\r\n        
            <selection name=\"ServerCore-FullServer\" state=\"true\" />\r\n        
            <selection name=\"ServerCore-WOW64\" state=\"true\" />\r\n        
            <selection name=\"NetFx4ServerFeatures\" state=\"true\" />\r\n        
            <selection name=\"NetFx4\" state=\"true\" />\r\n        
            <selection name=\"MicrosoftWindowsPowerShell\" state=\"true\" />\r\n        
            <selection name=\"Application-Server\" state=\"true\" />\r\n        
            <selection name=\"IIS-Security\" state=\"true\" />\r\n        
            <selection name=\"IIS-BasicAuthentication\" state=\"true\" />\r\n        
            <selection name=\"IIS-WindowsAuthentication\" state=\"true\" />\r\n        
            <selection name=\"MicrosoftWindowsPowerShellRoot\" state=\"true\" />\r\n        
            <selection name=\"NetFx4Extended-ASPNET45\" state=\"true\" />\r\n        
            <selection name=\"IIS-ISAPIFilter\" state=\"true\" />\r\n
            <selection name=\"IIS-ServerSideIncludes\" state=\"true\" />\r\n        
            <selection name=\"IIS-WebSockets\" state=\"true\" />\r\n    
        </package>\r\n    
    </servicing>\r\n    
</unattend>\r\n


Viewing all articles
Browse latest Browse all 2770

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>