Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start-Process: ... The parameter is incorrect. #3060

Open
MessiInter opened this issue Nov 23, 2024 · 1 comment
Open

Start-Process: ... The parameter is incorrect. #3060

MessiInter opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@MessiInter
Copy link

Describe the bug

The script can't elevate itself. Start-Process : This command cannot be run due to the error: The parameter is incorrect.

To Reproduce

Steps to reproduce the behavior:

  1. Open Windows PowerShell
  2. Type irm https://christitus.com/win | iex
  3. Execute the command.
  4. See error

Expected behavior

Start-Process : This command cannot be run due to the error: The parameter is incorrect.
At line:68 char:5
+     Start-Process $processCmd -ArgumentList "$powershellcmd -Executio ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

Screenshots

image

Additional context

OS: Windows 10 1709
Arch: AMD64

@MessiInter MessiInter added the bug Something isn't working label Nov 23, 2024
@CodingWonders
Copy link
Contributor

@MessiInter, you will have to open the PowerShell window as admin then. Also, are you still using the Fall Creators Update (1709) in 2024?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants