3
1
This is a shortcut target of an application I launch from Windows 7 that starts a program in Windows XP Mode.
%SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\VMCPropertyHandler.dll,LaunchVMSal "Windows XP Mode" "||fc9407e9" "wIntegrate"
I can't seem to get the PS Start-process command to work for that target.
Code I use:
Start-Process %SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\VMCPropertyHandler.dll,LaunchVMSal "Windows XP Mode" "||fc9407e9" "wIntegrate"
Here is the error I receive:
Start-Process : A positional parameter cannot be found that accepts argument 'Windows XP Mode'.
At C:\Users\username.domain\Desktop\rebootpick.ps1:13 char:14
+ Start-Process <<<< %SystemRoot%\system32\rundll32.exe %SystemRoot%\system32\VMCPropertyHandler.dll,LaunchVMSal "Windows XP Mode" "||fc9407e9" "wIntegrate"
+ CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
Has anyone had any luck executing Windows XP Mode applications from Powershell from Windows 7?
Can you include the actual PS code you are using to launch it? – Ƭᴇcʜιᴇ007 – 2012-01-23T20:26:11.860
Added, see question. – payling – 2012-01-23T20:30:21.540