How Do I Know Which Service to Use for Bulk Uploads in PowerShell?

0
10
Asked By CuriousCat42 On

I'm a beginner trying to figure out how to do a bulk upload to a 365 group using PowerShell. I've seen terms like Connect-AzureAD, Connect-ExchangeOnline, and Connect-MgGraph, but I'm not sure which service I should connect to for the task. If my question seems too basic or unclear, I apologize!

3 Answers

Answered By PowerShellNinja On

For a deeper understanding of cmdlets, try using `Get-Help -Detailed`. This can help you figure out the specifics. If a cmdlet doesn’t have 'Mg' in its name, like `Get-MgUser`, it signals that it isn’t a Microsoft Graph cmdlet. As a newbie, focus on what you want to achieve—if it can be done with Graph, that's usually the best way to go. Here’s how I break it down: I use Graph for about 80% of my scripts to manage users and groups. Teams and PnP-PowerShell are great for other specific tasks, but I'm leaning more towards Graph as I learn.

Answered By TechWhiz101 On

So, first off, a 365 group is basically a group in Entra that holds users. And by bulk upload, I’m guessing you mean adding multiple users to this group, right? Just a heads-up: Connect-AzureAD is outdated, so steer clear of that one. Instead, use Connect-MgGraph (or Connect-Entra) since they're the go-to options now. ExchangeOnline is more for mailbox related tasks, so not really what you need here.

Answered By DevGuru88 On

A good question! If you want to know if something is exclusive to ExchangeOnline, you might need to check the specifics of your script. Microsoft Graph is getting better at handling tasks, but there are still some features tied exclusively to ExchangeOnline for certain situations. So, if you're updating a script, a double-check on what Graph can manage is a smart move!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.