MİCROSOFT OFFİCE 365 - POWERSHELL

Office 365 Litigition Hold Nasıl Aktive Edilir?

Office 365 Litigition Hold Nasıl Aktive Edilir? Daha önceki makalemde Office 365 Litigition HoldÖzelliğinden bahsetmiştim. Office 365 Litigition Hold özelliğini aktif ettiğiniz kullanıcının maili silindiği takdirde Microsoft Exchange veri merkezinde saklamaktadır. Bu özellik sayesinde silinen maili geri yükleyebiliyoruz.

Bu özelliği Powershell ile nasıl aktif edeceğimizi göreceğiz. İlk olarak Powershell modülünü kullanarak Office 365 ‘e bağlanıyoruz.

Powershell ile Office 365 Bağlantı sağlamak

Set-ExecutionPolicy Unrestricted

Import-Module MSOnline

$O365Cred = Get-Credential

$O365Session = New-PSSession –ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication Basic -AllowRedirection

Import-PSSession $O365Session

Connect-MsolService –Credential $O365Cred


Ardından Credential bilgilerimizi doğrulayarak Office 365 ‘e bağlanıyoruz.


Office 365 Litigition Hold Özelliği aktif etmemiz için öncesinde “Archive (Arşiv)” özeliğinin aktif olması gerekir. Tüm kullanıcılarda

Arşiv özelliğini aktif edebilmemiz için aşağıdaki Powershell komutunu çalıştırıyoruz.

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq ‘UserMailbox’)} | Enable-Mailbox –Archive

Not: Arşiv özelliği aktif ettiğimiz kullanıcıların, Litigation Hold özelliğini aktif edebiliyoruz.

İlk olarak Excel üzerinde aşağıdaki gibi bir CSV dosyası hazırlamamız gerekir.


Daha sonrasında ise aşağıdaki Powershell komutunu kullanarak CSV içerisindeki kullanıcıların Litigation Hold özelliği aktif ediyoruz.


$Users=Import-CSV C:\User1.csv

$Users | ForEach-Object {Set-Mailbox -Identity $_.EmailAddress -LitigationHoldEnabled $true}

İlgili Powershell komutunu çalıştırdıktan sonra yaptığımız işlemin 60 dakikaya kadar sürebileceği uyarısı vermekte, Fakat bu süre kullanıcı sayısına göre değişiklik göstermektedir.


Ardından Office 365 Exchange yönetim merkezinde Alıcılar – Posta kutuları penceresine arşiv özelliğini aktif ettiğimiz kullanıcıların posta kutusu türü kısmında Arşiv yazısını göreceksiniz. Herhangi bir kullanıcının posta kutusu özelliklerine geldiğinizde ise LitigationHold (Mahkeme nedeniyle tutma) özelliğinin etkin olduğunu görebiliyoruz. Bundan sonra silinen maillerinizi Microsoft Exchange veri merkezinde bulabilirsiniz.

Umarım yararlı olmuştur. Teşekkürler.

I was born in Istanbul. I completed my high school education in system network engineering, my university studies in Computer Technology and Programming Sciences, and earned a four-year degree from Anadolu University. As an experienced technology consultant, I have gained extensive experience in the field of information technology for over 10 years. I have worked in both large corporate companies and small-scale startups, specialising in providing strategic technology solutions to clients across various industries. During this time, I have developed into a determined and reliable IT consultant, covering the entire technology field, including project management, training, and pre- and post-sales support for corporate solutions. I have both individual and team-based experience in management, implementation, and design in areas such as cybersecurity, endpoint security, data security, cloud migration, and infrastructure. As a result, I always use the phrase “It can be better” in every situation I encounter. I currently work as a “Cyber Security Principal Expert ☁” at Koçsistem, Microsoft’s top partner. My skills and abilities Cloud Computing Architecture Microsoft 365 Migration and Management Azure Infrastructure Modern Workplace Digital transformation Microsoft 365 Exchange Online EOP ( Exchange Online Protection) Microsoft Defender for Office 365 Microsoft Defender for Endpoint Microsoft Defender for Cloud Apps Microsoft Defender for Cloud Microsoft Defender for Identity Microsoft Intune Microsoft Sentinel Microsoft Teams Hybrid Solutions Mobile Device Management and Mobile Application Management. Data Loss Prevention and Protection Microsoft Information Protection Cloud Identity and Access Management Solution MS Windows Server Family Microsoft Client Windows 11 Management of Hyper-v and VMware Virtualization Platforms Active Directory configuration and management Exchange Server configuration and management Veeam Backup installation and configuration WDS,MDT configuration and management Certificates ; MCT: Microsoft Certified Trainer 2019-2020 MS: Designing and Providing Microsoft Volume Licensing Solutions to Large Organizations MCTS: Designing, Assessing, and Optimizing Software Asset Management (SAM) MCPS: Microsoft Certified Professional MCSA: Windows Server 2012 MCSE: Private Cloud WMSP: Veeam Sales Professional VMTSP: Veeam Technical Sales Professional Coursera-Cybersecurity Solutions and Microsoft Defender Coursera-Cybersecurity Management and Compliance Google – Google Professional Cloud Architect

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir