I'm trying to run a command found in this answer. The command is

start /w %SystemRoot%\system32\pkgmgr.exe /ip /m:Windows6.1-KB2506143-x86.cab

Trouble is, it doesn't work for me. Indeed, it returns the following error :

Start-Process : Impossible de trouver un paramètre positionnel acceptant l'argument « /ip ».
Au niveau de ligne : 1 Caractère : 6
+ start <<<<  /w C:\Windows\System32\PkgMgr.exe /ip /m:Windows6.1-KB2506143-x64.cab
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

As I'm a neophyte to powershell, I'm having troubles understanding the various options. help start gives me a list of parameter, but I found no mention of /w, /ip or /m.

To sum up, I would like to

  • be able to run the command
  • understand what it does.
  • /w, /ip and /m are switches for pkgmgr.exe, not for start. Try putting double quotes around the command like this: start /w "%SystemRoot%\system32\pkgmgr.exe /ip /m:Windows6.1-KB2506143-x86.cab" – Art Gertner Jul 24 '14 at 9:55
  • in fact, I don't see the reason why you even need start /w. It is only used when starting multiple programs from batch script to force sequential execution. You might as well omit start /w – Art Gertner Jul 24 '14 at 9:58
  • @smc Good to know for the switches. I tried adding the quotes, but it gives me a FileNotFound. However, removing start /w makes the command run, so I guess that's all I wanted :) . – fxm Jul 24 '14 at 10:00
  • hm... not sure about File not found, but hey, as long as your problem is resolved, its all good. I will post this as an answer – Art Gertner Jul 24 '14 at 10:03

Switches /w, /ip and /m relate to pkgmgr.exe rather then start. Here is a link to MS website were switches and options for pkgmgr.exe are described in the details

Try removing start /w from your command. It is only used in batch scripts to ensure sequential execution of commands. You don't need it when running one singe command from the terminal.

Just do

%SystemRoot%\system32\pkgmgr.exe /ip /m:Windows6.1-KB2506143-x86.cab

If you are interested in some extra info, read "What is Package Manager?". This should help you to understand what the command does. The essence is:

Package Manager (Pkgmgr.exe) is a new Windows Vista command-line tool that you can use offline to install, remove, or update Windows packages.

/ip switch is used to install single package

/m is a compulsory switch after which you have to specifies the directory with the package manifest and payload.

  • You may want to add the details on the switches you mentionned in your first comment, it was useful to me and perhaps to someone else. – fxm Jul 24 '14 at 10:06

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.