Skip to content

← All questions

PowerShell installer ignores every option I pass it

Asked 3,140 views2 answers

I want the installer to also scaffold a workspace, so I tried adding the parameter to the one-liner:

powershell
irm https://sdods.com/install.ps1 | iex -Workspace C:\my-tests

PowerShell does not like that, and every variation I have tried either errors or installs with the defaults and silently ignores the parameter. What is the correct form?

asked by Hsu Wei-lin15,230 ·

2 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related