|
@ -15212,21 +15212,6 @@ public static void PostMessage() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database |
|
|
|
|
|
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt")) |
|
|
|
|
|
{ |
|
|
|
|
|
if (Test-Path -Path "$env:TEMP\Computer.txt") |
|
|
|
|
|
{ |
|
|
|
|
|
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt" |
|
|
|
|
|
} |
|
|
|
|
|
if (Test-Path -Path "$env:TEMP\User.txt") |
|
|
|
|
|
{ |
|
|
|
|
|
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gpupdate /force |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# Call MeetNow unless binary value is reverted |
|
|
# Call MeetNow unless binary value is reverted |
|
|
if (-not $Script:MeetNow) |
|
|
if (-not $Script:MeetNow) |
|
|
{ |
|
|
{ |
|
@ -15237,10 +15222,6 @@ public static void PostMessage() |
|
|
MeetNow -Show |
|
|
MeetNow -Show |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word |
|
|
|
|
|
# https://github.com/PowerShell/PowerShell/issues/21070 |
|
|
|
|
|
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore |
|
|
|
|
|
|
|
|
|
|
|
# Kill all explorer instances in case "launch folder windows in a separate process" enabled |
|
|
# Kill all explorer instances in case "launch folder windows in a separate process" enabled |
|
|
Get-Process -Name explorer | Stop-Process -Force |
|
|
Get-Process -Name explorer | Stop-Process -Force |
|
|
Start-Sleep -Seconds 3 |
|
|
Start-Sleep -Seconds 3 |
|
@ -15331,11 +15312,29 @@ public static void PostMessage() |
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage) |
|
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Sophia").Show($ToastMessage) |
|
|
#endregion Toast notifications |
|
|
#endregion Toast notifications |
|
|
|
|
|
|
|
|
|
|
|
# Apply policies found in registry to re-build database database because gpedit.msc relies in its own database |
|
|
|
|
|
if ((Test-Path -Path "$env:TEMP\Computer.txt") -or (Test-Path -Path "$env:TEMP\User.txt")) |
|
|
|
|
|
{ |
|
|
|
|
|
if (Test-Path -Path "$env:TEMP\Computer.txt") |
|
|
|
|
|
{ |
|
|
|
|
|
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\Computer.txt" |
|
|
|
|
|
} |
|
|
|
|
|
if (Test-Path -Path "$env:TEMP\User.txt") |
|
|
|
|
|
{ |
|
|
|
|
|
& "$PSScriptRoot\..\Binaries\LGPO.exe" /t "$env:TEMP\User.txt" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gpupdate /force |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# PowerShell 5.1 (7.5 too) interprets 8.3 file name literally, if an environment variable contains a non-Latin word |
|
|
|
|
|
# https://github.com/PowerShell/PowerShell/issues/21070 |
|
|
|
|
|
Get-ChildItem -Path "$env:TEMP\Computer.txt", "$env:TEMP\User.txt" -Force -ErrorAction Ignore | Remove-Item -Force -ErrorAction Ignore |
|
|
|
|
|
|
|
|
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose |
|
|
Write-Verbose -Message "https://t.me/sophia_chat" -Verbose |
|
|
Write-Verbose -Message "https://t.me/sophianews" -Verbose |
|
|
Write-Verbose -Message "https://t.me/sophianews" -Verbose |
|
|
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose |
|
|
Write-Verbose -Message "https://discord.gg/sSryhaEv79" -Verbose |
|
|
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose |
|
|
Write-Verbose -Message "https://ko-fi.com/Q5Q51QUJC" -Verbose |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
#endregion Post Actions |
|
|
#endregion Post Actions |
|
|
|
|
|
|
|
|