In windows 10, you just need to do run,
- Type “Powershell” and choose “Windows PowerShell ISE”
- You must have office365 Login
- $UserCredential = Get-Credential –it will ask for login credentials
- $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
- Import-pssession $session
Thats it!!!, you are now ready to run some of your basic commands