Code Snippets

Geiserpostfächer: Remove-StoreMailbox

Geiserpostfächer: Remove-StoreMailbox

[PS] C:\Windows\system32>Remove-StoreMailbox -Identity d7e6d88b-a905-4a6a-bf7d-270b64e734f3 -Database DB13 -MailboxState Softdeleted The mailbox "d7e6d88b-a905-4a6a-bf7d-270b64e734f3" isn’t disconnected + CategoryInfo : NotSpecified: (:) [Remove-StoreMailbox], ManagementObjectNotFoundException + FullyQualifiedErrorId : [Server=EX0401,RequestId=7f221125-935c-4713-9584-5971fd32bf5e,TimeStamp=28.06.2021 12:48:57] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 95C8F437, Microsoft.Exchange.Management.StoreTasks.RemoveStoreMailbox + PSComputerName : ex0401.test.local

Geisterpostfächer: Get-MailboxStatistics

Geisterpostfächer: Get-MailboxStatistics

[PS] C:\Windows\system32>$dbs = Get-MailboxDatabase [PS] C:\Windows\system32>$dbs | foreach{Get-MailboxStatistics -Database $_.Name | where {$_.Displayname -like "*test*"} | select Identity, Displayname, TotalItemSize, Database, Disconnect*} Identity : d7e6d88b-a905-4a6a-bf7d-270b64e734f3 DisplayName : Test User01 TotalItemSize : 4.795 GB (5,148,164,291 bytes) Database : DB14 DisconnectDate : DisconnectReason : Identity : c0265cf0-8935-419a-921c-107095aa908b DisplayName : Test User02 TotalItemSize : 4.04 GB (4,337,656,320 bytes)...

Get-HybridConfiguration

Get-HybridConfiguration

[PS] C:\Windows\system32>Get-HybridConfiguration | fl Domains Domains : {schweigerstechblog.de, autod:schweigerstechblog.de, secondDomain.tld, thridDomain.tld}

Get-MailboxDatabase | Status

Get-MailboxDatabase | Status

[PS] C:\Windows\system32>Get-MailboxDatabase -Status | select Name, DatabaseSize, AvailableNewMailboxSpace Name : DB01 DatabaseSize : 154.9 GB (166,295,764,992 bytes) AvailableNewMailboxSpace : 10.055 GB (10,132,462,080 bytes) Name : DB02 DatabaseSize : 104.8 GB (112,474,456,064 bytes) AvailableNewMailboxSpace : 89.28 MB (93,618,176 bytes)

Get-MailboxStatistics | SoftDeleted Mailbox

Get-MailboxStatistics | SoftDeleted Mailbox

[PS] C:\Windows\system32>Get-MailboxStatistics -Database MDB01 | Where-Object {$_.DisconnectDate -ne $null} | Select-Object Displayname, Database, DisconnectDate, DisconnectReason, MailboxGuid DisplayName : Migrierter Benutzer Database : MDB01 DisconnectDate : 07.04.2021 19:42:14 DisconnectReason : SoftDeleted MailboxGuid : cbcf1876-d888-4d65-852d-0e2667c54ae4

Get-MailboxStatistics | Deleted Mailbox

Get-MailboxStatistics | Deleted Mailbox

[PS] C:Windowssystem32>Get-MailboxStatistics -Database MDB01 | Where-Object {$_.DisconnectDate -ne $null} | Select-Object Displayname, Database, DisconnectDate, DisconnectReason, MailboxGuid DisplayName : Test Benutzer Database : MDB01 DisconnectDate : 18.03.2021 13:23:25 DisconnectReason : Disabled MailboxGuid : d4c4854a-0be4-4c43-a7d6-9bb552103791

Get-MailboxFolderStatistics | Deletions

Get-MailboxFolderStatistics | Deletions

[PS] C:Windowssystem32>Get-Mailbox <USERNAME> | Get-MailboxFolderStatistics | where {$_.Name -like "Deletions"} | fl Identity, FolderPath, FolderAndSubfolderSize, ItemsInFolderAndSubfolders Identity : test.local/TEST/Users/test01/Deletions FolderPath : /Deletions FolderAndSubfolderSize : 11.3 GB (12,135,499,952 bytes) ItemsInFolderAndSubfolders : 67962

Get-MailboxDatabase | RetentionTime

Get-MailboxDatabase | RetentionTime

[PS] C:\Windows\system32>Get-MailboxDatabase | select Name, MailboxRetention, DeletedItemRetention Name MailboxRetention DeletedItemRetention —- —————- ——————– DB01 30.00:00:00 14.00:00:00 DB02 30.00:00:00 14.00:00:00

Exchange_DisclaimerHTML

Exchange_DisclaimerHTML

<p><div style="background-color:#FFEB9C; width:100%; border-style: solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:Calibri; color:Black; text-align: left;"><span style="color:#9C6500"; font-weight:bold;>ACHTUNG:</span> Diese E-Mail stammt von einem externen Absender. Bitte vermeide es, Anhänge oder externe Links zu öffnen.</div><br></p>

Exchange2010_LPVersioning.xml

Exchange2010_LPVersioning.xml

[03.18.2021 09:13:23.0475] [0] The backup copy of the install path is ‚C:\Program Files\Microsoft\Exchange Server\V14‘. [03.18.2021 09:13:23.0475] [0] The backup copy of the previously installed version is ‚14.3.123.4‘. [03.18.2021 09:13:23.0475] [0] The installation mode is set to: ‚BuildToBuildUpgrade‘. [03.18.2021 09:13:23.0521] [0] [ERROR] Setup hat ‚LPVersioning.xml‘ nicht gefunden. [03.18.2021 09:13:23.0521] [0] [ERROR] Die LPVersioning-Datei besitzt einen ungültigen...