Browse Source

Improved Checks

removed extra space
pull/469/head
Dmitry Nefedov 1 year ago
parent
commit
e6b0ed7318
  1. 3
      src/Sophia_Script_for_Windows_10/Module/Sophia.psm1
  2. 2
      src/Sophia_Script_for_Windows_10/Sophia.ps1
  3. 2
      src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1
  4. 2
      src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1
  5. 11
      src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1
  6. 2
      src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1
  7. 3
      src/Sophia_Script_for_Windows_11/Module/Sophia.psm1
  8. 2
      src/Sophia_Script_for_Windows_11/Sophia.ps1
  9. 12
      src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1
  10. 2
      src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

3
src/Sophia_Script_for_Windows_10/Module/Sophia.psm1

@ -14785,6 +14785,9 @@ public static void PostMessage()
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage)
#endregion Toast notifications
# Check for UWP apps updates
Get-CimInstance -Namespace root/CIMV2/mdm/dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod
}
#endregion Post Actions

2
src/Sophia_Script_for_Windows_10/Sophia.ps1

@ -129,7 +129,7 @@ CreateRestorePoint
DiagTrackService -Disable
# Enable the "Connected User Experiences and Telemetry" service (DiagTrack), and allow the connection for the Unified Telemetry Client Outbound Traffic (default value)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum

2
src/Sophia_Script_for_Windows_10_LTSC_2019/Sophia.ps1

@ -124,7 +124,7 @@ CreateRestorePoint
DiagTrackService -Disable
# Enable the "Connected User Experiences and Telemetry" service (DiagTrack), and allow the connection for the Unified Telemetry Client Outbound Traffic (default value)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum

2
src/Sophia_Script_for_Windows_10_LTSC_2021/Sophia.ps1

@ -124,7 +124,7 @@ CreateRestorePoint
DiagTrackService -Disable
# Enable the "Connected User Experiences and Telemetry" service (DiagTrack), and allow the connection for the Unified Telemetry Client Outbound Traffic (default value)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum

11
src/Sophia_Script_for_Windows_10_PowerShell_7/Module/Sophia.psm1

@ -186,7 +186,13 @@ function Checks
}
# Check whether LGPO.exe exists in the bin folder
if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe"))
# Check whether all necessary files exist in the bin folder
$Files = @(
"$PSScriptRoot\..\bin\LGPO.exe",
"$PSScriptRoot\..\bin\Microsoft.Windows.SDK.NET.dll",
"$PSScriptRoot\..\bin\WinRT.Runtime.dll"
)
if (($Files | Test-Path) -contains $false)
{
Write-Warning -Message $Localization.Bin
Start-Sleep -Seconds 5
@ -14813,6 +14819,9 @@ public static void PostMessage()
# PowerShell 7.3 doesn't support yet using own caller app toast notifications. Fixed in PowerShell 7.4.0-preview.1
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier().Show($ToastMessage)
#endregion Toast notifications
# Check for UWP apps updates
Get-CimInstance -Namespace root/CIMV2/mdm/dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod
}
#endregion Post Actions

2
src/Sophia_Script_for_Windows_10_PowerShell_7/Sophia.ps1

@ -138,7 +138,7 @@ CreateRestorePoint
DiagTrackService -Disable
# Enable the "Connected User Experiences and Telemetry" service (DiagTrack), and allow the connection for the Unified Telemetry Client Outbound Traffic (default value)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum

3
src/Sophia_Script_for_Windows_11/Module/Sophia.psm1

@ -14193,6 +14193,9 @@ public static void PostMessage()
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage)
#endregion Toast notifications
# Check for UWP apps updates
Get-CimInstance -Namespace root/CIMV2/mdm/dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod
}
#endregion Post Actions

2
src/Sophia_Script_for_Windows_11/Sophia.ps1

@ -128,7 +128,7 @@ CreateRestorePoint
DiagTrackService -Disable
# Enable the "Connected User Experiences and Telemetry" service (DiagTrack), and allow the connection for the Unified Telemetry Client Outbound Traffic (default value)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum

12
src/Sophia_Script_for_Windows_11_PowerShell_7/Module/Sophia.psm1

@ -276,8 +276,13 @@ function Checks
exit
}
# Check whether LGPO.exe exists in the bin folder
if (-not (Test-Path -Path "$PSScriptRoot\..\bin\LGPO.exe"))
# Check whether all necessary files exist in the bin folder
$Files = @(
"$PSScriptRoot\..\bin\LGPO.exe",
"$PSScriptRoot\..\bin\Microsoft.Windows.SDK.NET.dll",
"$PSScriptRoot\..\bin\WinRT.Runtime.dll"
)
if (($Files | Test-Path) -contains $false)
{
Write-Warning -Message $Localization.Bin
Start-Sleep -Seconds 5
@ -14215,6 +14220,9 @@ public static void PostMessage()
# PowerShell 7.3 doesn't support yet using own caller app toast notifications. Fixed in PowerShell 7.4.0-preview.1
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier().Show($ToastMessage)
#endregion Toast notifications
# Check for UWP apps updates
Get-CimInstance -Namespace root/CIMV2/mdm/dmmap -ClassName MDM_EnterpriseModernAppManagement_AppManagement01 | Invoke-CimMethod -MethodName UpdateScanMethod
}
#endregion Post Actions

2
src/Sophia_Script_for_Windows_11_PowerShell_7/Sophia.ps1

@ -137,7 +137,7 @@ CreateRestorePoint
DiagTrackService -Disable
# Enable the "Connected User Experiences and Telemetry" service (DiagTrack), and allow the connection for the Unified Telemetry Client Outbound Traffic (default value)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# Включить службу "Функциональные возможности для подключенных пользователей и телеметрия" (DiagTrack) и разрешить подключение для исходящего трафик клиента единой телеметрии (значение по умолчанию)
# DiagTrackService -Enable
# Set the diagnostic data collection to minimum

Loading…
Cancel
Save