Category: PowerShell 101

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 […]

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. […]

Read More »

How to Copy Members of a Security Group in Active Directory

Ever ran into a task where you needed to copy all the members of a certain AD security group over to a new or existing security group? If so, you can use the powershell command below to complete this task.   Get-ADGroupMember -Identity “ExistingGroup” | Add-ADPrincipalGroupMembership -MemberOf “NewGroup”  

Read More »

How To Find Nested Active Directory Group Memberships in PowerShell

Find the actual number of users in a group by locating those that may be hard to find in a hidden subgroup. As someone that manages Active Directory users and groups, trying to figure out the true membership of a particular group can be hard. Why? It’s because of the way in which Active Directory […]

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. […]

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 […]

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, […]

Read More »

Creating Test Users In Bulk Using Powershell

There is always a requirement to create test users in bulk in your lab, maybe even in live network to test something. You can quickly create mailbox users using a one liner. Run the command. 1..100 | ForEach { Net User “User$_” MyPassword=01 /ADD /Domain; Enable-Mailbox “User$_” -Database “Mailbox Database” Moral of the story – […]

Read More »

Using PowerShell to Get Mailbox Database Size and Available New Mailbox Space

As your Exchange Server mailbox databases grow you’re eventually going to be interested in finding out two things – how large the database file is, and how much available new mailbox space is in the database. “Available new mailbox space” is sometimes referred to as “white space”, although the folks at Microsoft will tell you that is […]

Read More »

FashionBuzz © 2015 | All Rights Reserved Theme by Flythemes