Invoke-Elevated demands arguments

Topics: Developer Forum, User Forum
Jun 27, 2011 at 1:56 AM

I just installed the latest version of PSCX on my system, and tried running the following Invoke-Elevated command:

su notepad

Unfortunately, the cmdlet seems to be demanding an argument list, as suggested by the error message:

Start-Process : Cannot validate argument on parameter 'ArgumentList'. The argument is null or empty. Supply an argument
 that is not null or empty and then try the command again.
At C:\Users\Alex\bin\pscx\Modules\Utility\Pscx.Utility.psm1:559 char:94
+     Microsoft.PowerShell.Management\Start-Process $filePath -Verb runas -WorkingDir $pwd -Arg <<<<  $suargs -PassThru
    + CategoryInfo          : InvalidData: (:) [Start-Process], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand

This looks very much like a bug to me. Would be most grateful if this could be fixed for the next release. :-)

Thanks to all the devs for all your great work on this project.

Jun 27, 2011 at 7:40 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.