PowerShell
Quickly check your IP routes when troubleshooting networking issues on Exchange 2019
As Exchange Administrators, we need to troubleshoot server issues from time to time when mail flow stops working or a change was implemented on the networking side and this has also caused an outage on your Exchange Server. By defaults IP routes on Windows Server...
Quickly display all you certificate expiry dates with PowerShell
Applications such as System Center Operations Manager, SolarWinds and others give you warning when certificates are going to expire so it gives you chance to update them before services or applications are disrupted. I put together a PowerShell script that will pull...
Validate the Server Component State in Exchange 2019
As Exchange Administrators, we sometimes run into issues when mail stops flowing for example or Autodiscover is not working. Generally you would first look at the Event Logs but there is another section we need to also check. In...
Find the open ports of a host using PowerShell
In the hacking world, we know that Tools such as NMAP gives you a breakdown of the open ports, services etc. which is great and you can also check an open port using Telnet, but if you are restricted with tools and cannot add new...
Find devices on the network using PowerShell
As an ethical Hacker, we are always looking for devices that are available on the network that we can scan. NMAP does a brilliant job by telling us which hosts are alive on the network but so do many other applications such as Angry IP Scanner, SolarWinds etc. If you...
Display the Folder Size and the files contained within it using PowerShell
Many of us are always looking at what is using space on a server because one of the monitoring solutions has such as SolarWinds, SCOM or LabTech have sent an alert that the C:\ Drive has gone below 15% or whatever threshold you have set. Many of these are enterprise...
Search for specific Security Event ID’s in PowerShell
In a previous blog post, we searched for a specific keyword in PowerShell and displayed it in PowerShell directly. In this blog post, we will be looking for a specific Event ID that is triggered when an account cannot be logged onto and sometimes you can see the...
Pull all Scheduled tasks in Windows and display them in a Grid
Many items that run in Windows have scheduled tasks that run at certain intervals. Malware and bad actors like abusing scheduled tasks because they contain elevated privileged accounts which run as SYSTEM. Have you ever wondered...
Quickly update the default startup location when opening PowerShell in Server 2022
If you work in PowerShell as much as I do and you have a dedicated folder where you run scripts, having to keep navigating to the folder can become a pain. By default, PowerShell will open up in the user that is logged in directory, below we can see that I am logged...
Validate Windows Activation Status using PowerShell and display the results in a GridView.
If you work with a large number of servers and you do not use a system to manage the activation of all machines built, manually logging in and checking the status is just time consuming. I put together a script that will go and get the status of all machines specified...