Author: PhilEddies

Office 365 – Deleting an email from all mailboxes using the Content Search feature

Overview I recently had a need to delete a phishing email that had slipped through my emailing filter solution. Manually deleting the email from hundreds of mailboxes wouldn’t have been fun or quick so I can came up the below solution. The Office 365 Content Search feature can be used to search Exchange, Skype and SharePoint amongst other things. In my case I wanted to search and delete all exchange email delivered after a certain date with a specific keyword in the subject. Step 1: Creating the Content Search Rule Head over to Expand Search & Investigation =>...

Read More

Cisco IOS – Finding unused interfaces

Have you ever looked at a comms cabinet run of Cisco switches only to find that ever interface is patched, some of them have no link lights and you don’t know which ones can be unpatched. The below steps are my method finding which interfaces have not been used in  a long time. There are plenty of tools and network monitoring solutions that could be used, the below is the native IOS method. If you run show interface against an interface the output includes details on the last time the interface received or sent data. In the case of...

Read More

DFS – The namespace cannot be queried. The network address is invalid.

Problem: While playing around with DFS on Windows Server 2016 in my lab environment I kept getting the message “The namespace cannot be queried. The network address is invalid” when trying to add a new namespace via the wizard. Solution: It turns out DNS in my lab environment was a bit messed up, I was unable to ping the domain. After I corrected my DNS issues the process of creating a DFS namespace completed...

Read More

Using PowerShell to find all empty AD groups in the current domain

Pre-requisites Before you can use the Active Directory Cmdlets you will either need the to install the RSAT tools or run the below PowerShell on on Domain Controller. You can read more about  Active Directory Administration with Windows PowerShell here The Script Amend the Export-Csv path as required. PowerShell Import-Module activedirectory Get-ADGroup -Filter * -Properties Members | Where {-not $_.members} | select Name | Export-Csv D:\EmptyADGroups.csv –NoTypeInformation 12 Import-Module activedirectoryGet-ADGroup -Filter * -Properties Members | Where {-not $_.members} | select Name | Export-Csv D:\EmptyADGroups.csv –NoTypeInformation Alternative VBS Method If you would prefer to use VBS take a look...

Read More




Pin It on Pinterest