SOLVED

Working with tenants in Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-563103%22%20slang%3D%22en-US%22%3EWorking%20with%20tenants%20in%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-563103%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20start%20learning%20Powershell%20for%20Office%20365%2Ci%20have%202%20questions...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20%3CSTRONG%3EHow%20do%20you%20go%20about%20working%20within%20different%20tenants%20in%20powershell%3F%20Can%20you%20log%20into%20that%20tenant%20as%20an%20admin%20and%20continue%20business%20as%20usual%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20would%20seem%20commands%20like%20Get-MsolUser%20will%20display%20email%20addresses%20belonging%20to%20my%20company's%20domain.%20A%20couple%20of%20days%20ago%20i%20have%20found%20a%20command%20set%20that%20allowed%20me%20to%20list%20information%20belonging%20to%20the%20tenant%20of%20one%20of%20our%20customers%2Cbut%20it%20seems%20counter-intuitive%20to%20preface%20any%20instruction%20with%20additional%20cmdlets%20because%20you%20cannot%20work%20within%20the%20tenant%20itself.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20%3CSTRONG%3EAny%20tips%20or%20go-to%20sites%20that%20you%20would%20recommend%20to%20a%20complete%20begginer%20in%20powershell%3F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20heard%20that%20the%20MCSoft%20course%20associated%20with%20O365%20Administration%20is%20out%20of%20date%20in%20regards%20to%20most%20of%20its%20material.%20Where%20else%20can%20i%20go%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20and%20apologies%20if%20this%20was%20posted%20in%20the%20wrong%20area%20or%20if%20it%20was%20already%20answered%2Ci%20tried%20searching.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-563103%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-563136%22%20slang%3D%22en-US%22%3ERe%3A%20Working%20with%20tenants%20in%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-563136%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F341304%22%20target%3D%22_blank%22%3E%40Lexandrul%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E1.)%20You%20can%20log%20into%20multiple%20Office%20365%20Tenants%20with%20Powershell.%20For%20the%20full%20functionality%20you%20would%20need%20a%20set%20of%20Global%20Admin%20credentials%20of%20each%20tenant.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E2.)%20Here%20are%20some%20resources%20for%20you%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20should%20be%20lots%20of%20resources%20online%20including%20Books%2C%20Videos%20and%20Articles.%20There%20are%20courses%20on%20Pluralsight%2C%20YouTube%2C%20LinkedIn%20Learning%2C%20GitHub%20and%20others%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Ftree%2Fmaster%2Fdocs%2Flearning-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Ftree%2Fmaster%2Fdocs%2Flearning-powershell%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fabsolute-sharepoint.com%2F2018%2F03%2Fresources-to-learn-powershell-for-office-365.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fabsolute-sharepoint.com%2F2018%2F03%2Fresources-to-learn-powershell-for-office-365.html%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.pluralsight.com%2Fcourses%2Fpowershell-office-365%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.pluralsight.com%2Fcourses%2Fpowershell-office-365%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fenterprise%2Fpowershell%2Fgetting-started-with-office-365-powershell%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice365%2Fenterprise%2Fpowershell%2Fgetting-started-with-office-365-powershell%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Flearning%2Fmicrosoft-office-365-deployment%2Fconfigure-powershell-for-office-365%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.linkedin.com%2Flearning%2Fmicrosoft-office-365-deployment%2Fconfigure-powershell-for-office-365%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fblog.udemy.com%2Fpowershell-tutorial%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblog.udemy.com%2Fpowershell-tutorial%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EUnfortunately%2C%20there%20is%20no%20certification%20in%20Powershell%20(many%20argue%20there%20should%20be)%2C%20so%20it%20is%20a%20case%20of%20working%20with%20the%20existing%20materials%20out%20there.%3CBR%20%2F%3E%3CBR%20%2F%3EWould%20also%20recommend%20user%20groups%20such%20as%20Powershell%20UG%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Fpowershell_ug%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftwitter.com%2Fpowershell_ug%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20Powershell.org%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fpowershell.org%2Fsummit%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpowershell.org%2Fsummit%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20would%20also%20find%20other%20user%20conferences%20around%20such%20as%20%3CA%20href%3D%22https%3A%2F%2Fpsday.uk%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpsday.uk%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20helps%20to%20answer%20your%20questions!%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-563338%22%20slang%3D%22en-US%22%3ERe%3A%20Working%20with%20tenants%20in%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-563338%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3EExcellent%20response!%20Thank%20you%20for%20your%20time!%20il%20be%20busy%20for%20a%20while.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,

 

I want to start learning Powershell for Office 365,i have 2 questions...

 

 

1. How do you go about working within different tenants in powershell? Can you log into that tenant as an admin and continue business as usual?

 

It would seem commands like Get-MsolUser will display email addresses belonging to my company's domain. A couple of days ago i have found a command set that allowed me to list information belonging to the tenant of one of our customers,but it seems counter-intuitive to preface any instruction with additional cmdlets because you cannot work within the tenant itself.

 

 

2. Any tips or go-to sites that you would recommend to a complete begginer in powershell?

 

I have heard that the MCSoft course associated with O365 Administration is out of date in regards to most of its material. Where else can i go?

 

 

 

Thank you and apologies if this was posted in the wrong area or if it was already answered,i tried searching.

 

2 Replies
Highlighted
Best Response confirmed by Lexandrul (New Contributor)
Solution
Hi @Lexandrul

1.) You can log into multiple Office 365 Tenants with Powershell. For the full functionality you would need a set of Global Admin credentials of each tenant.


2.) Here are some resources for you

There should be lots of resources online including Books, Videos and Articles. There are courses on Pluralsight, YouTube, LinkedIn Learning, GitHub and others

https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell
https://absolute-sharepoint.com/2018/03/resources-to-learn-powershell-for-office-365.html
https://www.pluralsight.com/courses/powershell-office-365
https://docs.microsoft.com/en-us/office365/enterprise/powershell/getting-started-with-office-365-pow...
https://www.linkedin.com/learning/microsoft-office-365-deployment/configure-powershell-for-office-36...
https://blog.udemy.com/powershell-tutorial/

Unfortunately, there is no certification in Powershell (many argue there should be), so it is a case of working with the existing materials out there.

Would also recommend user groups such as Powershell UG

https://twitter.com/powershell_ug

And Powershell.org

https://powershell.org/summit/

You would also find other user conferences around such as https://psday.uk/

Hope that helps to answer your questions!

Best, Chris
Highlighted

@Christopher HoardExcellent response! Thank you for your time! il be busy for a while.