When i run this code:
start /wait %windir%\System32\PkgMgr.exe /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-CGI
Output error:
Start-Process : A positional parameter cannot be found that accepts argument '/iu:IIS-WebServerRole'.
At line:1 char:2
+ start /wait %windir%\System32\PkgMgr.exe /iu:IIS-WebServerRole;IIS-W ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
IIS-WebServer : The term 'IIS-WebServer' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:65
+ ... ndir%\System32\PkgMgr.exe /iu:IIS-WebServerRole;IIS-WebServer;IIS-Com ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-WebServer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-CommonHttpFeatures : The term 'IIS-CommonHttpFeatures' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:79
+ ... xe /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-Sta ...
+ ~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-CommonHttpFeatures:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-StaticContent : The term 'IIS-StaticContent' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:102
+ ... erRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-Def ...
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-StaticContent:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-DefaultDocument : The term 'IIS-DefaultDocument' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:120
+ ... ;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-Dir ...
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-DefaultDocument:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-DirectoryBrowsing : The term 'IIS-DirectoryBrowsing' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:140
+ ... s;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-Htt ...
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-DirectoryBrowsing:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-HttpErrors : The term 'IIS-HttpErrors' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:162
+ ... tent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-Hea ...
+ ~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-HttpErrors:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-HealthAndDiagnostics : The term 'IIS-HealthAndDiagnostics' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:177
+ ... IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-Htt ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-HealthAndDiagnostics:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-HttpLogging : The term 'IIS-HttpLogging' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:202
+ ... wsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-Log ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-HttpLogging:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-LoggingLibraries : The term 'IIS-LoggingLibraries' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:218
+ ... IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-Req ...
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-LoggingLibraries:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-RequestMonitor : The term 'IIS-RequestMonitor' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again.
At line:1 char:239
+ ... stics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Sec ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-RequestMonitor:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-Security : The term 'IIS-Security' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:258
+ ... pLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-Req ...
+ ~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-Security:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-RequestFiltering : The term 'IIS-RequestFiltering' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:271
+ ... ibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-Htt ...
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-RequestFiltering:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-HttpCompressionStatic : The term 'IIS-HttpCompressionStatic' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:292
+ ... r;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-Web ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-HttpCompressionStatic:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-WebServerManagementTools : The term 'IIS-WebServerManagementTools' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:318
+ ... tering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-Man ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-WebServerManagementTools:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-ManagementConsole : The term 'IIS-ManagementConsole' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:347
+ ... sionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;WAS-Win ...
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-ManagementConsole:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
WAS-WindowsActivationService : The term 'WAS-WindowsActivationService' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:369
+ ... ementTools;IIS-ManagementConsole;WAS-WindowsActivationService;WAS-Pro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (WAS-WindowsActivationService:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
WAS-ProcessModel : The term 'WAS-ProcessModel' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:398
+ ... nagementConsole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-Net ...
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (WAS-ProcessModel:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
WAS-NetFxEnvironment : The term 'WAS-NetFxEnvironment' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:415
+ ... indowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-Con ...
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (WAS-NetFxEnvironment:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
WAS-ConfigurationAPI : The term 'WAS-ConfigurationAPI' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:436
+ ... ce;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-CGI
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (WAS-ConfigurationAPI:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
IIS-CGI : The term 'IIS-CGI' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:457
+ ... ce;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-CGI
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (IIS-CGI:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
How can i solve this problem?