Avatar of IT Guy
IT Guy
Flag for United States of America asked on

PowerShell script that will launch & sign onto Office 365 admin console

In my test environment at home I need to create a Server 2016 PowerShell script that will launch the Office 365 PowerShell command line commands and automatically sign on with an Office 365 administrator username and password.

This isn't a security hazard since this will only be used on an Office 365 test domain on a computer at home that no one else has access to.

Please provide me with the correct syntax for doing this.
PowershellMicrosoft 365MiscellaneousScripting Languages

Avatar of undefined
Last Comment
Jeremy Weisinger

8/22/2022 - Mon
SOLUTION
Jose Gabriel Ortega Castro

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
IT Guy

ASKER
I need to be able to enter the Office 365 administrator username & password within this script so that when the script is run it will automatically logon with the Office 365 administrator username and password.

Please provide me with the correct syntax of the PowerShell command for doing this.
ASKER CERTIFIED SOLUTION
Jeremy Weisinger

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jeremy Weisinger

Glad to help. :)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes