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

Update-PowerShellCore question/suggestion #9

Open
MostHated opened this issue Jan 7, 2021 · 0 comments
Open

Update-PowerShellCore question/suggestion #9

MostHated opened this issue Jan 7, 2021 · 0 comments

Comments

@MostHated
Copy link

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

@MostHated MostHated changed the title Update-PowerShellCore /questionsuggestion Update-PowerShellCore question/suggestion Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant