zettelkasten/OneNoteExport/Technik/Powershell/Exchange 2010/23_Exhange 2010.md
2023-08-17 19:32:37 +02:00

9.7 KiB

Exhange 2010

Sonntag, 5. August 2012

15:11

 

Bereiche zu einer Rollegruppe zuweisen :

 

Computergenerierter Alternativtext: Fehierbehebung: Es ist nicht möglich, einer bestehenden Rollengruppe mit Set-RoleGroup einen Bereich hinzuzufügen Get-ManageinentRoleAssignrnent -RoleAssignee 'Help Desk Level 2' Set-ManageinentRoleAssignrnent -RecipientOrganizationalUnitScope 'contoso.corn/Exchange Users'{width="10.072916666666666in" height="2.15625in"}

 

 

Computergenerierter Alternativtext: Die Verwaltungsrolle ist leer und muss jetzt mit Angaben über die Skripts versehen werden, die Sie den Inhabern der Rolle zur Verfügung stellen möchten. Die Skripts müssen Sie auf jedem Server in das Stan dardverzeichnis für Remoteskripts kopieren (\\Progra m Files\\Microsoft\\Excha nge Server\\ Vi 4\\Rem ote Scripts\\). Dadurch, dass die Skripts hier platziert werden und nicht im standardmäßigen Skript verzeichnis, führen Sie eine deutliche Trennung zwischen den lokal und den über das Netzwerk auszuführenden Skripts herbei. Anschließend können Sie für jedes Skript einen Rolleneintrag hinzu fügen:{width="10.21875in" height="2.3229166666666665in"}

 

 

Remotescripts :

 

 

 

Rollen Richtlinien usw:

 

Es gibt

  • Rollen

  • Bereiche

  • Rollengruppen

  • Rollenzuweisung

  • Zuweisungsrichtlinien

 

Rollen sagen aus was man machen darf für eine bestimmte Aufgabe

 

Bereiche sagen aus wo was in der AD gemacht werden darf

 

Rollengruppen Gruppierungen von Aufgaben, wie zb Postfachsuche, die benötigt zb 11 Rollen daraus kann man eine Gruppe bilden.

 

Rollenzuweisung ist der Klebstoff zwischen den Rollen / -gruppen und den Benutzer.

 

Zuweisungsrichtlinien um standartmäßig rechte für Benutzer zuweisen. Jedem Benutzer kann nur eine Richtlinie zugewiesen werden

 

 

Script für Rollenzuweisung :

 

Computergenerierter Alternativtext: Wenn Sie nicht selbst an den Mechanismen von Rollen, Zuweisungen und Richtlinien herumbas tein möchten, können Sie auch ein Skript nutzen, das Microsoft veröffentlicht hat und das die Arbeit für Sie übernimmt. Sie finden es im Exchange-Blog auf http://insexchangeteain.com/. Suchen Sie dort nach ManageGroupManagetnentRole.psl, laden Sie es herunter und führen Sie es aus, um die notwendigen Anpassungen vorzunehmen.{width="8.270833333333334in" height="1.4375in"}

 

 

 

 

BypassSecutityGroupMemberCheck Was ist das genau ?

 

 

 

 

Automatische Antwort für Benutzer einrichten :

 

Computergenerierter Alternativtext: Set-MailboxAutoReplyConfiguration -Identity 'Kim Akers' -StartTiriie '12/10/2010 19:30' -AutoReplyState Enabled -EndTime '12/15/2010 07:00' -InternalMessage 'Kim Akers is on vacation and will respond to your message after she returns on December 15' -ExternalMessage 'Kirn Akers is on vacation' -ExternalAudience 'Known' Um diese Funktion für einen Benutzer zu deaktivieren, geben Sie Folgendes ein: Set-MailboxAutoReplyConfiguration -Identity 'Kim Akers' -AutoReplyState Disabled{width="7.9375in" height="1.9375in"}

 

 

 

Computergenerierter Alternativtext: Maskenvariablen für E-Mail-Adressrichtlinien Variable Wert %g Vorname Mittelinitiale Nachname %d Anzeigename Exchange-Alias %xs Verwendet »x« Buchstaben des Nachnamens. Wenn z. B. der Nachname Schmitt lautet und die Variable %2s, fügt Exchange »Sc« ein. %xg Verwendet »x« Buchstaben des Vornamens. Wenn z. B. der Vorname »Ariane« lautet und die Variable %3g, fügt Exchange »An« ein.{width="6.677083333333333in" height="2.5208333333333335in"}

 

 

 

 

 

ExchangeCmdlets :

 

http://www.dornmx.de/lists/exchangecmdlets/allitems.aspx

 

 

 

 

 

 

