Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Run powershell script against multiple tenants

$
0
0

Hello,

We have a bunch of powershell scripts we use to manage our Office365 tenants. We are a MSP so we have an admin user under each tenant, as well as delegated partner access.

We hit a scenario where we wanted to make a change to all of our clients mail flow rules and we had to manually login to each tenant and run our powershell script, not fun at all!

My question is, as I don't know enough to do it myself, how could I provide a CSV file with the tenant administrator and password (yes I know that is clear text, but it would be temporary, and I know it will need to be converted to a secure string in powershell, I'm sure) and then do a FOR loop to run a powershell script or command.

An example of a script we want to run is to enable the new Modern Authentication on all tenants for better Outlook SSO.

Text
Import-Module MSOnline $LiveCred =...

Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>