From 1d705555941f0fff5a20bcea0465dab3d5270111 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 7 Nov 2022 14:55:02 +0100 Subject: [PATCH] fixed PowerShell Core does not have -Encoding Byte --- .../Module/Sophia.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 index c87f4621..3fe1caaa 100644 --- a/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 +++ b/src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1 @@ -9184,7 +9184,7 @@ BDEE24B1E5E4ED6CC9D5A337908BE5303E477736C8A75051A8FBD4E3CB6360D8F0A992A48F333434 $Bytes[$i/2] = [System.Convert]::ToByte($HexString.Substring($i, 2), 16) } - Set-Content "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start.bin" -Value $Bytes -Encoding Byte -Force + Set-Content "$env:LOCALAPPDATA\Packages\Microsoft.Windows.StartMenuExperienceHost_cw5n1h2txyewy\LocalState\start.bin" -Value $Bytes -AsByteStream -Force } <#