Category Archives: Technical Posts

Setting the primary email address for Office 365 users with PowerShell

Setting the primary email address for Office 365 accounts is easy to do with PowerShell.

It is done with the Set-Mailbox cmdlet. The primary address is set by using “SMTP” in uppercase in the email address.

You do have to be slightly careful as using the Set-Mailbox cmdlet to change the primary address will remove all of the other aliases. So they must be included with the command if you have any.

I have made this process really easy for you (and myself). Enter the details of the mailbox you want to change below and it will generate the required Set-Mailbox command for you to copy and paste into a PowerShell session.

I have also included all the required PowerShell to connect to Office 365 and disconnect again.

Set the Primary Email Address on Office 365 using Powershell

Mailbox Identity:

Primary SMTP Address(e.g.

Additional email Aliases(e.g.,

PowerShell to Copy/Paste


Install an Intel P3520 SSD into a 11th Gen PowerEdge

We are still running some 11th Generation Dell PowerEdge servers in our DC and some of the virtual machines were having some performance issues. We considered completely replacing replacing the servers, but found that the CPU load was very low most of the time.

The bottleneck for the database application running on these servers was disk related and we felt that a boost in performance in this area would bring the performance back to where we needed it to be. We decided to put an Intel P3520 NVMe SSD into two of the machines. This card, although not top of the range in terms of performance, has a great price/performance ratio and should be much faster than the existing drive array.

The specification of the server we put them into:

Dell PowerEdge R510
2 x Intel XEON X5670
128Gb Ram
PERC H700 1Gb (For Hard Drives)

Here is the card in the server PCI slot:

Intel P3520 installed in Dell PowerEdge R510 VMWare recognised the card no problems, but I also installed the Intel NVMe drivers, which boosted the performance a bit. I haven’t done extensive performance testing but I can tell from using the applications hosted on the machine that it is much quicker.

Disk Benchmark with the Intel P3520 NVMe ssd: Disk benchmark showing performance of Intel P3520 on Dell PowerEdge R510 on VMWare ESXi

And for comparison the 8 disk SATA array on the PERC H700: Disk Performance on Dell PowerEdge R510 with PERC H700

So overall adding the Intel SSD provided a significant boost in performance over the existing array, which is now just there for redundancy, the application performance has boosted much more than the performance metrics above signify.