DotNet+VC++ ps1
DotNet+VC++ ps1
BackgroundColor = "Black"
$host.ui.RawUI.ForegroundColor = "White"
Clear-Host
$currentUser = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = New-Object Security.Principal.WindowsPrincipal($currentUser)
if (-not
$principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
Start-Process powershell -Verb runAs -ArgumentList "-NoProfile -
ExecutionPolicy Bypass -File `"$PSCommandPath`""
exit
}
}
Check-Admin