This commit is contained in:
rgmcewan 2024-10-28 23:10:10 +10:00
parent 33d134735a
commit dd707225d0

View file

@ -1,3 +1,12 @@
#code to make sure the script is running as admin
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))
{
# Relaunch as an elevated process:
Start-Process powershell.exe "-ExecutionPolicy","bypass","-File",('"{0}"' -f $MyInvocation.MyCommand.Path) -Verb RunAs
exit
}
####################################
# Base System Changes and UI Tweaks
####################################