Forum Discussion
venka91
Feb 07, 2022Copper Contributor
Get Session Information for Connect-MSolService
Hi there,
I am trying to automate the O365 user creation. I am using Connect-MSolService cmdlet, so i can use my MFA for o365 login.
,
The issue is, once my user creation is completed, and for the next user when re-trigger the script, again it asks for authentication. I agree since i used the cmdlet, it behaves in that way.
But i wanted to know, if my MSolService is already established, i would like to skip the authentication on my PS Session and use the same session for next user creation.
Please help.
- Authentication on your PS Session? What is you script like, not sure why you need to re-authenticate?