You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 17, 2024. It is now read-only.
Write-Host "Installing Chocolatey..." -ForegroundColor Black -BackgroundColor Yellow
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "You didn't run this script as an Administrator. This script will self elevate to run as an Administrator and continue."
$length = 5
for ($i = 1; $i -le $length; $i++) {
$j = $length - $i
Write-Host "Elevating in $j seconds..." -ForegroundColor white -BackgroundColor darkred