Replies: 5 comments 1 reply
-
|
A few thoughts...
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
If the script is running then it must already have had a policy that allows the script to execute. |
Beta Was this translation helpful? Give feedback.
-
|
FYI @91ajames there is already a somewhat maintained install-powershell.ps1 script that you could make use of or be inspired by. There are some PR's that are outstanding to add in some features to this script in the PowerShell repo but it's not a high priority for the team to keep maintaining. Also Windows 11 also has the winget tool as part of it and that allows you to install silently too with winget install --id Microsoft.PowerShell --silent |
Beta Was this translation helpful? Give feedback.
-
|
(I don't want to discourage you from sharing stuff, but please think of the audience, or what you would/wouldn't want from a third party script geared toward "IT departments, system imaging, automated deployments, or lab setups", and what it would do without telling you and/or isn't documented. I trust the script meets your needs, but it's a pretty specific use case with many assumptions about environment. (And if it's a fresh OOBE install, how/why would there be existing installs to clear out?)
Bonus suggestion: Since you're obviously targeting/assuming Windows, use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m not sure if anyone has asked this in the past so I’ve been creating my own PowerScript .ps1 file for a project that I’m still correcting that I had to jump from PowerShell 5 to PowerShell 7.
So I had to create my own Silent Install of PowerShell 7 that I decided to share online if anyone was curious to try and test out to see if I have missed anything.
Only been tested on Windows 11 x64 system in VMware. I’ll gladly try and support other systems if asked but I’m surely be a simple add on to the script.
Link
Beta Was this translation helpful? Give feedback.
All reactions