To get users mailbox list in an Exchange Database.

PS

To view the available white space of the exchange databases.

PS

To view SoftDeleted mailboxes

PS

Selecting the softDeleted mailbox using the MailboxGUID and remove the selected SoftDeleted mailbox

PS
PS

Selecting all the soft deleted mailboxes

PS
PS

 

Aus <http://certsclub.wordpress.com/2013/02/01/fail-to-clean-up-the-source-mailbox-after-the-mailbox-move/>

 

 

 

 

 

 

 

Microsoft Exchange 2010 - Search does not return all the results

 

 

Exchange Search Indexer has temporarily disabled indexing of the Mailbox Database Database1 (GUID = 32299692-d5af-4415-8ca0-36f9d485ddb6) due to an error (Microsoft.Mapi.MapiExceptionNotFound: MapiExceptionNotFound: Unable to update CI Retry table (hr=0x80004005, ec=-1601)

 

 

After this error, it was almost that the server reached a checkpoint and would not return any older items in the search result. We restarted the Microsoft Exchange Search Indexer and the Microsoft Search (exchange) service but it did not resolve the problem. To test whether there are any corruption problems, we ran the script for testing exchange search

 

 

C:\Windows\system32>test-exchangesearch -identity Username -verbose

 

 

Everything seemed to be normal, except for the search for older items.

Exchange provides a range of scripts that are present in the \Scripts directory.  By Default this is C:\Program Files\Microsoft\Exchange Server\V14\Scripts for Exchange 2010.  Exchange 2010 SP1 introduced the Content Index Troubleshooter Script -- Troubleshoot-CI.ps1.  This script can monitor and perform troubleshooting on a server's CI catalogs and can detect and resolve symptoms such as

  • Deadlock: Exchange Search deadlocks waiting on threads from MSSearch

  • Corruption: One or more search indices are corrupted

  • Stall: Similar to deadlock in that the indices are not getting updated

  • Backlog: The Search catalog is backlogged resulting in missing index searches

 

 

To fix this problem we had to rebuild the search indexer catalog. The easy way is to use the script under the scripts folder

 

 

ResetSearchIndex.ps1 -force -all oder Databasename

 

 

This will delete all the catalog folders and rebuild the catalog. The search will not be accessible until the catalog crawling is complete. We can monitor the search index to see how many mailboxes are left to crawl (I will write a blog about that soon). I do recommend running the rebuild after business hours if the database is anything bigger than 500GB as it does take a long time (>5 hours) to rebuild the catalog and may cause outlook to be lag if you are running in online mode.

 

Log Dateien RPC :

C:\Program Files\Microsoft\Exchange Server\V14\Logging\RPC Client Access

 

Auflisten von Clientverbindungen :

Get-MailboxServer --Identity ServerName | Get-LogonStatistics | Format-List UserName,ApplicationId, ClientVersion

 

 

Verwalten von Edge-Abonnements

 

 

 

https://technet.microsoft.com/de-de/library/bb124096%28EXCHG.141%29.aspx

 

 

 

Headeranalyse und mehr mit Grafik usw :

 

http://mxtoolbox.com/services_servermonitoring2.aspx

 

 

Signatur, Check, Security, Exchange 2010, Einstellungen

Computergenerierter Alternativtext: \[internet Properties I ? I xl General Security Privacy Content Connections Programs Advanced Settings Q Just display the results in the main window j Security Q Allow active content From CDs to run on My Computert Q Allow active content to run in Files on My Computert Q Allow software to run or install even il the signature is mw Q Check For publisher's certificate revocation Q Check For server certificate revocationt Q Check For signatures on downloaded programs Q Do not save encrypted pages to disk Q Empty Temporary Internet Files Folder when browser is dc fl rnkI flflM ÇInran{width="4.1875in" height="2.6770833333333335in"}C:\\4E715A45\\F46C1F80-EDA5-491C-AE9C-F9D9613EEA51-Dateien\\image007.png{width="3.0833333333333335in" height="0.75in"}

 

Emailadressen, SMTPAdressen, SMTP Adressen, Alle Emialsadressen

Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,ServerName,PrimarySmtpAddress, @{Name="EmailAddresses";Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq "smtp"} | ForEach-Object {$_.SmtpAddress}}} |fl

 

Exchange2010 Delete Mailbox, remove Mailbox, Disable Mailbox Mailbox löschen

These two tasks do the following:

  • Disable will remove the Exchange attributes for the user account but leave the user account in Active Directory.  The mailbox is then also left in the Exchange mailbox database until the retention period has lapsed, then it is removed permanently.

  • Remove will remove both the Exchange mailbox and the user account from Active Directory