Jul 15 2021 07:28 AM
Hi All,
Any Idea why I am not able to open the virtual cmd.exe/regedit.exe/notepad.exe with below command line.
Invoke-CommandInDesktopPackage -PackageFamilyName WS-FTP-Professional_cd0wgck2zs9pm -AppId WS-FTP-Professional -Command "cmd.exe" -PreventBreakaway
Invoke-CommandInDesktopPackage : System.ArgumentException occurred when attempting to invoke the provided command in desktop package. Run
Invoke-CommandInDesktopPackage -? for usage details. Additional detail: Value does not fall within the expected range.At line:1 char:1
+ Invoke-CommandInDesktopPackage -PackageFamilyName WS-FTP-Professional ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : NotSpecified: (:) [Invoke-CommandInDesktopPackage], ArgumentException
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.Windows.Appx.PackageCommands.InvokeCommandInDesktopPackage
Jul 16 2021 01:17 AM
SolutionHi @Siva116
Have you tried passing the full path to cmd.exe as a parameter?
If you still cannot get it running maybe you want to download Hover, it is small free tool we built. It provides a GUI wrapper over the same PS commandlet, which allows you to easily launch an EXE inside the container of your desired application.
Bogdan
Jul 19 2021 05:40 AM