Claudio Orlando

Claudio Orlando

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…

Directory Size Report Script

In this post, we will share a PowerShell script that generates a report of the sizes of all subdirectories within a specified directory. This is useful for assessing space usage and managing storage effectively. For an enhanced server management experience,…

File Renaming Script

In this post, we present a PowerShell script that automates the process of renaming files in a specific directory based on a defined naming convention. This script is especially helpful for organizing files systematically. If you are interested in improving…

Duplicate File Finder Script

In this post, we introduce a PowerShell script that identifies and lists duplicate files in a specified directory. This script is useful for cleaning up unnecessary duplicates and saving disk space. If you are looking to enhance your server management…

File Archiving Script

In this post, we will share a PowerShell script that automates the archiving of older files in a specified directory. This script helps you keep your workspace organized by moving files that are no longer actively needed to an archive…

Folder Synchronization Script

In this post, we provide a PowerShell script that syncs the contents of two folders. This script is useful for keeping backups up-to-date or ensuring two directories maintain the same files. If you are interested in efficient server management solutions,…

File Sorting and Organization Script

In this post, we share a PowerShell script that automates the process of sorting files based on their types and moves them to designated folders. This script is essential for keeping your workspace organized and efficient. If you’re interested in…