admin fix
This commit is contained in:
parent
822e9033ff
commit
b9fe084376
1 changed files with 1 additions and 3 deletions
|
@ -1,8 +1,6 @@
|
||||||
#========================================================
|
#========================================================
|
||||||
# Starts Powershell with the Modules and as hidden
|
# Starts Powershell with the Modules and as hidden
|
||||||
#========================================================
|
#========================================================
|
||||||
ECHO 'Y' |
|
|
||||||
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
|
|
||||||
|
|
||||||
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
|
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing")
|
||||||
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
|
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
|
||||||
|
@ -20,7 +18,7 @@ $LabelFont = New-Object System.Drawing.Font("Arial",30,[System.Drawing.FontStyle
|
||||||
|
|
||||||
Clear-Host
|
Clear-Host
|
||||||
$host.ui.RawUI.WindowTitle = "Enhance Windows Powershell"
|
$host.ui.RawUI.WindowTitle = "Enhance Windows Powershell"
|
||||||
#powershell.exe -WindowStyle Hidden -file > $null
|
powershell.exe -WindowStyle Hidden -file > $null
|
||||||
|
|
||||||
#========================================================
|
#========================================================
|
||||||
# Writes out OlaYZen's Name
|
# Writes out OlaYZen's Name
|
||||||
|
|
Loading…
Reference in a new issue