Browse Source

fixed PowerShell Core does not have -Encoding Byte

pull/411/head
Silvio 2 years ago
parent
commit
1d70555594
  1. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

2
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
}
<#

Loading…
Cancel
Save