Home > Software > Development > Powershell > powershell-core

powershell-core logo

Details

Package ID
powershell-core
Version
7.6.10
Downloads
9930174
Website
https://github.com/PowerShell/PowerShell

Summary

PowerShell Core is the open source multiplatform version of PowerShell

Description

Update status chocolatey/DarwinJS

PowerShell Core is the open source multiplatform version of PowerShell

After v7.4.5 - if a non-chocolatey installed powershell is detected, you must use -force to overwrite it. -force also now works properly to reinstall the same version even when the previous install was chocolatey.

Preview releases are under the package id powershell-preview so that they can be safely installed and maintained side-by-side with the release versions on production systems. Preview versions do not become the default powershell core edition on a system (unless they are the ONLY edition), if you have a preview version installed, access it via pwsh’s '-pre’ switch.

This package automatically does verbose MSI logging to %temp%(packagenameandversion).MsiInstall.log

Some helpful install options (any of them can be combined - delimited by space):

  • Any MSI Properties the package responds to can be specified in the same way, even if not documented here.

–install-arguments=’"DISABLE_TELEMETRY=1"’ - Valid for PowerShell 7.4 and later - disables built in telemetry. Read more about PowerShell telemetry here: https://devblogs.microsoft.com/powershell/new-telemetry-in-powershell-7-preview-3/

–install-arguments=’"ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1"’ Installs a right click context menu to run .ps1 scripts in PowerShell Core.

–install-arguments=’"ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1"’ Installs a right click context menu to start a PowerShell Core prompt for a specific folder.

–install-arguments=’"REGISTER_MANIFEST=1"’ Causes PowerShell Core to deliver logs to Windows Event logs.

–install-arguments=’"ENABLE_PSREMOTING=1"’ Enable PS remoting during installation.

–install-arguments=’"USE_MU=1 ENABLE_MU=1"’ Enable powershell to be updated via windows updates - this chocolatey package defaults to disabling these. Available with PWSH MSI Package for 7.2 and later.

–install-arguments=’"ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1 ADD_FILE_CONTEXT_MENU_RUNPOWERSHELL=1 USE_MU=1 ENABLE_MU=1 REGISTER_MANIFEST=1 ENABLE_PSREMOTING=1 DISABLE_TELEMETRY=1"’ Do it all.

–packageparameters ‘"/CleanUpPath"’ Removes all powershell core paths before starting install. Cleans up old paths from old powershell core MSIs.

Comments

Loading comments...