Microsoft 365 and PowerShell

Soldato
Joined
1 Nov 2007
Posts
6,457
Location
England
I have a 365 tenant running Business Premium and every now and again I come across a setting which you need to use PowerShell for. I have PowerShell 7.3.9 installed on my Mac but most of the time I need to login to my Windows 11 Pro virtual machine to do anything using PowerShell. I've been using Exchange Online Management version 3 but I have to admit I'm stuck with what you can do with PowerShell. There seems to be so many different functions that you can't do on the website.

Is there a good place to start with all of this?
 
Absolutely everything done in 365 can be done via PoSH and in fact it's the recommended mechanism, Microsoft push it heavily and the constant UI changes and deprecations assist this. There are many, many things which are PowerShell only - it's almost like a cycle from Microsoft, like in Exchange 2007 when they made it so you could only do certificates via PowerShell, but the language and tooling has come a long way now which is good.

The difficulty at the moment is they're mid-migration in a way from the original PoSH Modules to PoSH for Graph API stuff - Microsoft Documentation is really quite good though, the difficulty is finding the correct version for a specific task as lots of articles still quote the older mechanism for doing things.

 
Absolutely everything done in 365 can be done via PoSH and in fact it's the recommended mechanism, Microsoft push it heavily and the constant UI changes and deprecations assist this. There are many, many things which are PowerShell only - it's almost like a cycle from Microsoft, like in Exchange 2007 when they made it so you could only do certificates via PowerShell, but the language and tooling has come a long way now which is good.

The difficulty at the moment is they're mid-migration in a way from the original PoSH Modules to PoSH for Graph API stuff - Microsoft Documentation is really quite good though, the difficulty is finding the correct version for a specific task as lots of articles still quote the older mechanism for doing things.

Thank you. I'll read that article. It sounds interesting. I guess I'm going to have to bite the bullet and learn PowerShell properly.
 
I actually don’t think you need to learn powershell as such. PS is basic. It’s more of the commands available to run on 0365 servers.

Start making a list of useful commands rather than learning powershell itself.

Just make sure you know what the command does before running it.

There’s potential of running a copy paste command that you think may do something but does something else.

Read fully before running them.
 
Back
Top Bottom