c
This commit is contained in:
parent
33d134735a
commit
dd707225d0
1 changed files with 9 additions and 0 deletions
|
@ -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
|
# Base System Changes and UI Tweaks
|
||||||
####################################
|
####################################
|
||||||
|
|
Loading…
Reference in a new issue