You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
irm | iex leaves install.ps1's settings in the user's session: the preference, strict mode, and the script's functions and variables #982
The script-block form, & ([scriptblock]::Create((irm …))), runs in a scope of its own and leaves none of it; it's the preferred one-liner (ruled 2026-09-27 on #946). Measured under pwsh 7.4.6, 2026-09-29, drafting #965: after a failed iex run, Main and $Version remain in the session. Until #965, a failure closed the window, so this showed only after a success; with #965 it shows after a failure too.
Found drafting #965 (PR B of #949). The documents added by #946 note it beside the iex form.
Resolution
A design change to install.ps1, for the owner to rule on. One option: the whole script becomes a script block invoked in its own scope, & { … } @PSBoundParameters, so iex leaves nothing behind either. Another: keep iex as documented, with its note, and leave it.
Activity
feat(install): the installers take --base, --team and --personal and …
chore(install): install.ps1 narrates on the verbose stream, gives its…