From a3986fc2baca8388339f98e54ff8ac21320ac353 Mon Sep 17 00:00:00 2001 From: cert-cwatch <149478619+cert-cwatch@users.noreply.github.com> Date: Fri, 9 Jan 2026 13:57:01 +0100 Subject: [PATCH] Remove warning --- KAPE/SRUM-Repair.ps1 | 2 +- KAPE/SUM-Repair.ps1 | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/KAPE/SRUM-Repair.ps1 b/KAPE/SRUM-Repair.ps1 index 96f5355..91a4189 100644 --- a/KAPE/SRUM-Repair.ps1 +++ b/KAPE/SRUM-Repair.ps1 @@ -128,7 +128,7 @@ Set-Location -Path $OutputPath Start-Process -Wait -NoNewWindow "esentutl.exe" -argumentlist "/r sru /i" # Execute this command esentutl.exe /p SRUDB.dat -$Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $OutputPath\SRUDB.dat" -PassThru +$Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $OutputPath\SRUDB.dat /o" -PassThru $count = 0 $window = $false $wshell = New-Object -ComObject wscript.shell; diff --git a/KAPE/SUM-Repair.ps1 b/KAPE/SUM-Repair.ps1 index 43ca620..f6be148 100644 --- a/KAPE/SUM-Repair.ps1 +++ b/KAPE/SUM-Repair.ps1 @@ -105,8 +105,8 @@ Get-ChildItem $workingSUM -Recurse | ForEach-Object { } # Execute this command esentutl.exe /p Current.mdb -Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\Current.mdb -PassThru" -$currentProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\Current.mdb" -PassThru +Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\Current.mdb /o -PassThru" +$currentProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\Current.mdb /o" -PassThru $count = 0 $window = $false $wshell = New-Object -ComObject wscript.shell; @@ -125,8 +125,8 @@ do { Start-Sleep 1 } while (Get-Process -Id $currentProg.Id -Ea SilentlyContinue) # Execute this command esentutl.exe /p SystemIdentity.mdb -Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\SystemIdentity.mdb -PassThru" -$siProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\SystemIdentity.mdb" -PassThru +Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\SystemIdentity.mdb /o -PassThru" +$siProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\SystemIdentity.mdb /o" -PassThru $count = 0 $window = $false $wshell = New-Object -ComObject wscript.shell; @@ -147,8 +147,8 @@ while (Get-Process -Id $siProg.Id -Ea SilentlyContinue) # For each file found Get-ChildItem | Where-Object { $_.Name -match '^(\{[-A-Z0-9]+?\})\.mdb' } | ForEach-Object{ # Execute this command esentutl.exe /p "{}.mdb" - Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\$_ -PassThru" - $Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\$_" -PassThru + Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\$_ /o -PassThru" + $Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\$_ /o" -PassThru $count = 0 $window = $false $wshell = New-Object -ComObject wscript.shell;