How to Manage Log Files Retention with PowerShell

Every application offers some sort of logging functionality and different ways to configure it.  It’s a cornerstone of the software life-cycle from the moment the app is developed, tested, deployed, even more on a daily production usage and support.  One characteristic of the logging process is for how much time do I need to keep my log files, in three words the retention period.

Continue reading “How to Manage Log Files Retention with PowerShell”

Automate AD Authentication Tests with PowerShell

A common method to investigate for Active Directory authentication issues is inspecting logs and event viewer, it’s simple and effective. But this means that the issue already occurred. What if the problem was a wrong password generated and communicate to the user? Can we be more proactive and avoid this issue from happening?

Whenever I wanted to check if the credentials that were provided by the third party for a large number of accounts were valid/correct (to prevent support requests and don’t let end-users wait for their access any longer) performing this task manually was never an option for me.

Continue reading “Automate AD Authentication Tests with PowerShell”

NMAP, PING vs Test-Connection, Test-NetConnection

When it comes to troubleshooting using simple tools it is very effective. The output of a simple test may infer that everything is working as expected, partially or in some other cases not working at all.

Consequently, this is generally also a fast way to identify where is the area that we need to focus our efforts or to validate the overall performances of our systems.

The most common tools that I use for network troubleshooting are:

Continue reading “NMAP, PING vs Test-Connection, Test-NetConnection”