Forum Discussion

ibjames's avatar
ibjames
Copper Contributor
Jan 09, 2019
Solved

Logging in to O365 using password file

I created a small piece of script I want to use to login to o365 remotely using powershell.    The script will create the pssession and import the cmdlets but when I use a cmdlet the first time, it...
  • ibjames's avatar
    Jan 09, 2019

    Nevermind..  when I start a new powershell instance, I did a get-pssession and notice that there was a ExchangeO365 module already being loaded, I removed it and now my code works..  :(  It must have been calling those cmdlets instead of the ones I was importing, even though I have clobber set