Claudio Orlando

Claudio Orlando

Monitor Local Security Event Logs

This PowerShell script monitors local security event logs and extracts information about failed logon attempts. It can be useful for system administrators to track potential security breaches. Step 1: Get the current date and time to filter logs. “`powershell $currentDate…

PowerShell Script to Check Windows Firewall Status

In this post, we will create a PowerShell script that checks the status of the Windows Firewall on a local machine. This is important for security practices, ensuring that the firewall is enabled and configured properly to protect the system…

PowerShell Script for Audit Log Cleanup

In this post, we will create a PowerShell script designed to help maintain the security posture of a Windows system by cleaning up old audit logs. This script will remove logs that are older than a specified number of days,…

PowerShell Script for Monitoring User Logon Events

In this post, we will create a PowerShell script that monitors user logon events on a Windows system. This script is useful for security professionals looking to track who is accessing their systems and when. It will utilize the Get-WinEvent…

PowerShell Script for Detecting Unauthorized Access Attempts

In this post, I will share a PowerShell script that helps in monitoring unauthorized access attempts on a Windows system. This script retrieves and analyzes the Security Event Log for failed login attempts, which can be crucial for identifying potential…

PowerShell Script for Monitoring Firewall Status

In this post, I will share a useful PowerShell script that helps in monitoring the status of the Windows Firewall on your system. This script will check whether the firewall is enabled or disabled and can provide alerts if any…

PowerShell Script for Security Auditing of User Accounts

In this post, I will share a useful PowerShell script for auditing user accounts on a Windows system. This script checks for user accounts that have not logged in for a specified period, flags accounts that might be stale, and…

Check User Account Security Settings

This PowerShell script helps you audit the security settings of user accounts on your system. It provides details such as password policies and account status, ensuring that your user accounts are securely configured. Step 1: Retrieve all user accounts. This…

Check Active Network Connections

This PowerShell script identifies active network connections on your system, helping you to monitor potentially insecure connections. It’s a valuable tool for assessing your network security posture. Step 1: Retrieve active TCP connections. This is done using the Get-NetTCPConnection cmdlet,…

Network Security Audit Script

This PowerShell script is designed to help you audit network security by checking for open ports on local and remote machines. It will help in identifying potential vulnerabilities that could be exploited in a network environment. Step 1: Define the…

File Backup Script

In this post, we share a PowerShell script designed to automate the backup of files from a specified source directory to a target backup directory. This script is essential for maintaining data safety and ensuring that you have copies of…

Batch File Renaming Script

In this post, we provide a PowerShell script that allows you to batch rename files in a specified directory based on a defined pattern. This script is particularly useful for organizing files or updating naming conventions. If you’re looking for…