@@ -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 }
125125while (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
148148Get-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