2024�N04��14��

Windows11��PowerShell 7���iwinget�Łj�C���X�g�[�������菇



Windows11��PowerShell���g�����Ǝv������ǂ���炤�܂������Ȃ��悤���ȁB�B
�Ƃ������Ƃ�PowerShell 7���C���X�g�[�������B���̍ۂ̋L�^�L���B

Windows11�ɓ����Ă���PowerShell��5.1������



PowerShell���N��������G���[���o��

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

�V�@�\�Ɖ��P�̂��߂ɍŐV�� PowerShell ���C���X�g�[�����Ă�������!https://aka.ms/PSWindows

���ꂪ�o����Ă��Ƃ͍ŐV�̂ɂ�����Ă��ƂȂ񂾂�ˁB�B�ʓ|�������ȁB

�ȉ��̃R�}���h�Ńo�[�W�������m�F
$PsVersionTable

Name Value
---- -----
PSVersion 5.1.22621.1778
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
�A�A�A�A����

----------------------------------
���̃R�}���h�ł��o�[�W�������m�F
Get-Host | Select-Object Version

Version
-------
5.1.22621.1778



PowerShell�̂�5.1�Ȃ񂾂ˁB

PowerShell��5�n��7�n�͂܂������ʕ��Ȃ̂ŋ����”\�B�Ƃ������Ƃ�PowerShell7���C���X�g�[�����悤�Ǝv���B




PowerShell 7���C���X�g�[������



PowerShell 7���C���X�g�[��������@�͂����‚����邯��
�R�}���h�����ŃC���X�g�[���ł���uwinget�v�R�}���h���g�����Ƃɂ����B

�@winget search�R�}���h�ŃC���X�g�[���”\�ȃp�b�P�[�W�ꗗ���擾

winget search Microsoft.PowerShell

���ׂẴ\�[�X�_������ɓ��ӂ��܂���?
[Y] �͂� [N] ������: y
���O ID �o�[�W���� �\�[�X
----------------------------------------
PowerShell Microsoft.PowerShell 7.3.8.0 winget
PowerShell Preview Microsoft.PowerShell.Preview 7.4.0.6 winget


ID�@�uMicrosoft.PowerShell�v�̂ق����C���X�g�[�����邱�Ƃɂ����B


winget install --id Microsoft.Powershell --source winget

������ȏo�͂��o��
���‚���܂��� PowerShell [Microsoft.PowerShell] �o�[�W���� 7.3.8.0
���̃A�v���P�[�V�����͏��L�҂��烉�C�Z���X���^����܂��B
Microsoft �̓T�[�h�p�[�e�B�̃p�b�P�[�W�ɑ΂��ĐӔC�𕉂킸�A���C�Z���X���t�^���܂���B
�_�E�����[�h�� https://github.com/PowerShell/PowerShell/releases/download/v7.3.8/PowerShell-7.3.8-win-x64.msi
�A�A�A 100 MB / 100 MB
�C���X�g�[���[�n�b�V��������Ɍ��؂���܂���
�p�b�P�[�W�̃C���X�g�[�����J�n���Ă��܂�...
�C���X�g�[�����������܂���



����m�F���Ă݂�



PowerShell����x�‚���@���@Windows�}�[�N�@���@PowerShell 7 �̃A�C�R�������邱�Ƃ��m�F�@

PowerShell 7�@���N��


powershell7-1.png


$PsVersionTable

Name Value
---- -----
PSVersion 7.3.8
PSEdition Core
GitCommitId 7.3.8
�A�A�A�A����


Get-Host | Select-Object Version
Version
-------
7.3.8


�ǂ����o�[�W�����A�b�v�ł��Ă�݂����Ȃ̂ł悩�����B

���Ȃ݂Ɂuwinget�v�R�}���h�ŃC���X�g�[������PowerShell��msi�t�@�C���ŃC���X�g�[�����邱�ƂɂȂ�B

���̂ق��̃C���X�g�[�����@�͂������ɏڂ����̂ł�낵��������ǂ����B�B

https://learn.microsoft.com/ja-jp/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3#winget
















-
posted by �q�W�L at 21:00 | Windows | ̃uO̓ǎ҂ɂȂ | XV`FbN