Microsoft has been set up to Windows 10/Windows Server on June 16 (local time)..It has been announced that it will test a mechanism that can be easily updated via "Microsoft Update".In the past, when the new "PowerShell" became available, the console had a link to the "GitHub" release page, and it was necessary to manually download and install it.I was able to use package management systems such as "Windows Package Manager", "Chocolatey", and "SCOOP", but even without having to introduce such a solution, it is easy to use the existing "Windows Update" management flow."PowerShell 7.You can update 2 ".
「Microsoft Update」を有効化This mechanism is available in the following environments.In addition, the [Microsoft Update) option (Microsoft Update) options (Microsoft Update) (Microsoft Update) (Microsoft Update) (Microsoft Update) is available on the [Detailed Options] screen of "Windows Update" screen.
"PowerShell 7" via "Microsoft Update".The update of "2" is disabled in the initial state.If you want to participate in the test, execute the following script with administrator privileges and write the specified registry key (USEMU).
$pwshRegPath = "HKLM:\SOFTWARE\Microsoft\PowerShellCore"if (!(Test-Path -Path $pwshRegPath)) { throw "PowerShell 7 is not installed"}Set-ItemProperty -Path $pwshRegPath -Name UseMU -Value 1 -Type DWord
In the ready environment, "PowerShell 7".2 "Preview version (Preview.When 7) is released, it should be able to update via "Microsoft Update".In the future, it will not be necessary to add this registry key (USEMU) manually and will be enabled in all environments.
[Postscript of the editorial department on June 29] "PowerShell 7 via" Microsoft Update "on June 25.2 "Preview version update has started.
We're Officially Live with the Latest#PowerShell7.2 Preview.7 Via Microsoft Update! For More Info, Check Out this Blog Post from@travisplunk: https: // t.Co/1mym6movrb
— The PowerShell Team (@PowerShell_Team)June 25, 2021