SyntaxHighlighter

Thursday 5 June 2014

Turn off Office 365 password expiry

Office-365 has a default password expiry of 90 days.  In most small/micro businesses it is appropriate to turn this setting off.
Do note that once the setting is off, it is only off for the current users, if more users are added then the process must be re-applied.

In Office-365 you have to do this through PowerShell.

  1. Click Start > All Programs > Accessories > Windows PowerShell > Windows PowerShell.
  2. Run the following command:

    $LiveCred = Get-Credential
  3. In the Windows PowerShell Credential Request window that opens, type the credentials of an administrator account in your cloud-based organization. When you are finished, click OK.
  4. Run the following command:

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
    Note   The AllowRedirection parameter enables cloud-based organizations in datacenters all over the world to connect Windows PowerShell to the cloud-based service by using the same URL.
  5. Run the following command:

    Import-PSSession $Session
    A progress indicator appears that shows the importing of commands used in the cloud-based service into the client-side session of your local computer. When this process is complete, you can run these commands.

  6. Connect-MsolService -Credential $Creds

  • Run the following command:

    Add-MailboxPermission -Identity <mailboxToShare> -User <userToAccess> -AccessRights FullAccess -InheritanceType All
    Note  <mailboxToShare> and <userToAccess> can both be replaced by the respective user's email addresses.


  • To disconnect PowerShell run the following command:
    Remove-PSSession $Session

  • To now add the mailbox to Outlook.  From Outlook do the following:

    1. On the Tools menu, click E-Mail Accounts.
    2. Click View or change existing e-mail accounts, and then click Next.
    3. In the list, click the Exchange account type, and then click Change.
    4. Click More Settings, and then click the Advanced tab.
    5. Click Add, and then type the mailbox name of the person whose mailbox you want to add to your user profile.


    To have The PC Support Group help you with any of your business or personal computer needs please call us on +44 (0) 845 2233116 or visit our website http://www.pcsupportgroup.com/

    1 comment:

    1. Kodak I3400 Scanner in UAE, Document Flatbed Scanner in UAE, Dual CCD Scanner in UAE
      https://gccgamers.com/kodak-i3400.html
      Kodak I3400 Scanner in UAE, Safe Shopping Multiple Payment Options Express Delivery GCC Gamers Moneyback Guarantee.
      1633415743295-15

      ReplyDelete