« Powershell 7 » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(Page créée avec « Category:Windows = Installation = <kode lang='powershell'> winget install Microsoft.PowerShell </kode> ») |
(→Links) |
||
(6 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
[[Category:Windows]] | [[Category:Windows]] | ||
= Links = | |||
* [https://learn.microsoft.com/en-us/powershell/scripting/whats-new/migrating-from-windows-powershell-51-to-powershell-7 Migrating from Windows PowerShell 5.1 to PowerShell 7] | |||
* [https://learn.microsoft.com/en-us/powershell/scripting/whats-new/differences-from-windows-powershell Differences between Windows PowerShell 5.1 and PowerShell 7.x] | |||
= Errors = | |||
== Error updating shortcut == | |||
Unable to modify the terminal.<br> | |||
Copy the shortcut to the local user start menu: | |||
* {{boxx|C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell\PowerShell 7 (x64).lnk}} | |||
* {{boxx|$home\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\PowerShell\PowerShell 7 (x64).lnk}} | |||
Then pin the local user shortcut. | |||
= Installation = | = Installation = | ||
<kode lang='powershell'> | <kode lang='powershell'> | ||
winget install Microsoft.PowerShell | winget install Microsoft.PowerShell | ||
# check the installed version | |||
$PSVersionTable.PSVersion | |||
# installed here | |||
C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.1.0_x64__8wekyb3d8bbwe\pwsh.exe | |||
</kode> | </kode> |
Dernière version du 16 décembre 2023 à 15:13
Links
- Migrating from Windows PowerShell 5.1 to PowerShell 7
- Differences between Windows PowerShell 5.1 and PowerShell 7.x
Errors
Error updating shortcut
Unable to modify the terminal.
Copy the shortcut to the local user start menu:
- C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PowerShell\PowerShell 7 (x64).lnk
- $home\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\PowerShell\PowerShell 7 (x64).lnk
Then pin the local user shortcut.
Installation
winget install Microsoft.PowerShell # check the installed version $PSVersionTable.PSVersion # installed here C:\Program Files\WindowsApps\Microsoft.PowerShell_7.3.1.0_x64__8wekyb3d8bbwe\pwsh.exe |