Advertisements
Everything-PowerShell

Everything-PowerShell

In exchange, many commands are directed at all mailboxes in the environment, but there is a time when you only want info on a specific organizational unit (OU). It is actually very easy to do, below is a snippet of a script you can use to get the last logon information for an OU which […]

Advertisements
Read more

Checking and changing the source time server on a VM or host has never been easier than running a simple command to change it. Many times, VM’s and hosts lose time and you end up with Services like Exchange or domain controllers out of sync and then stuff stops working. To firstly check where your […]

Read more

Here is a quick tip on how to move a few or a couple of hundred Offline address books with the Exchange Management Shell (EMS) by running a single command: If you had to use the Exchange Management Console (EMC), it will take you quite a while to do but with PowerShell you can run […]

Read more

In a large environment where you have hundreds of servers, imagine now having to go and manually add in more than 2 DNS servers to each of those? That will take a few days or weeks. With PowerShell you can do this and you can randomize the order or each server so that one DNS […]

Read more

Exporting mailboxes is great but what if you only wanted information for a certain period as you need it for whatever reason, legal, manager, etc. Well using the Exchange Management Shell (EMS) you can run the following command to export the data: null $Users = Get-Content “C:\Users\User1\Desktop\doc.csv” foreach ($User in ($Users)) {New-MailboxExportRequest -Mailbox $User -ContentFilter […]

Read more

When doing mailbox moves on Exchange, you want to know how far they are progressing etc. In the Exchange Management Console (EMC) you can add the Percent Complete column to see the Percentage per mailbox as shown below: This is okay but if you like me rather prefer using Powershell, then you can run the […]

Read more

Importing roles and features on a windows server has never been easier. Lot’s of people prefer the GUI interface but PowerShell makes your life so much easier. Firstly, for PowerShell to understand what you are trying to do, you need to have the correct module in place. In this instance we are working with Server […]

Read more

There are many ways in PowerShell to check the mailbox database copy status in Exchange, here are some examples from the Exchange Management Shell (EMS): Blanket check.Per DAG check.Per Server check. Get-MailboxDatabaseCopyStatus * The above command runs across all servers and databases in the environment. Below is the next example. Get-MailboxDatabaseCopyStatus -Identity dag1* The above […]

Read more

Tip of the day: Need to find out about the integration services of virtual machines running a hyper-v host and filter by heartbeat, you can run this simple command: get-vm -computername Host1 | Get-VMIntegrationService -Name heartbeat* Hope it helps.

Read more

In Exchange you will do loads of Export requests to PST but over time this list grows and when you eventually want to find an export request or remove a server you can’t because it still has the export requests. To find the export requests, you can run a single command: Get-mailboxexportrequest -status completed This […]

Read more