Code Snippets

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...

Exchange2010_RecoverServer

Exchange2010_RecoverServer

C:UserssspadminDownloadsSP3>setup.com /m:recoverserver Willkommen bei der unbeaufsichtigten Installation von Microsoft Exchange Server 2010 Exchange-Setup wird vorbereitet Die Setupdateien werden kopiert ABGESCHLOSSEN Die folgenden Serverrollen werden geupdated. Sprachen Hub-Transport-Rolle Clientzugriffsrolle Postfachrolle Verwaltungstools Die Voraussetzungen für Microsoft Exchange Server werden überprüft Voraussetzungen werden konfiguriert ABGESCHLOSSEN Language Pack-Überprüfungen ABGESCHLOSSEN Hub-Transport-Rolle ABGESCHLOSSEN ClientAccess-Rolle ABGESCHLOSSEN Überprüfung der Mailbox-Rolle ABGESCHLOSSEN Konfigurieren von...

Exchange CU failed – SharedWebConfig Access Denied

Exchange CU failed – SharedWebConfig Access Denied

[03.03.2021 20:51:55.0663] [1] [ERROR] The following error was generated when "$error.Clear(); $dependentAssemblyGeneratorExePath = [System.IO.Path]::Combine($RoleInstallPath, "bin", "DependentAssemblyGenerator.exe"); $exchangeBinPath = [System.IO.Path]::Combine($RoleInstallPath, "bin"); $clientAccessPath = [System.IO.Path]::Combine($RoleInstallPath, "ClientAccess"); $sharedWebConfig = [System.IO.Path]::Combine($RoleInstallPath, "ClientAccess", "SharedWebConfig.config"); $a = &"$dependentAssemblyGeneratorExePath" -exchangePath "$exchangeBinPath" -exchangePath "$clientAccessPath" -configFile "$sharedWebConfig"; $allOutput = @(); $a | % { $allOutput += $_ }; Write-ExchangeSetupLog -Info ($allOutput -join "`r`n"); Stop-SetupService...

dc01.techblog.local_ext.txt

dc01.techblog.local_ext.txt

keyUsage=digitalSignature,keyEncipherment extendedKeyUsage=serverAuth subjectKeyIdentifier=hash subjectAltName = @alt_names [alt_names] DNS.1 = dc01.techblog.local DNS.2 = dc01 DNS.3 = techblog.local