REM ViperLink Cloud Windows administrator install: all users and a machine startup task.
REM Use on your authorized unlocked computer. Match its keyboard layout.
REM Approve the normal UAC prompt yourself. No approval or password is typed.
REM Includes verified Node runtime. Runs as LocalService and waits for private enrollment.
DEFAULT_STRING_DELAY 10
DELAY 2000
GUI r
DELAY 1200
STRING powershell.exe -NoLogo -NoProfile
ENTER
DELAY 4000
STRING & { $ErrorActionPreference='Stop'; if ($ExecutionContext.SessionState.LanguageMode -ne 'FullLanguage') { throw 'Use your administrator-approved installer: PowerShell language is restricted.' }; if ((Get-ExecutionPolicy -Scope MachinePolicy) -ne 'Undefined' -or (Get-ExecutionPolicy -Scope UserPolicy) -ne 'Undefined' -or (Get-ExecutionPolicy) -eq 'AllSigned') { throw 'Use your administrator-approved installer: a managed or signing policy is configured.' }; $sid=[Security.Principal.WindowsIdentity]::GetCurrent().User.Value; $c='& { $ErrorActionPreference=''Stop''; if ($ExecutionContext.SessionState.LanguageMode -ne ''FullLanguage'') { throw ''Use your administrator-approved installer: PowerShell language is restricted.'' }; if ((Get-ExecutionPolicy -Scope MachinePolicy) -ne ''Undefined'' -or (Get-ExecutionPolicy -Scope UserPolicy) -ne ''Undefined'' -or (Get-ExecutionPolicy) -eq ''AllSigned'') { throw ''Use your administrator-approved installer: a managed or signing policy is configured.'' }; $p=Join-Path $env:TEMP (''viperlink-''+[guid]::NewGuid()+''.ps1''); try { Invoke-WebRequest -UseBasicParsing https://www.orbitusrobotics.com/v/install.ps1 -OutFile $p -TimeoutSec 120 -ErrorAction Stop; $b=[IO.File]::ReadAllBytes($p); $h=[Security.Cryptography.SHA256]::Create(); try { $s=[BitConverter]::ToString($h.ComputeHash($b)).Replace(''-'','''').ToLowerInvariant() } finally { $h.Dispose() }; if ($s -ne ''8705ffe47b91e234239adbe3782b6317973b2500058c4ce1914ef631712dd252'') { throw ''Installer SHA-256 mismatch. Download the latest command or Flipper script from the website.'' }; Write-Host (''Verified installer: ''+$p); & ([scriptblock]::Create([Text.Encoding]::UTF8.GetString($b))) -Component cloud -Scope Machine -ControlUser ORBITUS_CALLER_SID } finally { if (Test-Path -LiteralPath $p) { Remove-Item -LiteralPath $p -Force } } }'; $c=$c.Replace('ORBITUS_CALLER_SID',$sid); $exe=if ($PSVersionTable.PSEdition -eq 'Core') { 'pwsh.exe' } else { 'powershell.exe' }; Start-Process -FilePath (Join-Path $PSHOME $exe) -Verb RunAs -ArgumentList ('-NoLogo -NoProfile -NoExit -Command '+[char]34+$c+[char]34) -ErrorAction Stop }
ENTER
