+ Enhance exchange 2010 modes
This commit is contained in:
parent
0ff6ae899e
commit
8c0a56da93
|
@ -94,7 +94,8 @@ Foreach ($DB in $MountedDB) {
|
||||||
if ($no_copystatus == 0) {
|
if ($no_copystatus == 0) {
|
||||||
$ps .= '
|
$ps .= '
|
||||||
# Test CopyStatus
|
# Test CopyStatus
|
||||||
$CopyStatusResult = Get-MailboxDatabaseCopyStatus -Identity $DB.Name
|
$tmp_name = $DB.Name + "\" + $DB.Server
|
||||||
|
$CopyStatusResult = Get-MailboxDatabaseCopyStatus -Identity $tmp_name
|
||||||
Write-Host "[contentindexstate=" $CopyStatusResult.ContentIndexState "][[contentindexerrormessage=" $CopyStatusResult.ContentIndexErrorMessage "]]" -NoNewline
|
Write-Host "[contentindexstate=" $CopyStatusResult.ContentIndexState "][[contentindexerrormessage=" $CopyStatusResult.ContentIndexErrorMessage "]]" -NoNewline
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ sub get_powershell {
|
||||||
$ps .= '
|
$ps .= '
|
||||||
try {
|
try {
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
$results = Test-OutlookWebServices -Identity "' . $options{mailbox} . '"
|
$results = Test-OutlookWebServices -WarningAction:SilentlyContinue -Identity "' . $options{mailbox} . '"
|
||||||
} catch {
|
} catch {
|
||||||
Write-Host $Error[0].Exception
|
Write-Host $Error[0].Exception
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue