Search through previous powershell commands with grep
It can be really difficult trying to remember that command you used a few weeks ago in Powershell. Here’s an easy way to search through your previous commands to find the right one and jog…
It can be really difficult trying to remember that command you used a few weeks ago in Powershell. Here’s an easy way to search through your previous commands to find the right one and jog…
I was getting pretty confused with the various options around powershell commands to use with Exchange online. For example, to add a user to a distribution group in O365, I had come across 4 different…
I recently wrote this script that creates an O365 mailbox within a hybrid exchange environment, creating all the necessary attributes etc in exchange and AD Log all output to a local logfile, that is unique…
A script I recently used to add members to an office 365 distribution group using a remote exchange session in a hybrid setup (covered at the end).
1 2 3 4 5 |
[cc lang="powershell"]$SourceFile = "" Import-CSV $SourceFile | ForEach ` {Add-DistributionGroupMember -Identity "Group Name" -Member $_.UPN Write-Host -ForegroundColor Green "Processed the record for $($_.UPN)" }[/cc] |
CSV file contains UPNs of all users…
This only applies to new Active Directory users. To look at how to use SMTP matching to link an on-prem user to an existing O365 mailbox in a hybrid environment follow this guide.1. Log into…
The scenario is that a user account has been created in Office 365 in a hybrid setup. This scenario is actually ok and is supported by Microsoft. However, it causes problems for an Office 365…