Browse Source

Fixed typos

pull/703/head
Dmitry Nefedov 2 months ago
parent
commit
b126971fbe
  1. 2
      src/Sophia_Script_for_Windows_10/Module/Private/InitialActions.ps1
  2. 11
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  3. 3
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/InitialActions.ps1
  4. 11
      src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1
  5. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/InitialActions.ps1
  6. 11
      src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1
  7. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/InitialActions.ps1
  8. 11
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  9. 2
      src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1
  10. 2
      src/Sophia_Script_for_Windows_11/Module/Private/InitialActions.ps1
  11. 15
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  12. 2
      src/Sophia_Script_for_Windows_11_ARM/Localizations/ru-RU/Sophia.psd1
  13. 2
      src/Sophia_Script_for_Windows_11_ARM/Module/Private/InitialActions.ps1
  14. 15
      src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1
  15. 2
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Localizations/ru-RU/Sophia.psd1
  16. 2
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/InitialActions.ps1
  17. 15
      src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1
  18. 2
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/InitialActions.ps1
  19. 11
      src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1
  20. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1
  21. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/InitialActions.ps1
  22. 15
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

2
src/Sophia_Script_for_Windows_10/Module/Private/InitialActions.ps1

@ -675,9 +675,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

11
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -6114,6 +6114,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

3
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Private/InitialActions.ps1

@ -653,7 +653,6 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
Write-Information -MessageData "" -InformationAction Continue
Write-Warning -Message $Localization.BitLockerInOperation
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {$_.VolumeStatus -notin @("FullyEncrypted", "FullyDecrypted")}
@ -676,9 +675,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

11
src/Sophia_Script_for_Windows_10_LTSC_2019/Module/Sophia.psm1

@ -4509,6 +4509,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Private/InitialActions.ps1

@ -674,9 +674,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

11
src/Sophia_Script_for_Windows_10_LTSC_2021/Module/Sophia.psm1

@ -5326,6 +5326,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Private/InitialActions.ps1

@ -713,9 +713,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

11
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -6116,6 +6116,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

2
src/Sophia_Script_for_Windows_11/Localizations/ru-RU/Sophia.psd1

@ -50,7 +50,7 @@ AllFilesFilter = Все файлы
JSONNotValid = Файл JSON "{0}" невалиден.
PackageNotInstalled = {0} не установлен.
PackageIsInstalled = Последняя версия {0} уже установлена.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощбю политик. Функция Recall и приложение Copilot были удалены.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он не поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощью политик. Функция Recall и приложение Copilot были удалены.
UninstallUWPForAll = Для всех пользователей
NoUWPApps = Нет UWP-приложений, которые необходимо удалить.
UWPAppsTitle = UWP-приложения

2
src/Sophia_Script_for_Windows_11/Module/Private/InitialActions.ps1

@ -678,9 +678,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

15
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -5535,6 +5535,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose
@ -8107,8 +8118,8 @@ function WindowsAI
if (-not (Get-CimInstance -ClassName Win32_PnPEntity | Where-Object -FilterScript {($null -ne $_.ClassGuid) -and ($_.PNPClass -eq "ComputeAccelerator")}))
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose
Write-Error -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -ErrorAction SilentlyContinue
Write-Verbose -Message $Localization.CopilotPCSupport -Verbose
Write-Error -Message $Localization.CopilotPCSupport -ErrorAction SilentlyContinue
return
}

2
src/Sophia_Script_for_Windows_11_ARM/Localizations/ru-RU/Sophia.psd1

@ -50,7 +50,7 @@ AllFilesFilter = Все файлы
JSONNotValid = Файл JSON "{0}" невалиден.
PackageNotInstalled = {0} не установлен.
PackageIsInstalled = Последняя версия {0} уже установлена.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощбю политик. Функция Recall и приложение Copilot были удалены.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он не поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощью политик. Функция Recall и приложение Copilot были удалены.
UninstallUWPForAll = Для всех пользователей
NoUWPApps = Нет UWP-приложений, которые необходимо удалить.
UWPAppsTitle = UWP-приложения

2
src/Sophia_Script_for_Windows_11_ARM/Module/Private/InitialActions.ps1

@ -678,9 +678,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

15
src/Sophia_Script_for_Windows_11_ARM/Module/Sophia.psm1

@ -5466,6 +5466,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose
@ -7994,8 +8005,8 @@ function WindowsAI
if (-not (Get-CimInstance -ClassName Win32_PnPEntity | Where-Object -FilterScript {($null -ne $_.ClassGuid) -and ($_.PNPClass -eq "ComputeAccelerator")}))
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose
Write-Error -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -ErrorAction SilentlyContinue
Write-Verbose -Message $Localization.CopilotPCSupport -Verbose
Write-Error -Message $Localization.CopilotPCSupport -ErrorAction SilentlyContinue
return
}

