AnsweredAssumed Answered

Powershell Script stopped authenticating to O365

Question asked by Shlomo Katz on Jan 23, 2018
Latest reply on Apr 12, 2018 by Ashish Joshi

Hello

Our O365 workflow calls a PS script to run the O365 commands.

This has been working well for the last month, until this past Saturday.

 

Since then we get the following error when the script runs: Error message: You must call the Connect-MsolService cmdlet before calling any other cmdlets.

Please note , that it works fine running the script from the PS command line.

The only known change were security patches, I have removed them with no success.

 

Avkeksa 7.0.2 SP4

PowerShell v 4.0

PowerShell Server v6 build 5533

 

Any help regarding establishing a better pre-call to connect to O365, or why this just started happening, will be great.

 

Shlomo

Outcomes