Showing 4 Result(s)

How to set Office 365 password to never expire

First you need to make sure you have the Azure AD Module installed on the computer. If you do not have the the Azure AD Module installed you need to: Open PowerShell as administrator Run the command (get-item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion Then you need to run the following commands in powershell: $msolcred = get-credential connect-msolservice -credential $msolcred …

How to connect to Office 365 Exchange using Powershell

***Please note this article is out of date and no longer current** I use these commands to connect to Exchange Online in Office365. To do this you need to open powershell and run these command: $LiveCred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell -Credential $LiveCred -Authentication Basic -AllowRedirection Import-PSSession $Session After the first line it …