POWERSHELL

Powershell ile Office 365’e Bağlanma

Powershell ile Office 365’e bağlanma
Office 365 üzerinde bulunan Exchange Online’ a Powershell ile nasıl bağlantı kuracağımızı ve Exchange Online üzerinde birkaç temel Powershell komutlarını göreceğiz.

Windows PowerShell’in komutları çalıştırmak için dört tane güvenlik ilkesi vardır.Bunlar;
Unrestricted: Tüm Windows PowerShell komutlarını çalıştırılabilir.
AllSigned: Güvenilen bir yayımcı tarafından imzalanan Sadece komut çalıştırılabilir.
Restricted: Kısıtlı komut çalıştırılabilir. Windows PowerShell yalnızca etkileşimli modda kullanılabilir.
RemoteSigned: Çalıştırılmadan önce İndirilen komut güvenilen bir yayımcı tarafından imzalanmış olmalıdır.

Powershell ile Office 365 üzerindeki Exchange online ile bağlantı kurabilmek için aşağıdaki komutları izliyoruz.

1

 

 

 

 

 

 

 

 

 

 

 

 

Windows PowerShell’ i Run As Administrator ile açıyoruz.

2

 

“$Cred = Get-Credential “ komutu ile Office 365 Exchange online bağlanmak için kullanılıyor. Komutumuzu girdikten sonra bağlantıyı sağlayabilmek için, Office 365 “Username ve Password” giriyoruz. “OK” diyoruz.

3

 

Daha sonra ise $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection “ komutunu giriyoruz. Bu komut bulut tabanlı olarak çalışan hizmetlere bağlamayı sağlar.

5

Windows Powershell üzerinde tüm komutları kısıtlama olmadan çalıştırmak için “Set-ExecutionPolicy Unrestricted” komutunu çalıştırıyoruz.

6

Ardından “ Import-PSSession $s “ komutu ile bulut tabanlı hizmetlerde kullanılan komutları yerel bilgisayarımıza çekiyoruz.

İşlemleri tamamladık. PowerShell komutlarımız ile işimiz bittiğinde Remove-PSSession $s ile açmış olduğunuz session’ u sonlandırabilirsiniz.
Office 365 Exchange online üzerinde birkaç komut çalıştıralım.

10

 

 “Get-Service” komut ile servislerin durumu lister

8

“Get-Mailbox” Office 365 exchange online üzerinde bulunan Alias, ServerName ve ProhibitSendQuota bilgilerini listelemek için kullanılır.

9

Get-Mailbox –identity “Peakupbilisim” bu komut tek bir kullanıcının bilgisini getiriyor.

12

“Get-Group ve Get-DistributionGroup” komutları için biri tüm grupları listeliyor diyeri Distributiongrpup listeliyor.

Powershell ile office 365 bağlantımızı yaptık umarım faydalı olur

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