Find all unread emails in Outlook

Sometimes Outlook will display that there is 1 or more unread emails however when you look in the unread email folder there are none. By following the steps below you can find those emails and mark them as read.
  1. In the “Search Current Mailbox (Ctrl+E)” box, type: read:no and hit Enter.
  2. When it shows “Find More on Server” link, click it. Then the unread email(s) should appear.

Compatibility:

This works with Office 2010, Office 2013 and Office 2016.

Fix Unknown Hardware Health Status in VMware ESXI

Unknown Hardware Health IssueThe other day my monitoring software for a particular ESXI host went crazy saying that there was a number of severe hardware failures detected. Upon investigation the virtual machines on the server were running perfectly. However if you believed the host, it had encountered a failure in almost every component. After some investigation the culprit was a failed service on the host. All that was required to resolve the ‘Severe Hardware Failure’ was to re-start the CIM Server service.

This can be found in the ‘Configuration’ tab in the vSphere Client. You then need to go to the ‘Security Profile’ side menu option and click properties under the ‘Services’ section. You then scroll till you find the ‘CIM Server’ service.

Managing Disks with Powershell

In Powershell version 3.0 which is found in Server 2012 and Windows 8 you are able to manage hard drives entirely from Powershell. This means you are able to add, initialize, format and name disks entirely from the command line. (Even in one line if you so wished)

In this blog entry I am going to run through:

  • How to get disks that have a raw partition format
  • Initialize the disk
  • Create partitions on the disk
  • Format the volume to the desired File system format

To get started we need to get a list of all the disks in the system that have no file system format. To do this we use the following Powershell command.

This will return a table formatted list of disks connected to you system that currently have no file system format.

GetRawDisks

Now that we have a list of disks we can initialize them to the desired partition style. To do this we need to use the Initialize-Disk command.

InitializeDisk

If you run a Get-Disk command after this you will see that the Partition Style has changed from RAW to MBR or GPT.

Now that the disk is initialized we need to create a partition on it. To do this we can use the New-Partition command. By using the -AssignDriveLetter parameter we will get windows to assign the next available drive letter to the new partition. In this case we are using the -UseMaximumSize to create a partition that will fill the size of the disk. You are able to use the -Size command instead to allow for the creation of multiple partitions on the one disk.

NewPartition

All that remains now is to format the newly created partition to the desired file system format. To do this we use the Format-Volume command. You have the option of formatting the disk as exFATFATFAT32NTFS and ReFS. We are going to use NTFS in this case. You are also able to set drive labels at this point.

FormatVolume

At this point you now have a fully formatted and partitioned disk that is accessible in windows.

Now that we know what each part does we can string all the commands together. This is done by using the -PassThru command and the piping character |.

OneLine

I hope this will help you to work smarter not harder! NP