ADMIN FIX 2
This commit is contained in:
parent
61170ca126
commit
296203445d
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
#========================================================
|
#========================================================
|
||||||
# Starts Powershell with the Modules and as hidden
|
# Starts Powershell with the Modules and as hidden
|
||||||
#========================================================
|
#========================================================
|
||||||
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 }
|
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 }
|
||||||
Powershell-Cmdlet -Confirm:$false
|
|
||||||
[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")
|
||||||
[void] [System.Reflection.Assembly]::LoadWithPartialName("PresentationFramework")
|
[void] [System.Reflection.Assembly]::LoadWithPartialName("PresentationFramework")
|
||||||
|
|
Loading…
Reference in a new issue