Problem installing IIS 7.0 with a unattend script and pkgmgr.exe RRS feed

  • Question

  • User-1062830532 posted

    I am installing IIS 7.0 on Server 2008 RC2 64bit that is running a VMware instance using pkgmgr.exe
     Right away I am getting a "Operation failed with 0x80070057 The parameter is incorrect"
    Error code is 87

    I changed the script to match the build version and the processor type that I get when I do the "set" command.

    Command to install: start /w pkgmgr /n unattend.xml

     Here is the text in the unattend.xml that is pretty much copied from

    <?xml version="1.0" ?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend"
       <!-- Install a selectable update in a package that is in the Windows Foundation namespace -->
       <package action="configure">
        <selection name="IIS-WebServerRole" state="true"/>
        <selection name="IIS-WebServer" state="true"/>
        <selection name="IIS-CommonHttpFeatures" state="true"/>
        <selection name="IIS-StaticContent" state="true"/>
        <selection name="IIS-DefaultDocument" state="true"/>
        <selection name="IIS-DirectoryBrowsing" state="true"/>
        <selection name="IIS-HttpErrors" state="true"/>
        <selection name="IIS-HttpRedirect" state="true"/>
        <selection name="IIS-ApplicationDevelopment" state="true"/>
        <selection name="IIS-ASPNET" state="true"/>
        <selection name="IIS-NetFxExtensibility" state="true"/>
        <selection name="IIS-ASP" state="true"/>
        <selection name="IIS-CGI" state="true"/>
        <selection name="IIS-ISAPIExtensions" state="true"/>
        <selection name="IIS-ISAPIFilter" state="true"/>
        <selection name="IIS-ServerSideIncludes" state="true"/>
        <selection name="IIS-HealthAndDiagnostics" state="true"/>
        <selection name="IIS-HttpLogging" state="true"/>
        <selection name="IIS-LoggingLibraries" state="true"/>
        <selection name="IIS-RequestMonitor" state="true"/>
        <selection name="IIS-HttpTracing" state="true"/>
        <selection name="IIS-CustomLogging" state="true"/>
        <selection name="IIS-ODBCLogging" state="true"/>
        <selection name="IIS-Security" state="true"/>
        <selection name="IIS-BasicAuthentication" state="true"/>
        <selection name="IIS-WindowsAuthentication" state="true"/>
        <selection name="IIS-DigestAuthentication" state="true"/>
        <selection name="IIS-ClientCertificateMappingAuthentication" state="true"/>
        <selection name="IIS-IISCertificateMappingAuthentication" state="true"/>
        <selection name="IIS-URLAuthorization" state="true"/>
        <selection name="IIS-RequestFiltering" state="true"/>
        <selection name="IIS-IPSecurity" state="true"/>
        <selection name="IIS-Performance" state="true"/>
        <selection name="IIS-HttpCompressionStatic" state="true"/>
        <selection name="IIS-HttpCompressionDynamic" state="true"/>
        <selection name="IIS-WebServerManagementTools" state="true"/>
        <selection name="IIS-ManagementConsole" state="true"/>
        <selection name="IIS-ManagementScriptingTools" state="true"/>
        <selection name="IIS-ManagementService" state="true"/>
        <selection name="IIS-IIS6ManagementCompatibility" state="true"/>
        <selection name="IIS-Metabase" state="true"/>
        <selection name="IIS-WMICompatibility" state="true"/>
        <selection name="IIS-LegacyScripts" state="true"/>
        <selection name="IIS-LegacySnapIn" state="true"/>
        <selection name="IIS-FTPPublishingService" state="true"/>
        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPManagement" state="true"/>
        <selection name="WAS-WindowsActivationService" state="true"/>
        <selection name="WAS-ProcessModel" state="true"/>
        <selection name="WAS-NetFxEnvironment" state="true"/>
        <selection name="WAS-ConfigurationAPI" state="true"/>

    One thing I did notice is that with the set command, I am getting this:
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 8, GenuineIntel

    Where the problem?

    Thursday, May 21, 2009 4:01 PM

All replies

  • User1973023855 posted

     in Windows 7 the FTP updates:

        <selection name="IIS-FTPPublishingService" state="true"/>
        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPManagement" state="true"/>

    has been replaced by the FTP7 updates:

        <selection name="IIS-FTPServer" state="true"/>
        <selection name="IIS-FTPSvc" state="true"/>
        <selection name="IIS-IIS-FTPExtensibility" state="true"/>

    Also you no longer need the WAS stuff:

        <selection name="WAS-WindowsActivationService" state="true"/>
        <selection name="WAS-ProcessModel" state="true"/>
        <selection name="WAS-NetFxEnvironment" state="true"/>
        <selection name="WAS-ConfigurationAPI" state="true"/>

     as these are being pulled in automagically.


    Thursday, May 21, 2009 5:37 PM
  • User-1062830532 posted

    Made the change and still does not work...
    You mentioned Windows 7, I am using Server 2008 RC2, I am assuming the change is for both as they both share the new kernel.

    FYI, the unattend.xml script is on the E:\Build and the command promt I am using (running as Local Admin) is at E:\Build

    Friday, May 22, 2009 2:38 PM
  • User-1062830532 posted

    Figured it out...
    in "start /w pkgmgr /n unattend.xml" I was missing the : in /n:unattend.xml...

    Couldn't see it for the life of me.

    Friday, June 5, 2009 10:58 AM
  • User202256251 posted

    did it work for you? how did you do it.

     i am having the exact scrip as your, i got it from http://learn.iis.net/page.aspx/133/using-unattend-setup-to-install-iis-7/

     i changed the product version : 6.0.600.16386

     i have the unattend.xml on my F:\

    and in the cmd,

    i have F:\>start /w pkgmgr /n:unattend.xml

     but nothing hapeen.

    and echo %errorlevel% gives me -2146498555


    any idea?



    Friday, June 12, 2009 2:55 PM
  • User-1062830532 posted

    It appears that you have a version mis-match... is your OS 32 or 64 bit based?
    Look at this thread... http://forums.iis.net/p/1148892/1867429.aspx

    Monday, July 6, 2009 3:34 PM
  • User280129763 posted

    ' i changed the product version : 6.0.600.16386'

    ' and echo %errorlevel% gives me -2146498555'


    I had the same error.


    The version line on mine (Vista Ultimate) to work correctly reads



    Another error I saw was  -2146498547

    This error was caused by a typo in the opening assemblyIdentity line

    It read <ssemblyIdentity

    and should read <assemblyIdentity


    Still am unable to get full package to install correctly from scratch.  Am doing selective installs till I get an operational IIS7 basic package.




    Wednesday, July 8, 2009 5:05 PM
  • User-236419923 posted

     Even  im having the same problem while installing the IIS 7 using unattend.xml file according to the version "6.0.6000.16386 " it is 32 bit OS.

    Monday, January 11, 2010 6:56 AM
  • User1867642947 posted


    Do you have DISM tool on your Windows 7 ? Otherwise, install it...

    Try to know which version and archtitecture processor you have type this command line :

    dism /online /get-features /format:table

    You will have all the case sensitive features on your Win7, so if you have in your xml file something that doesn't match, so it's not a feature.

    Tuesday, November 23, 2010 3:34 AM