Installing IIS 7.5 on Win7 with the Pkgmgr, error (no error with cmd)


hi there,

i'm using following powershell script install iis 7.5 there appear 30 error messages (all same). didn't check every windows-feature because there alot tried webserverrole , no others, , no error message appeared. work of full installation?

write-host "installing iis win7 (7.5)..." $array  = ("iis-webserverrole","iis-webserver","iis-commonhttpfeatures","iis-staticcontent","iis-defaultdocument","iis-directorybrowsing","iis-httperrors","iis-httpredirect","iis-applicationdevelopment","iis-aspnet","iis-netfxextensibility","iis-asp","iis-cgi","iis-isapiextensions","iis-isapifilter","iis-serversideincludes","iis-healthanddiagnostics","iis-httplogging","iis-logginglibraries","iis-requestmonitor","iis-httptracing","iis-customlogging","iis-odbclogging","iis-security","iis-basicauthentication","iis-windowsauthentication","iis-digestauthentication","iis-clientcertificatemappingauthentication","iis-iiscertificatemappingauthentication","iis-urlauthorization","iis-requestfiltering","iis-ipsecurity","iis-performance","iis-httpcompressionstatic","iis-httpcompressiondynamic","iis-webservermanagementtools","iis-managementconsole","iis-managementscriptingtools","iis-managementservice","iis-iis6managementcompatibility","iis-metabase","iis-wmicompatibility","iis-legacyscripts","iis-legacysnapin","iis-ftppublishingservice","iis-ftpserver","iis-ftpmanagement","was-windowsactivationservice","was-processmodel","was-netfxenvironment","was-configurationapi") #in den array fügt man alle benötigten pakete ein. die nicht benötigten können entfernt werden. foreach ($wert in $array) #in dieser zeile werden alle wert des arrays #array ausgelesen { & "c:\windows\system32\pkgmgr.exe"/iu:$wert #führt den paketemanager aus um die windows-funktionen zu aktivieren mit dem befehl "/iu:paketname". } write-host -fore green "iis win7 (7.5) installed!"

the error message tells me package avaiable (nothing else).

error: 0x800700b7

it doesn't found in internet. says: "file not created, if it's there."


lua programmer & powershell newcomer | location: switzerland




i managed make working using start-process:

start-process "c:\windows\system32\pkgmgr.exe" -argumentlist "/iu:$wert" -wait



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

server manager error: ADAM.events.xml could not be enumerated.

Cannot access Anywhere Access using domain name?

WMI Failure: Unable to update Local Resource Group