Advertisements

Author: edward

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

Advertisements
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

RSS abbreviated for Receive Side Scaling has value by being enabled on a Server as it betters performance. By Default, RSS is enabled on Server 2016 and 2019 but cannot be enabled on Windows Server 2008 R2 or below. On Server 2012 or R2 you can enable it using a simple PowerShell command. First you […]

Read more

In PowerShell, you are able to disable IPv6 on a Server using a single command as follows: reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f Now you can take this a step further and also disable IPv6 tunneling as well and will explain why shortly: Get-NetAdapterBinding -ComponentID “ms_tcpip6” | disable-NetAdapterBinding -ComponentID “ms_tcpip6” –PassThru […]

Read more

In Exchange, you can throttle the number of connections that a HUB Transport Server can have open to a remote domain, the default value for the field “MaxPerDomainOutboundConnections” is 20. To change the value, you can run a simple command from the Exchange Management Shell(EMS): Set-TransportServer -Identity HUB1 -MaxPerDomainOutboundConnections 10 Don’t forget to restart the […]

Read more