Tag Archives | Office365

Office365 PowerShell Nugget: Setting Password to Never Expire

Another really useful office365 PowerShell nugget for setting password never to expire, from http://blogs.technet.com/b/educloud/archive/2012/06/25/turn-off-password-expiry-in-office-365-for-education.aspx. First off start with the normal connection routine: 1. > $LiveCred = Get-Credential 2. Now you need to enter your office365 credentials in the popup 3. > $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection 3. > […]

Continue Reading 0

Allowing a specified user to send from a Distribution Group in Office 365

Connecting To Office 365: $LiveCred = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirectionImport-PSSession $Session Adding the User: Set-DistributionGroup DistributionGroupName -GrantSendOnBehalfTo CommaSeperatedListOfAccountName Checking Accounts are Added: $account = Get-DistributionGroup Accounts $account.GrantSendOnBehalfTo

Continue Reading 0

Yet another Office365 PowerShell nugget

On this occasion I needed to set a user password so that it never expires…thankyou to Jorge Diaz

The first 2 lines here are just settimg you office365 credentials (as in previous examples). The 3rd line is where all the magic happens. Great stuff

Continue Reading 0