Files
admin/env/api/env.ps1
T
Alex Bezdieniezhnykh 5673eeade9 add queue offsets to user
2025-04-16 01:29:58 +03:00

11 lines
782 B
PowerShell

f (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
$arguments = "-Command `"& { Set-ExecutionPolicy Bypass -Scope Process -Force; & '$PSCommand' $($args -join ' ') }`""
Start-Process -Verb RunAs -FilePath "powershell.exe" -ArgumentList $arguments
exit # Terminate the current non-elevated script
}
& "setx" "foo" "bar"
setx ASPNETCORE_ConnectionStrings__AzaionDb Host=localhost;Database=azaion;Username=azaion_reader;Password=Az@1on_re@d!only@$Az;
setx ASPNETCORE_ConnectionStrings__AzaionDbAdmin Host=localhost;Database=azaion;Username=azaion_admin;Password=Az@1on_admin$$@r;
setx ASPNETCORE_JwtConfig__Secret sdkfjghbsdfklhjgvbsdkljfhbvasklhfgsdfvh