Skip to content

Commit 30d9746

Browse files
Merge pull request #8 from cert-cwatch/remove-warning-popup
Remove warning pop-up in SUM/SRUM Repair scripts
2 parents bc4c97f + a3986fc commit 30d9746

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

KAPE/SRUM-Repair.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Set-Location -Path $OutputPath
128128
Start-Process -Wait -NoNewWindow "esentutl.exe" -argumentlist "/r sru /i"
129129

130130
# Execute this command esentutl.exe /p SRUDB.dat
131-
$Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $OutputPath\SRUDB.dat" -PassThru
131+
$Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $OutputPath\SRUDB.dat /o" -PassThru
132132
$count = 0
133133
$window = $false
134134
$wshell = New-Object -ComObject wscript.shell;

KAPE/SUM-Repair.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Get-ChildItem $workingSUM -Recurse | ForEach-Object {
105105
}
106106

107107
# Execute this command esentutl.exe /p Current.mdb
108-
Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\Current.mdb -PassThru"
109-
$currentProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\Current.mdb" -PassThru
108+
Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\Current.mdb /o -PassThru"
109+
$currentProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\Current.mdb /o" -PassThru
110110
$count = 0
111111
$window = $false
112112
$wshell = New-Object -ComObject wscript.shell;
@@ -125,8 +125,8 @@ do { Start-Sleep 1 }
125125
while (Get-Process -Id $currentProg.Id -Ea SilentlyContinue)
126126

127127
# Execute this command esentutl.exe /p SystemIdentity.mdb
128-
Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\SystemIdentity.mdb -PassThru"
129-
$siProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\SystemIdentity.mdb" -PassThru
128+
Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\SystemIdentity.mdb /o -PassThru"
129+
$siProg = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\SystemIdentity.mdb /o" -PassThru
130130
$count = 0
131131
$window = $false
132132
$wshell = New-Object -ComObject wscript.shell;
@@ -147,8 +147,8 @@ while (Get-Process -Id $siProg.Id -Ea SilentlyContinue)
147147
# For each file found
148148
Get-ChildItem | Where-Object { $_.Name -match '^(\{[-A-Z0-9]+?\})\.mdb' } | ForEach-Object{
149149
# Execute this command esentutl.exe /p "{<GUID>}.mdb"
150-
Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\$_ -PassThru"
151-
$Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\$_" -PassThru
150+
Write-Host (Get-Date).ToString() "| Running esentutl.exe -argumentlist /p $workingSUM\$_ /o -PassThru"
151+
$Prog = Start-Process -NoNewWindow "esentutl.exe" -argumentlist "/p $workingSUM\$_ /o" -PassThru
152152
$count = 0
153153
$window = $false
154154
$wshell = New-Object -ComObject wscript.shell;

0 commit comments

Comments
 (0)