2
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Localizations/ru-RU/Sophia.psd1

@ -52,7 +52,7 @@ AllFilesFilter = Все файлы
JSONNotValid = Файл JSON "{0}" невалиден.
PackageNotInstalled = {0} не установлен.
PackageIsInstalled = Последняя версия {0} уже установлена.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощбю политик. Функция Recall и приложение Copilot были удалены.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он не поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощью политик. Функция Recall и приложение Copilot были удалены.
UninstallUWPForAll = Для всех пользователей
NoUWPApps = Нет UWP-приложений, которые необходимо удалить.
UWPAppsTitle = UWP-приложения

2
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Private/InitialActions.ps1

@ -716,9 +716,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

15
src/Sophia_Script_for_Windows_11_ARM_PowerShell_7/Module/Sophia.psm1

@ -5468,6 +5468,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose
@ -7996,8 +8007,8 @@ function WindowsAI
if (-not (Get-CimInstance -ClassName Win32_PnPEntity | Where-Object -FilterScript {($null -ne $_.ClassGuid) -and ($_.PNPClass -eq "ComputeAccelerator")}))
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose
Write-Error -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -ErrorAction SilentlyContinue
Write-Verbose -Message $Localization.CopilotPCSupport -Verbose
Write-Error -Message $Localization.CopilotPCSupport -ErrorAction SilentlyContinue
return
}

2
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Private/InitialActions.ps1

@ -678,9 +678,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

11
src/Sophia_Script_for_Windows_11_LTSC_2024/Module/Sophia.psm1

@ -5144,6 +5144,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Localizations/ru-RU/Sophia.psd1

@ -52,7 +52,7 @@ AllFilesFilter = Все файлы
JSONNotValid = Файл JSON "{0}" невалиден.
PackageNotInstalled = {0} не установлен.
PackageIsInstalled = Последняя версия {0} уже установлена.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощбю политик. Функция Recall и приложение Copilot были удалены.
CopilotPCSupport = Ваш ЦП не имеет встроенного NPU, поэтому он не поддерживает никакую функцию, связанную с ИИ Windows. Нет необходимости что-либо выключать с помощью политик. Функция Recall и приложение Copilot были удалены.
UninstallUWPForAll = Для всех пользователей
NoUWPApps = Нет UWP-приложений, которые необходимо удалить.
UWPAppsTitle = UWP-приложения

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Private/InitialActions.ps1

@ -716,9 +716,7 @@ public static extern bool SetForegroundWindow(IntPtr hWnd);
if (Get-BitLockerVolume -MountPoint $env:SystemDrive | Where-Object -FilterScript {($_.ProtectionStatus -eq "Off") -and ($_.VolumeStatus -eq "FullyEncrypted")})
{
Write-Warning -Message $Localization.BitLockerAutomaticEncryption
Write-Error -Message $Localization.BitLockerAutomaticEncryption -ErrorAction SilentlyContinue
Write-Verbose -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -Verbose
Write-Error -Message "https://www.neowin.net/guides/how-to-remove-bitlocker-drive-encryption-in-windows-11/" -ErrorAction SilentlyContinue
do
{

15
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -5537,6 +5537,17 @@ function NetworkAdaptersSavePower
$Enable
)
# Turn On Desktop Apps Access to Location
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location -Name Value -PropertyType String -Value Allow -Force
New-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\location\NonPackaged -Name Value -PropertyType String -Value Allow -Force
# Remove all policies in order to make changes visible in UI
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Force -ErrorAction Ignore
Remove-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Force -ErrorAction Ignore
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors -Name DisableLocation -Type DELETE
Set-Policy -Scope Computer -Path SOFTWARE\Policies\Microsoft\Windows\AppPrivacy -Name LetAppsAccessLocation -Type DELETE
Write-Information -MessageData "" -InformationAction Continue
# Extract the localized "Please wait..." string from shell32.dll
Write-Verbose -Message ([WinAPI.GetStrings]::GetString(12612)) -Verbose
@ -8109,8 +8120,8 @@ function WindowsAI
if (-not (Get-CimInstance -ClassName Win32_PnPEntity | Where-Object -FilterScript {($null -ne $_.ClassGuid) -and ($_.PNPClass -eq "ComputeAccelerator")}))
{
Write-Information -MessageData "" -InformationAction Continue
Write-Verbose -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -Verbose
Write-Error -Message ($Localization.CopilotPCSupport, ($Localization.Skipped -f $MyInvocation.Line.Trim()) -join " ") -ErrorAction SilentlyContinue
Write-Verbose -Message $Localization.CopilotPCSupport -Verbose
Write-Error -Message $Localization.CopilotPCSupport -ErrorAction SilentlyContinue
return
}

Loading…
Cancel
Save