Using CMDLETS to Manage 365 Accounts Help: get-help -detailed ---------------------------------------- SETTING PASSWORDS TO NEVER EXPIRE 1.) Open 'Microsoft Online Services Module for Windows PowerShell' using shortcut on desktop 2.) To Connect PowerShell Online: connect-MSOLService *You will be prompted to login (Use 365 admin account) 3.) To check 'PasswordNeverExpires' status: get-MSOLUser | select UserPrincipalName, PasswordNeverExpires 4.) To Set 'Password Never Expires': get-MSOLUser | Set-MSOLUser -PasswordNeverExpires $true 4a.) To Set 'Password TO Expire': get-MSOLUser | Set-MSOLUser -PasswordNeverExpires $false 5.) Exit 6.) Directly set password, Set password to never expire and bypass password change prompt Set-MSOLUser -UserPrincipalName 'email address'-PasswordNeverExpires:$true set-MSOLUserPassword -UserPrincipalName 'email address' -NewPassword 'new password' -ForceChangePassword:$False ---------------------------------------- EXCHANGE ONLINE POWERSHELL ACCESS: CONNECT: $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $UserCredential -Authentication Basic -AllowRedirection Import-PSSession $Session DISCONNECT: Remove-PSSession $Session Add-MailboxPermission "mailbox" -User useraccount -AccessRights ReadPermission,ChangePermission Get-MailboxPermission "mailbox" -User useraccount