import depuis ancien GitHub

This commit is contained in:
David Wuibaille
2025-10-31 08:38:13 +01:00
parent 6f3aeedc93
commit 6a2f2de58e
745 changed files with 178444 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
$VbootActive = 0
$logfile = "C:\ldprovisioning\ProvisionGUI.exe.log"
if (Test-Path $logfile) {
$inf = Get-Content -path $logfile
$lastActionError = "xxx"
$display = 0
foreach ($line in $inf) {
if (($line -like "*SUCCESS*") -and ($line -like "*Vboot*")) { $VbootActive = 1 }
}
}
if ($VbootActive -eq 1) { Add-Content -Path "C:\exploit\vbooton.flg" -Value "vboot" }

View File

@@ -0,0 +1,13 @@
# Detect VBoot from Ivanti Provisioning Log
Small PowerShell helper that scans the Ivanti provisioning log and drops a **flag file** if **Vboot** is reported as successful.
- Reads: `C:\ldprovisioning\ProvisionGUI.exe.log`
- Looks for lines containing **both** `SUCCESS` and `Vboot`
- If found, creates: `C:\exploit\vbooton.flg` (with content `vboot`)
## Usage
Use this script during provisioning to detect whether **VBoot** was used (e.g., to trigger a reinstall workflow).
Example:
```powershell
powershell -ExecutionPolicy Bypass -File .\detect-vboot.ps1