Exchange 2010 için bazı önemli PowerShell komutları
Exchange 2010 için bazı önemli PowerShell komutları şunlardır:
Database İşlemleri
- Yeni bir mailbox veritabanı oluşturmak:
powershell
New-MailboxDatabase -Server "ServerName" -Name "DatabaseName" -EdbFilePath "C:\Path\To\Database.edb" -LogFolderPath "C:\Path\To\Log" - Veritabanı mont etmek:
powershell
Mount-Database -Identity "DatabaseName" - Veritabanı demont etmek:
powershell
Dismount-Database -Identity "DatabaseName" - Veritabanı silmek:
powershell
Remove-MailboxDatabase -Identity "DatabaseName" - Veritabanı taşımak:
powershell
Move-DatabasePath -Identity "DatabaseName" -EdbFilePath "E:\NewPath\Database.edb" -LogFolderPath "E:\NewPath\Log"
Kullanıcı Postası İşlemleri
- Yeni bir kullanıcı postası oluşturmak:
powershell
New-Mailbox -Name "UserName" -Alias "alias" -OrganizationalUnit "OU" -UserPrincipalName "[email protected]" -SamAccountName "samaccount" -FirstName "FirstName" -LastName "LastName" - Kullanıcı postasını silmek:
powershell
Remove-Mailbox -Identity "[email protected]" - Kullanıcı postasını taşımak:
powershell
New-MoveRequest -Identity "[email protected]" -TargetDatabase "TargetDatabaseName"
Grup İşlemleri
- Yeni bir dağıtım grubu oluşturmak:
powershell
New-DistributionGroup -Name "GroupName" -SamAccountName "samaccount" -Alias "alias" -Type "Distribution" - Yeni bir güvenlik grubu oluşturmak:
powershell
New-DistributionGroup -Name "GroupName" -SamAccountName "samaccount" -Alias "alias" -Type "Security"
Bu komutlar, Exchange 2010’da yaygın olarak kullanılan bazı temel işlemleri gerçekleştirmenize yardımcı olacaktır.
Yorum gönder