From 57855f01d3d30dc842075b644ad593b9e8902399 Mon Sep 17 00:00:00 2001 From: Emad Adel <19177373+emadadel4@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:48:21 +0200 Subject: [PATCH 1/6] Update start.ps1 --- Initialize/start.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Initialize/start.ps1 b/Initialize/start.ps1 index 2ab16e3b..3852c8ec 100644 --- a/Initialize/start.ps1 +++ b/Initialize/start.ps1 @@ -32,11 +32,8 @@ $itt = [Hashtable]::Synchronized(@{ }) -$currentPid = [System.Security.Principal.WindowsIdentity]::GetCurrent() -$principal = [System.Security.Principal.WindowsPrincipal]$currentPid -$administrator = [System.Security.Principal.WindowsBuiltInRole]::Administrator - -if (-not $principal.IsInRole($administrator)) +# Ask user +if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { $newProcess = Start-Process -FilePath "PowerShell" -ArgumentList "-ExecutionPolicy Bypass -NoProfile -Command `"$($MyInvocation.MyCommand.Definition)`"" -Verb RunAs exit From f11e42dad109926873393236df3cd49da566620c Mon Sep 17 00:00:00 2001 From: Emad Adel <19177373+emadadel4@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:48:23 +0200 Subject: [PATCH 2/6] Update itt.ps1 --- itt.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/itt.ps1 b/itt.ps1 index 0189b5da..ac480cfc 100644 --- a/itt.ps1 +++ b/itt.ps1 @@ -47,11 +47,8 @@ $itt = [Hashtable]::Synchronized(@{ }) -$currentPid = [System.Security.Principal.WindowsIdentity]::GetCurrent() -$principal = [System.Security.Principal.WindowsPrincipal]$currentPid -$administrator = [System.Security.Principal.WindowsBuiltInRole]::Administrator - -if (-not $principal.IsInRole($administrator)) +# Ask user +if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { $newProcess = Start-Process -FilePath "PowerShell" -ArgumentList "-ExecutionPolicy Bypass -NoProfile -Command `"$($MyInvocation.MyCommand.Definition)`"" -Verb RunAs exit From 5a3641cea5dcda808252c5feb791b46d2d6ffd94 Mon Sep 17 00:00:00 2001 From: Emad Adel <19177373+emadadel4@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:50:32 +0200 Subject: [PATCH 3/6] Update start.ps1 --- Initialize/start.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Initialize/start.ps1 b/Initialize/start.ps1 index 3852c8ec..2d472791 100644 --- a/Initialize/start.ps1 +++ b/Initialize/start.ps1 @@ -44,7 +44,7 @@ try { $Host.UI.RawUI.WindowTitle = "ITT - #StandWithPalestine" } catch { - Write-Warning "Media player not loaded because you're using Windows Lite or have disabled it." + Write-Warning "Media player not loaded because you're using Windows Lite or have disabled." } if (-not (Test-Path -Path $itt.ittDir)) { From 6bb80be6d61add82b4307b98a792ce20444d82f2 Mon Sep 17 00:00:00 2001 From: Emad Adel <19177373+emadadel4@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:50:34 +0200 Subject: [PATCH 4/6] Update itt.ps1 --- itt.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itt.ps1 b/itt.ps1 index ac480cfc..6d4ce81d 100644 --- a/itt.ps1 +++ b/itt.ps1 @@ -59,7 +59,7 @@ try { $Host.UI.RawUI.WindowTitle = "ITT - #StandWithPalestine" } catch { - Write-Warning "Media player not loaded because you're using Windows Lite or have disabled it." + Write-Warning "Media player not loaded because you're using Windows Lite or have disabled." } if (-not (Test-Path -Path $itt.ittDir)) { From f2c6146d41605c0cd27eed561265a0bb0eb4c8d6 Mon Sep 17 00:00:00 2001 From: Emad Adel <19177373+emadadel4@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:55:13 +0200 Subject: [PATCH 5/6] Update README.md --- templates/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/README.md b/templates/README.md index 5e39bc2b..cee20825 100644 --- a/templates/README.md +++ b/templates/README.md @@ -251,4 +251,4 @@ English