PowerShell: Use a destructive PowerShell cmdlet safely

PowerShell has a built-in safety switch to many of its cmdlets. The –whatif parameter, which is meant to show you what would happen if you used a PowerShell cmdlet without actually executing the cmdlet. An example of this in action is in the following Remove-Item cmdlet.   This will attempt to remove the document, HSG-Article-Sean-Should-Not-Lose.docx, without actually removing it. Remove-Item .\HSG-Article-Sean-Should-Not-Lose.docx […]

Read more

Setting Distribution Group Delivery Restrictions via PowerShell

Adjusting the delivery restrictions on distribution groups is quite a common task. The more members a group has the more of a problem this ends up being in big organisations. Setting the permissions in the Exchange Management Console (EMC) is simple enough when you have one or two people/groups to add to the allowed list. When you have many user/groups […]

Read more

Quick Tip: Restarting all Microsoft Exchange services

There are times when you need to restart all Exchange related services so here are 2 small scripts that will help you achieve this without going over each service in the Services mmc. Of course restarting the “Microsoft Exchange Active Directory Topology” will restart a most of them but these 2 will restart them all.   Restarting All Running Services […]

Read more

Migrate new user to O365

Pre-Migration Work Create the AD user account and Exchange on-prem mailbox Confirm UPN suffix of user account matches the email address Go to O365 admin console and add the user license Migrate users Connect to Exchange On-line From the PowerShell console on an Exchange 2010 server: $Cred = Get-Credential  $s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $cred -Authentication Basic –AllowRedirection  […]

Read more

Exchange 2010: Change security groups to distribution groups

Distribution groups are a well-known concept for Exchange admins. Quite simply, a distribution group is an Active Directory group that’s Exchange-enabled and therefore has an email address. Messages sent to the group are delivered to group members, which can be mailbox users, mail users (users with an email address outside the Exchange org), mail contacts, distribution groups and mail-enabled public […]

Read more
1 7 8 9 10