Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion KAPE/SRUM-Repair.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions KAPE/SUM-Repair.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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 "{<GUID>}.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;
Expand Down
Loading