feat(scanner): validate elevated live automation
This commit is contained in:
@@ -9,8 +9,17 @@ $ErrorActionPreference = "Stop"
|
||||
|
||||
try {
|
||||
$project = (Resolve-Path -LiteralPath $ProjectRoot).Path
|
||||
$logDir = Join-Path $project "outputs\admin-start"
|
||||
New-Item -ItemType Directory -Force -Path $logDir | Out-Null
|
||||
$logPath = Join-Path $logDir "admin-dev.log"
|
||||
try {
|
||||
Start-Transcript -Path $logPath -Append | Out-Null
|
||||
} catch {
|
||||
Write-Host "WARNUNG: Admin-Start-Log konnte nicht geschrieben werden: $($_.Exception.Message)" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
Write-Host "Projekt: $project"
|
||||
Write-Host "Admin-Log: $logPath"
|
||||
|
||||
# A UAC-elevated process gets its environment rebuilt fresh from the
|
||||
# registry; it does NOT inherit PATH edits that only exist in the calling
|
||||
|
||||
Reference in New Issue
Block a user