Skip to content

Update-PowerShellCore question/suggestion #9

@MostHated

Description

@MostHated

Hey there,
I just tested out your Update-PowerShellCore script. One thing that would honestly make it more desirable to use would be to have it not ask so many questions and just do the update. I can't seem to pass more than one parameter to it to try and skip all of the prompts so that it just does the update.

Perhaps I am doing something incorrectly?

At first I thought it had to do with the alias I tried to setup:

# -- MSPS_profile.ps1 ------
# -- This file is in a folder on my $PATH 
. Update-PowerShellCore.ps1

function Update-PowerShell { 
   Update-PowershellCore -UsePackageManagement "Yes" -DownloadDirectory "$HOME\Downloads"
}
Set-Alias psupdate Update-PowerShell

But then the same thing happened when I tried to do it manually.

Update-PowershellCore -UsePackageManagement "Yes" -DownloadDirectory "$HOME\Downloads"

If this cannot be done, it would great if perhaps it could be adjusted so that it could.
Thanks,
-MH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions