// script library

The PowerShell script library

337 ready-to-run scripts for the jobs that fill a sysadmin's week — health checks, self-healing, Active Directory, VMware, Hyper-V, Proxmox, Windows Server roles, security auditing and patching. Every one is explained and copyable, and the ones that ship with ServerEngine run unmodified in it.

337 scripts

Checks & Diagnostics

18

Check Free Disk Space with PowerShell

Reports size, used space and free space for every fixed volume on a host, and warns twice over: once when free space drops below a percentage, once when…

2026-08-17

Check and Restart a Windows Service with PowerShell

Looks up one service by name, starts it when it is stopped, and restarts it when it is already running so a wedged process gets a clean slate. Every state…

2026-08-17

Check CPU Usage with PowerShell

Takes five processor readings five seconds apart and reports the average instead of a single instantaneous number, which on a busy server is almost always…

2026-08-17

Check RAM Usage with PowerShell

The memory counterpart to the CPU check: five samples five seconds apart, averaged, with an error above 85% used. Working from the total and free physical…

2026-08-17

Check Server Uptime with PowerShell

Reports the last boot time and how long the server has been up, and warns once uptime passes the configured number of days. Long uptime is rarely a…

2026-08-17

Check for a Pending Reboot with PowerShell

Checks all four places Windows records a pending restart: Component Based Servicing, Windows Update, pending file rename operations and a pending computer…

2026-08-17

Check NTP Time Sync and Clock Offset with PowerShell

Reports the W32Time service state, the configured time source and the stratum, then measures the actual offset against that source with a stripchart…

2026-08-17

Check Certificate Expiry with PowerShell

Walks the LocalMachine\My certificate store and lists everything that has already expired or expires within the configured number of days, sorted by…

2026-08-17

Check Event Log Errors with PowerShell

Collects critical and error events from the System and Application logs over a lookback window, then groups them by source and shows the ten worst…

2026-08-17

Check DNS Resolution with PowerShell

Reports the configured DNS servers and then resolves a list of names, by default the host's own AD domain plus two public names, so an internal-only…

2026-08-17

Check If a TCP Port Is Open with PowerShell

Tests one TCP port on one host with a real socket connect and an explicit timeout, rather than a ping that proves nothing about the service. The result is…

2026-08-17

Check Physical Disk Health and SSD Wear with PowerShell

Reports health and operational status for every physical disk, then adds the storage reliability counters where the hardware exposes them: SSD wear…

2026-08-17

Find Failed Scheduled Tasks with PowerShell

Lists every enabled scheduled task whose last result was not success, with the result code and the time it ran. Built-in Microsoft tasks are skipped by…

2026-08-17

Check Internet Connectivity with PowerShell

A one-line reachability test against a public address, written to fail the run when the host has no way out. Small enough to be worth reading as an…

2026-08-17

Check for Administrator Rights in a PowerShell Script

Resolves the current Windows identity and fails the run when it is not in the Administrators role, with a message that also covers the remote case: a…

2026-08-17

Check CPU, RAM and Disk Usage with PowerShell

A single snapshot of the three numbers you want first when a server is reported as slow: processor load with the logical core count, memory in use against…

2026-08-17

List Installed Software with PowerShell

Reads the uninstall registry keys for classic Win32 applications with publisher and version, then lists the installed Microsoft Store packages. Run it…

2026-08-17

Check Windows 11 Compatibility with PowerShell

Tests the Windows 11 hardware requirements — TPM, Secure Boot, processor, memory and system disk — and writes a formatted HTML report to the desktop, or…

2026-08-17

Self-Healing & Repair

11

Clear the Windows Update Cache with PowerShell

Stops the Windows Update service, removes the SoftwareDistribution folder and starts the service again, which is the standard fix for updates that fail to…

2026-08-17

Automate Disk Cleanup with PowerShell

Checks usage on every filesystem drive and, only on the ones above the threshold, clears the temp folder, empties the recycle bin and drops the Windows…

2026-08-17

Remove Windows Bloatware Apps with PowerShell

Removes a named list of consumer Store apps — Xbox, Solitaire, Clipchamp, Phone Link, Sticky Notes, Maps and the rest — from a freshly imaged machine. The…

2026-08-17

Flush the DNS Cache with PowerShell

Clears the local resolver cache and reports the entry count before and after, so the run history shows that something was actually flushed. The fix for a…

2026-08-17

Clear a Stuck Print Queue with PowerShell

Counts the stuck spool files first and leaves the spooler alone when there are none, then stops the service, deletes the queue files, starts it again and…

2026-08-17

Delete Old Temp Files with PowerShell

Deletes files older than the configured age from the system and user temp folders, and reports how many files and how many megabytes came back per…

2026-08-17

Repair Windows System Files with DISM and SFC

Runs DISM RestoreHealth first and SFC afterwards, which is the order that works: SFC repairs from the component store, so repairing the store first is…

2026-08-17

Clean Up the WinSxS Component Store with PowerShell

Analyses the component store, runs StartComponentCleanup to drop superseded update components, and reports free space before and after so the gain is a…

2026-08-17

Force a Windows Time Sync with PowerShell

Starts W32Time if it is not running, forces a resync, and logs the clock and the active time source before and after. The remediation half of the time…

2026-08-17

Kill a Hung Process with PowerShell

Force-terminates every instance of one named process, logging the process ID and memory footprint of each. A switch limits it to processes Windows has…

2026-08-17

Restart a List of Services with PowerShell

Reads a list of service names from the runbook variable a check step filled in, and restarts each one that is not running, verifying the state afterwards…

2026-08-17

VMware & vSphere

37

Power On a VMware VM with PowerCLI

Connects PowerCLI to an ESXi host or vCenter with credentials resolved from the ServerEngine credential store, finds the VM whose name matches the host…

2026-08-17

Power Off a VMware VM with PowerCLI

The same PowerCLI connect-act-disconnect shape for the other direction: look the VM up by name, report clearly when it is already powered off, and…

2026-08-17

Restart a VMware VM with PowerCLI

Restarts one named VM through PowerCLI, with the VM name as the single value at the top of the script. Small on purpose: it is the building block you drop…

2026-08-17

Snapshot Multiple VMs with PowerCLI

Takes a quiesced snapshot of every VM in a list, with a description carrying the timestamp of the run, and reports per VM whether the snapshot was…

2026-08-17

Delete Old VMware Snapshots with PowerCLI

Finds every snapshot across all VMs older than the configured age and removes it asynchronously, logging the VM, age and size of each. It starts in…

2026-08-17

Power On and Power Off VMs in VMware vSphere

This post provides a useful PowerShell script for managing virtual machines in VMware vSphere. You will learn to automate the processes of powering on and…

2025-01-08

Retrieve VM Information in VMware vSphere

This post details a PowerShell script designed to retrieve and display vital information about virtual machines (VMs) in a VMware vSphere environment. By…

2025-01-08

Automate VMware vSphere VM Snapshot Creation

In this post, you will learn how to create a PowerShell script that automates the process of taking snapshots of virtual machines in VMware vSphere. This…

2025-01-08

Automate VM Snapshot Management in VMware vSphere

In this post, we will create a PowerShell script that automates the process of managing snapshots for your virtual machines in VMware vSphere.

2025-01-07

Automating VMware vSphere VM Power Operations with PowerShell

In this script, we will show you how to power on, power off, and check the power state of your virtual machines (VMs) using PowerShell. This can be…

2025-01-07

Bulk VM Power Management in vSphere Using PowerShell

Managing the power state of multiple virtual machines in a VMware vSphere environment can be tedious. This PowerShell script facilitates bulk power…

2025-01-06

Automating VM Snapshot Management in vSphere Using PowerShell

As virtual environments continue to grow, managing snapshots becomes crucial for effective system recovery and resource management. This PowerShell script…

2025-01-06

Automating VM Deployment in vSphere Using PowerShell

In today's IT landscape, automating tasks can save valuable time and reduce human error. PowerShell provides powerful tools to manage VMware vSphere…

2025-01-06

Automating Virtual Machine Power Management in VMware vSphere

Today, we present a script that helps you to start or stop virtual machines based on their current power state. This can be particularly useful in…

2025-01-06

Streamlining VMware vSphere Management with PowerShell

Today, we are going to look at a straightforward yet powerful PowerShell script that helps you retrieve the status of virtual machines in your vSphere…

2025-01-06

PowerShell Script for VMware vSphere: VM Snapshot Management

In this post, we are focusing on a PowerShell script that interacts with VMware vSphere to manage virtual machine (VM) snapshots. This script allows you…

2025-01-06

Automate VM Power State Management in VMware vSphere with PowerShell

PowerShell scripts can significantly streamline your workflows in VMware vSphere by automating common tasks such as managing the power state of your…

2025-01-06

Create VM List Report in VMware vSphere Using PowerShell

In this post, I will share a PowerShell script designed to generate a report of all virtual machines (VMs) in your VMware vSphere environment. This report…

2025-01-06

PowerShell Script for Bulk VM Power Management in VMware vSphere

In this post, I will share a PowerShell script that simplifies the process of managing multiple virtual machines (VMs) in VMware vSphere. This script…

2025-01-06

Automating VM Snapshots in VMware vSphere Using PowerShell

In this post, I will share a useful PowerShell script that automates the process of creating snapshots for virtual machines (VMs) in VMware vSphere…

2025-01-06

Automate VMware vSphere VM Snapshot Creation with PowerShell

In this post, we will explore a PowerShell script designed to automate the creation of virtual machine snapshots in VMware vSphere. Snapshots can be a…

2025-01-06

Automating VMware vSphere VM Power On

In this post, I will share a practical PowerShell script to automate the process of powering on a virtual machine (VM) in VMware vSphere. This script is…

2025-01-06

Automating VM Reports in VMware vSphere with PowerShell

Generating reports for virtual machines in VMware vSphere can be a tedious task. This PowerShell script automates the creation of reports that summarize…

2025-01-06

Automating VM Snapshot Management in VMware vSphere with PowerShell

Managing snapshots in VMware vSphere is essential for backup and restoration processes. This PowerShell script automates the creation and deletion of…

2025-01-06

Batch Updating VMware Tools on Multiple VMs with PowerShell

Keeping VMware Tools updated on all your virtual machines is crucial for optimal performance and compatibility. This PowerShell script automates the…

2025-01-06

Monitoring VM Resource Usage in VMware vSphere with PowerShell

Keeping track of resource usage for your virtual machines in VMware vSphere is vital for efficient resource allocation and performance optimization. This…

2025-01-06

Automating VM Power Management in VMware vSphere with PowerShell

Managing virtual machines (VMs) in VMware vSphere can be tedious without automation. This PowerShell script allows you to start, stop, or restart VMs…

2025-01-06

Automate VM Snapshot Management in VMware ESXi with PowerShell

In this post, we present a PowerShell script that automates the creation and deletion of snapshots for your virtual machines. Snapshots are vital for…

2025-01-06

Retrieve and Report ESXi VM Health Status Using PowerShell

This script enables you to retrieve the health status of your virtual machines, providing key insights into their performance and operational status…

2025-01-06

Automate VM Power Operations on VMware ESXi with PowerShell

In this post, we are excited to share a powerful PowerShell script that allows you to automate the power operations of your virtual machines (VMs) on…

2025-01-06

Monitor VMware ESXi Host Status with PowerShell

In this post, we are sharing a useful PowerShell script designed to help you monitor the status of your VMware ESXi hosts. This script retrieves vital…

2025-01-06

Efficient System Health Checks for VMware with PowerShell

Maintaining the health of your VMware environment is essential for optimal performance and reliability. Regular health checks can help identify issues…

2025-01-04

Optimize VMware VM Management with PowerShell

In this post, we will discuss a PowerShell script that enhances VMware VM management by allowing you to quickly retrieve and display the details of your…

2024-12-24

Simplify VMware VM Snapshot Management with PowerShell

In this post, we introduce a PowerShell script that allows you to manage snapshots of your VMware virtual machines effortlessly. Managing snapshots is…

2024-12-24

Simplifying VMware Virtual Machine Provisioning with PowerShell

Efficiently provisioning new virtual machines in VMware can greatly enhance productivity and streamline IT operations. This PowerShell script automates…

2024-12-23

Simplifying VMware Virtual Machine Snapshots with PowerShell

Managing virtual machine snapshots is crucial for ensuring that you can revert to previous states if needed, especially before making significant changes…

2024-12-23

Efficiently Managing VMware Virtual Machines with PowerShell

In a virtualized environment, maintaining and managing virtual machines can be a complex task. This PowerShell script is specifically designed to simplify…

2024-12-23

Hyper-V

27

Create a Hyper-V Checkpoint with PowerShell

Creates a checkpoint for one VM with a timestamp appended to the name, so a series of pre-change safety points stays readable instead of turning into a…

2026-08-17

Delete Old Hyper-V Checkpoints with PowerShell

Deletes checkpoints older than the configured age across all VMs on a host, logging each one with its VM and creation date. Afterwards it waits and…

2026-08-17

Start a Hyper-V VM with PowerShell

Starts one VM by name and polls its state for up to a minute, so the script only reports success when the VM is genuinely running. A VM that is already…

2026-08-17

Shut Down a Hyper-V VM with PowerShell

Sends a guest shutdown through the integration services and waits for the configured timeout, reporting how long the guest actually took. A hard power off…

2026-08-17

Efficient Hyper-V VM Status Reporting Script

Monitoring the status of Hyper-V virtual machines is essential for administrators to maintain optimal performance and uptime. In this post, we will share…

2025-01-10

Hyper-V Virtual Machine Snapshot Management Script

Managing Hyper-V virtual machines efficiently is crucial for maintaining a productive environment. In this post, we'll share a useful PowerShell script…

2025-01-10

Automated Virtual Machine Restart with PowerShell and Hyper-V

In this post, we will introduce a handy PowerShell script designed to automate the restarting of Hyper-V virtual machines. This script allows…

2025-01-10

Efficient Virtual Machine Snapshot Management with PowerShell and Hyper-V

In this post, we will explore a useful PowerShell script that helps manage Hyper-V virtual machine snapshots efficiently. This script allows you to create…

2025-01-10

Hyper-V Virtual Machine Export Script

In this post, we will present a PowerShell script that allows you to export Hyper-V virtual machines easily. This script is particularly useful for…

2025-01-10

Hyper-V VM Resource Usage Monitor

In this post, we are introducing a PowerShell script that allows you to monitor the resource usage of your Hyper-V virtual machines. This script provides…

2025-01-10

Hyper-V VM Cleanup Script

This PowerShell script helps you maintain a clean Hyper-V environment by removing old snapshots and unused virtual machines. Keeping your environment tidy…

2025-01-10

Hyper-V VM Status and Resource Report

This PowerShell script generates a detailed report of your Hyper-V virtual machines, including their status and resource usage. It's useful for monitoring…

2025-01-10

Hyper-V VM Snapshot Script

This PowerShell script creates snapshots of your Hyper-V virtual machines, allowing for easy rollbacks and recovery points. Regular snapshots can…

2025-01-10

Automated Hyper-V VM Backup Script

This PowerShell script automates the process of backing up your Hyper-V virtual machines. It simplifies the backup routine, ensuring your data is safe and…

2025-01-10

Hyper-V VM Status Checker Script

This PowerShell script checks the status of your Hyper-V virtual machines. It helps in monitoring whether your VMs are running, turned off, or in an error…

2025-01-10

Automating Hyper-V Virtual Machine Creation

Today, we are sharing a script that automatically creates a new virtual machine in Hyper-V. This simplifies your workflow, making it easier to manage your…

2025-01-09

Automate System Health Checks for Hyper-V with PowerShell

Ensuring the health of your Hyper-V environment is crucial for maintaining performance and availability. Regular health checks can help you proactively…

2025-01-04

Automate System Health Checks with PowerShell for Hyper-V

Regularly monitoring the health of your Hyper-V virtual machines is crucial to ensure optimal performance and prevent downtime. This PowerShell script…

2025-01-04

Monitoring System Health Checks in Hyper-V with PowerShell

In this post, we will focus on a PowerShell script that automates system health checks for virtual machines running in Hyper-V. Regular health checks are…

2025-01-04

Monitor System Health for Hyper-V Virtual Machines with PowerShell

In this post, we will introduce a PowerShell script that efficiently monitors the health of Hyper-V virtual machines in your environment. Regular health…

2024-12-24

Efficiently Monitor System Health Checks in Hyper-V with PowerShell

In this post, we will introduce a PowerShell script that enables IT administrators to perform system health checks on Hyper-V virtual machines. Regular…

2024-12-24

Effortless Hyper-V Virtual Machine Management with PowerShell

In this post, we will share a PowerShell script designed to simplify Hyper-V virtual machine management. Efficient management of virtual machines is…

2024-12-24

Automate Hyper-V Virtual Machine Creation with PowerShell

In this post, we will share a useful PowerShell script that automates the creation of virtual machines in Hyper-V. This script can be an invaluable tool…

2024-12-24

Performing System Health Checks on Hyper-V Virtual Machines with PowerShell

Keeping your Hyper-V virtual machines in optimal health is crucial for ensuring the reliability and performance of your IT infrastructure. This PowerShell…

2024-12-23

Automating Hyper-V Virtual Machine Health Checks with PowerShell

Keeping Hyper-V virtual machines running smoothly is essential for a seamless IT environment. This PowerShell script automates the health checks of…

2024-12-23

Monitoring System Health Checks for Hyper-V Virtual Machines Using PowerShell

Keeping your Hyper-V virtual machines healthy is crucial for the overall performance and reliability of your infrastructure. By automating system health…

2024-12-23

Automating Hyper-V Virtual Machine Checks with PowerShell

Maintaining the health and performance of your virtual machines is crucial for optimizing your IT infrastructure. This PowerShell script automates the…

2024-12-23

Proxmox VE

7

Active Directory

41

Active Directory User Onboarding with PowerShell

Creates a fully populated AD account — name, UPN, mail, department, office, address and target OU — and then adds it to the security groups that belong to…

2026-08-17

Active Directory User Offboarding with PowerShell

Processes every enabled account in an offboarding OU: strips all group memberships except a protected list, resets the password to a random 16-character…

2026-08-17

Disable an Active Directory User with PowerShell

Disables one account by sAMAccountName, checks first whether it is already disabled, and reads the state back afterwards to prove the change landed…

2026-08-17

Enable an Active Directory User with PowerShell

The counterpart to the disable script: re-enables one account by sAMAccountName, skips the work when it is already enabled and verifies the result. Both…

2026-08-17

Unlock an Active Directory Account with PowerShell

Unlocks one account that lockout policy has locked after failed logons, reporting when there was nothing to unlock rather than pretending to have done…

2026-08-17

Reset an Active Directory Password with PowerShell

Sets a new password for one account and, by default, forces a change at the next logon. Leaving the password parameter empty makes the script take the…

2026-08-17

Move AD Users to an OU by Department with PowerShell

Reads every user out of a staging OU — the one an HR sync or provisioning tool writes into — and moves each into the target OU mapped to its department…

2026-08-17

Copy Group Memberships Between AD Users with PowerShell

Copies every group membership from a reference user to a target user, which is how the request usually arrives: give the new starter the same access as…

2026-08-17

Add a User to an AD Group with PowerShell

Resolves the user and the group first, reports precisely which one was not found when something is wrong, and skips the change when the user is already a…

2026-08-17

Remove a User from an AD Group with PowerShell

The mirror image of the add script, with the same resolve-then-verify structure and the same refusal to act on a membership that is not there. Together…

2026-08-17

Report Inactive Active Directory Users with PowerShell

Lists enabled accounts with no logon inside the configured number of days, ignoring accounts created inside that same window so new starters are not…

2026-08-17

Report AD Password Expiry with PowerShell

Reads the computed password expiry attribute for every enabled account whose password can expire and lists the ones inside the warning window, marking…

2026-08-17

Check Active Directory Replication with PowerShell

Reports every replication partner with the time of its last successful replication, then lists the failures with partner, failure count and when the…

2026-08-17

Retrieve User Details from Active Directory

Managing user information in Active Directory is essential for ensuring effective communication and compliance. This PowerShell script allows…

2025-01-06

Bulk Disable Active Directory User Accounts

Managing user accounts effectively is essential for maintaining security in your organization. This PowerShell script allows administrators to bulk…

2025-01-06

Bulk Update User Phone Numbers in Active Directory

Keeping user contact information up to date in Active Directory is essential for effective communication within an organization. This PowerShell script…

2025-01-06

Retrieve and Reset User Passwords in Active Directory

Managing user passwords in Active Directory is essential for ensuring security and compliance. This PowerShell script provides administrators with the…

2025-01-06

Automate Active Directory User Cleanup by Last Logon Date

Managing user accounts effectively in Active Directory is crucial for security and operational efficiency. This PowerShell script helps administrators…

2025-01-05

Export Active Directory Users Group Memberships to CSV

Managing user group memberships in Active Directory is key to ensuring proper permission settings and security compliance. This PowerShell script allows…

2025-01-05

Bulk Enable Active Directory User Accounts

Managing Active Directory user accounts efficiently is crucial for maintaining security and usability within an organization. This PowerShell script…

2025-01-05

Check for Locked Active Directory Accounts

Identifying locked accounts in Active Directory is essential for maintaining security and usability. This PowerShell script allows administrators to check…

2025-01-05

Generate a List of Active Directory Users and Their Last Logon Dates

Understanding user activity in Active Directory is key for maintaining security and compliance. This PowerShell script retrieves a list of active users…

2025-01-05

Bulk Update Active Directory User Attributes

Keeping user attributes up to date is essential for effective IT management. This PowerShell script allows administrators to bulk update specific…

2025-01-05

Find and Delete Expired Active Directory User Accounts

In Active Directory management, keeping user accounts up to date is crucial for security and efficiency. This PowerShell script helps administrators…

2025-01-05

Generate Active Directory User Reports

Keeping track of user information in Active Directory is essential for effective management and administration. In this post, we will provide a PowerShell…

2025-01-05

Reset Active Directory User Passwords in Bulk

Regularly updating user passwords is essential for maintaining security within an organization. In this post, we will provide a PowerShell script that…

2025-01-05

Finding Inactive Active Directory Accounts

Maintaining an up-to-date Active Directory is crucial for ensuring both security and efficiency. In this post, we will provide a PowerShell script that…

2025-01-05

List Active Directory Group Members with PowerShell

Managing group memberships in Active Directory is crucial for maintaining security and ensuring proper access control. In this post, we will share a…

2025-01-05

Exporting Active Directory User Details to CSV

In this post, we will share a PowerShell script designed to export user details from Active Directory into a CSV file. This is particularly useful for…

2025-01-05

Bulk Disable Active Directory Users with PowerShell

Managing user accounts in Active Directory can be a daunting task, especially when it comes to disabling multiple accounts that are no longer in use. In…

2025-01-05

Automating Active Directory User Import with PowerShell

In this post, we will explore a useful PowerShell script that automates the process of importing multiple users into Active Directory from a CSV file…

2025-01-05

Managing Active Directory Users with PowerShell

In this post, we offer a useful PowerShell script for managing Active Directory (AD) users. Whether you are an IT administrator or a system operator, this…

2025-01-05

Streamlining Active Directory Management with PowerShell Scripts

Managing user accounts in Active Directory can be a daunting task, especially in larger organizations. PowerShell offers powerful capabilities to automate…

2024-12-29

Active Directory Group Membership Report

This PowerShell script generates a report of user memberships for specified Active Directory groups. It is essential for system administrators to…

2024-12-27

Effortlessly Export Active Directory User List with PowerShell

In this post, we will provide a PowerShell script that automates the process of exporting a list of Active Directory users to a CSV file. This script is…

2024-12-24

Automate User Password Resets in Active Directory with PowerShell

In this post, we will showcase a PowerShell script that automates the password reset process for user accounts in Active Directory. Managing user…

2024-12-24

Effortlessly Export Active Directory Group Members with PowerShell

In this post, we will introduce a PowerShell script that simplifies the process of exporting members of a specific Active Directory group. Managing group…

2024-12-24

Effortlessly Retrieve Active Directory User Information with PowerShell

In this post, we will introduce a PowerShell script that retrieves and displays comprehensive information about users in Active Directory. Gathering user…

2024-12-24

Manage Active Directory Group Memberships with PowerShell

In this post, we will introduce a PowerShell script that helps IT administrators manage group memberships in Active Directory. Properly managing group…

2024-12-24

Automate User Account Auditing in Active Directory with PowerShell

In this post, we will present a PowerShell script to automate user account auditing in Active Directory. Regularly auditing user accounts is essential for…

2024-12-24

Simplified User Account Creation in Active Directory with PowerShell

In this post, we will provide a PowerShell script that simplifies the process of creating user accounts in Active Directory. This script streamlines the…

2024-12-24

Windows Server Roles

10

Report Installed Server Roles with PowerShell

Lists the installed roles and the top-level features of a server, separated, so the output answers what this machine actually does without scrolling…

2026-08-17

Report DHCP Scope Utilization with PowerShell

Reports every IPv4 scope with its state, addresses in use, total addresses and utilization, and warns on active scopes above the configured percentage. A…

2026-08-17

Create a DNS A Record with PowerShell

Adds one A record to a zone and requests the matching PTR where a reverse zone exists. An existing record is reported with the address it points to and…

2026-08-17

Clear the DNS Server Cache with PowerShell

Purges the cache of a Windows DNS server and then the local client cache as well, so the server itself resolves fresh immediately. The fix for the whole…

2026-08-17

Find the Largest Files in a Folder with PowerShell

Walks a path and lists the biggest files, sorted, with sizes aligned so the list scans at a glance. The blunt instrument for a full volume: it usually…

2026-08-17

Get Folder Sizes with PowerShell

Measures each first-level folder under a path recursively and reports the sizes largest first, with a total at the end. The complement to the…

2026-08-17

Report SMB Shares and Permissions with PowerShell

Lists every share with its path and share-level access entries, and flags any share where Everyone has more than read access — matching the German account…

2026-08-17

Force a Group Policy Update with PowerShell

Runs gpupdate /force and then parses gpresult to report when policy was last applied and which GPOs are actually in effect. Applying policy is the easy…

2026-08-17

Check Windows Activation Status with PowerShell

Reads the licensing state of the Windows product, translating the numeric status into plain words — licensed, notification, grace period, non-genuine —…

2026-08-17

Install Server Core App Compatibility with PowerShell

Adds the App Compatibility Feature on Demand to a Server Core installation, which is what brings back MMC, Event Viewer, Performance Monitor and a handful…

2026-08-17

Microsoft 365 & Entra ID

36

Automate M365 User License Assignment with PowerShell

In this post, we are sharing a handy PowerShell script that automates the assignment of licenses to Microsoft 365 users in bulk. Whether you are managing…

2025-01-09

Manage M365 Users with PowerShell

Today, I present a script that helps you manage Microsoft 365 users efficiently. This script will allow you to retrieve a list of all users in your M365…

2025-01-09

Automate Microsoft 365 User License Management with PowerShell

In this post, I will be sharing a useful PowerShell script that automates the process of managing user licenses in Microsoft 365. This script can help…

2025-01-09

Streamlining M365 User Management with PowerShell

Dive into this script that assists in managing Microsoft 365 users effortlessly.

2025-01-09

PowerShell Script to Retrieve M365 User License Info

In this post, I am excited to share a handy PowerShell script that allows you to retrieve license information for users in Microsoft 365 (M365). This…

2025-01-09

Automate Microsoft 365 User Report Generation with PowerShell

In this post, we will look at a handy script that automates the generation of user reports in Microsoft 365. This script retrieves information about all…

2025-01-09

Automating Microsoft 365 License Management with PowerShell

In this post, we will explore a practical script designed to automate the license management process for Microsoft 365 users. This script will help you…

2025-01-09

Streamlining Microsoft 365 User Management with PowerShell

Today, we are diving into a useful script that simplifies user management in Microsoft 365. This script allows you to retrieve a list of all users in your…

2025-01-09

Efficient User Onboarding in Microsoft 365 with PowerShell

Onboarding new users in Microsoft 365 can often be a time-consuming process, especially in larger organizations with many new hires. Automating this…

2025-01-04

Simplify User Onboarding in Microsoft 365 with PowerShell

Onboarding new users in Microsoft 365 can often be a tedious and error-prone task, especially in larger organizations. This PowerShell script automates…

2025-01-04

Automate User Onboarding for Microsoft Entra ID with PowerShell

Onboarding new users can often be a lengthy and complicated process, especially in large organizations. Using PowerShell, you can streamline user…

2025-01-04

Streamline User Onboarding with PowerShell for Microsoft 365

Managing user accounts and streamlining onboarding processes can be a daunting task, especially in a large organization. With PowerShell, you can automate…

2025-01-04

Automating User Onboarding in Microsoft 365 with PowerShell

In this post, we will explore a PowerShell script for automating user onboarding in Microsoft 365. This script simplifies the process of adding new users…

2025-01-04

Streamlining User Onboarding in Microsoft Entra ID with PowerShell

In this article, we will focus on streamlining the user onboarding process in Microsoft Entra ID. Automating this process can save time and reduce human…

2025-01-04

Streamlining User Onboarding with PowerShell in M365

In this installment, we are focusing on a script that automates user onboarding in Microsoft 365 (M365). Proper onboarding is crucial for organizations to…

2025-01-04

Automate Azure VM Status Checks with PowerShell

In this post, we will introduce a PowerShell script that automates the process of checking the status of Azure virtual machines. Monitoring the health and…

2024-12-24

Automate Office 365 License Assignment with PowerShell

In this post, we will introduce a PowerShell script that automates the assignment of Office 365 licenses to users in your organization. Managing licenses…

2024-12-24

Automate Microsoft Entra ID User Management with PowerShell

In this post, we will share a PowerShell script designed to automate user management tasks in Microsoft Entra ID (formerly Azure Active Directory)…

2024-12-24

Streamline User Onboarding in Microsoft 365 with PowerShell

In this post, we will share a PowerShell script designed to automate the user onboarding process in Microsoft 365. Efficient onboarding is critical for…

2024-12-24

Simplify Cloud Services Management in Microsoft 365 with PowerShell

In this post, we will share a PowerShell script designed to simplify the management of cloud services in Microsoft 365. Effectively managing cloud…

2024-12-24

Automate User Onboarding in Microsoft Entra ID with PowerShell

In this post, we will explore a PowerShell script designed to facilitate the user onboarding process in Microsoft Entra ID (formerly Azure Active…

2024-12-24

Streamline Software Deployment in Microsoft 365 with PowerShell

In this post, we will provide a PowerShell script that simplifies the software deployment process in Microsoft 365. Efficient software deployment is…

2024-12-24

Automate User Onboarding in Microsoft 365 with PowerShell

In this post, we will explore a PowerShell script designed to automate the user onboarding process in Microsoft 365. Streamlining user onboarding is…

2024-12-24

Monitor Microsoft 365 User Licenses with PowerShell

In this post, we will share a practical PowerShell script to monitor Microsoft 365 user licenses in your organization. Keeping track of user licenses is…

2024-12-24

Optimizing Security Compliance Checks in Microsoft 365 with PowerShell

Maintaining security compliance is critical for protecting sensitive information and adhering to regulatory requirements in any organization. This…

2024-12-23

Automating Software Deployment in Microsoft 365 with PowerShell

Efficient software deployment is essential for ensuring that users have access to the applications they need to perform their jobs. This PowerShell script…

2024-12-23

Streamlining User Onboarding in Microsoft Entra ID with PowerShell

Efficient user onboarding is essential for organizations to integrate new employees smoothly while ensuring compliance and security. This PowerShell…

2024-12-23

Streamlining Microsoft Entra ID User Management with PowerShell

Managing user accounts effectively in Microsoft Entra ID is critical for maintaining security and operational efficiency within an organization. This…

2024-12-23

Efficient Cloud Services Health Checks with PowerShell for M365

Maintaining the health of your Microsoft 365 environment is crucial for ensuring seamless operations and user satisfaction. This PowerShell script…

2024-12-23

Simplifying User Onboarding in Microsoft Entra ID with PowerShell

Efficient user onboarding is crucial for organizations to integrate new hires effectively while maintaining security and access control. This PowerShell…

2024-12-23

Automating User Onboarding in Microsoft Entra ID with PowerShell

Onboarding new users efficiently is essential for any organization. This PowerShell script simplifies the onboarding process for new employees by…

2024-12-23

Efficient Software Deployment in M365 with PowerShell

In the fast-paced world of IT, ensuring that software is deployed efficiently across your Microsoft 365 environment is vital for maintaining productivity…

2024-12-23

Streamlining System Health Checks Using PowerShell for M365

Maintaining the health of your M365 environment is essential to ensure optimal performance and security. Regular system health checks can help identify…

2024-12-23

Automating User Onboarding with Microsoft Entra ID and PowerShell

User onboarding is a critical process that can often be time-consuming and prone to error. By automating the onboarding process, organizations can ensure…

2024-12-23

Enhancing Security Compliance with PowerShell in M365

In the modern digital workplace, maintaining security compliance is paramount. This PowerShell script automates the retrieval of security compliance…

2024-12-23

Automating Microsoft Entra ID User Provisioning with PowerShell

In organizations employing Microsoft Entra ID for identity management, automating user provisioning can streamline administrative tasks and enhance…

2024-12-23

SharePoint & OneDrive

16

Monitor SharePoint Site Usage with PowerShell

Keeping track of site usage in SharePoint is essential for managing storage and understanding user engagement. This PowerShell script helps you retrieve…

2025-01-04

Streamline SharePoint File Permissions Management with PowerShell

Managing file and folder permissions in SharePoint can often be complex and time-consuming. Using PowerShell, you can automate this process, making it…

2025-01-04

Managing File Permissions in SharePoint with PowerShell

Today, we will focus on managing file permissions in SharePoint using PowerShell. This script helps administrators efficiently view and configure…

2025-01-04

Automate User Permissions Management in SharePoint with PowerShell

In this post, we will highlight a PowerShell script that facilitates the management of user permissions in SharePoint. Properly managing user access is…

2024-12-24

Efficiently List User Permissions in SharePoint with PowerShell

In this post, we will provide a PowerShell script that helps you list user permissions for a SharePoint site. Understanding who has access to what…

2024-12-24

Efficiently Manage OneDrive File Permissions with PowerShell

In this post, we will present a PowerShell script that simplifies the management of file permissions within OneDrive for Business. Properly managing file…

2024-12-24

Streamline File and Folder Permissions Management in SharePoint with PowerShell

In this post, we will provide a PowerShell script to help manage file and folder permissions in SharePoint. Proper management of permissions is essential…

2024-12-24

Automate OneDrive File Sharing with PowerShell

In this post, we will explore a useful PowerShell script that automates the process of sharing files on OneDrive. This script is perfect for businesses…

2024-12-24

Managing SharePoint Site Permissions with PowerShell

Efficient management of site permissions in SharePoint is crucial for maintaining security and controlling access to sensitive information. This…

2024-12-23

Automating OneDrive User Permissions Management with PowerShell

Managing user permissions in OneDrive is essential for ensuring data security and proper access control. This PowerShell script helps administrators…

2024-12-23

Automating SharePoint Site Permissions Audit with PowerShell

Managing and auditing site permissions in SharePoint is crucial to ensure that sensitive information is protected and that users have appropriate access…

2024-12-23

Streamlining OneDrive File Management with PowerShell

Effectively managing files in OneDrive is essential for ensuring collaboration and security within an organization. This PowerShell script automates the…

2024-12-23

Efficiently Checking File and Folder Permissions in OneDrive with PowerShell

Managing file and folder permissions in OneDrive is crucial for maintaining data security and ensuring that users have appropriate access rights. This…

2024-12-23

Automating File and Folder Permissions Checks in SharePoint with PowerShell

Managing file and folder permissions within SharePoint is vital for ensuring that sensitive information is secure while enabling collaboration among…

2024-12-23

Streamlining SharePoint Site Permissions with PowerShell

Managing site permissions in SharePoint can be a complex task, especially for organizations with multiple sites and users. This PowerShell script…

2024-12-23

Streamlining OneDrive File Permissions Management with PowerShell

Efficiently managing file permissions in OneDrive is essential for ensuring that sensitive information is protected while still maintaining collaboration…

2024-12-23

Security & Auditing

34

Enable the Windows Firewall with PowerShell

Turns the firewall on for the Domain, Private and Public profiles, reporting which ones were already enabled and which were switched, then verifies the…

2026-08-17

Check Windows Firewall Status with PowerShell

A read-only two-liner that lists each firewall profile and whether it is enabled. Run it across a whole server group when you need an answer to the…

2026-08-17

Disable SMBv1 with PowerShell

Removes the SMBv1 attack surface that WannaCry used, in both places it lives: the SMB server configuration and the optional Windows feature that carries…

2026-08-17

Enforce TLS 1.2 in the Registry with PowerShell

Writes the Schannel protocol registry keys to disable SSL 2.0, SSL 3.0, TLS 1.0 and TLS 1.1 and to enable TLS 1.2 and 1.3, for both the server and client…

2026-08-17

Enable RDP Network Level Authentication with PowerShell

Requires NLA so an unauthenticated connection never reaches the logon screen, and sets the RDP security layer to TLS at the same time. The setting is…

2026-08-17

Audit the Local Administrators Group with PowerShell

Lists every member of the local Administrators group with its object class and principal source, resolving the group by its well-known SID so the script…

2026-08-17

Audit Failed Logons (Event 4625) with PowerShell

Parses security event 4625 over a lookback window and groups the failures twice: by target account and by source address or workstation. One account…

2026-08-17

Run a Defender Quick Scan with PowerShell

Updates the definitions, reports the version it ended up with, runs a quick scan and then reads back only the detections from the last hour, so the output…

2026-08-17

Check Microsoft Defender Status with PowerShell

Reports realtime protection, behaviour monitoring, tamper protection, engine and definition versions and the last quick scan time, then warns on the three…

2026-08-17

Check BitLocker Encryption Status with PowerShell

Reports volume status, protection status and encryption percentage for every BitLocker volume, and lists the key protectors on the ones that are…

2026-08-17

Disable the Guest Account with PowerShell

Finds the built-in Guest account by the SID suffix rather than by name, so it works on a localized or renamed installation, disables it and reads the…

2026-08-17

Disable Windows Telemetry with PowerShell

Stops the Connected User Experiences and Telemetry service and sets it to disabled, after confirming the session actually has administrator rights. Short…

2026-08-17

List Open TCP Ports and Processes with PowerShell

Lists every TCP connection with local and remote address, state and the process ID that owns it. The fastest answer to what is listening on this server…

2026-08-17

ISO 27001 Compliance Report with PowerShell

The largest script in the library: it maps the collected security state of a Windows host onto the ISO 27001:2022 Annex A controls, assesses each one with…

2026-08-17

PowerShell Script to Audit User Account Security

This PowerShell script audits user accounts in Active Directory to identify accounts that may pose security risks. It checks for accounts that are…

2025-01-13

Secure User Account Audit Script

In this post, we will share a useful PowerShell script that audits user accounts for security compliance. This script will help system administrators…

2025-01-13

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…

2025-01-12

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…

2025-01-12

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…

2025-01-12

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…

2025-01-12

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…

2025-01-12

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…

2025-01-12

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…

2025-01-11

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…

2025-01-11

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…

2025-01-11

Managing File and Folder Permissions with PowerShell

In this post, we will focus on managing file and folder permissions using PowerShell. Properly managing permissions is critical for ensuring data security…

2025-01-04

Network Share Permission Reporter

This PowerShell script is built to audit and report the permissions on network shares across a specified server. It is crucial for system administrators…

2024-12-27

User Logon History Exporter

This PowerShell script provides a convenient way to export user logon history from a Windows system. System administrators often need to track user…

2024-12-27

Monitor Event Logs with PowerShell for Enhanced Security

Event logs provide vital information about the activities and security status of your IT environment. Effective monitoring of these logs allows IT…

2024-12-26

Automate Windows Firewall Configuration with PowerShell

In this post, we will showcase a PowerShell script that automates the configuration of the Windows Firewall on your system. Proper firewall configuration…

2024-12-24

Check File and Folder Permissions with PowerShell

In this post, we will demonstrate how to use PowerShell to check file and folder permissions in a specified directory. Understanding file and folder…

2024-12-24

Automating File and Folder Permissions with PowerShell

Welcome to our section dedicated to providing practical PowerShell scripts to enhance your IT management. Managing file and folder permissions is crucial…

2024-12-23

Efficient File and Folder Permissions Management with PowerShell

Welcome to our PowerShell script section! In this post, we will share a script that simplifies the management of file and folder permissions. Properly…

2024-12-23

Enhancing Security Compliance with PowerShell

In today's post, I will share a useful script that focuses on auditing file and folder permissions to ensure security compliance within your organization…

2024-12-23

Backup & Recovery

9

Efficient File Backup Script in PowerShell

This PowerShell script efficiently backs up files from a specified source directory to a designated backup directory. It provides error handling and…

2025-01-12

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…

2025-01-11

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…

2025-01-11

Automated File Backup Script

In this post, we present a PowerShell script designed for automated file backup. This script helps users to safely back up important files and folders to…

2025-01-10

Scheduled Backup of Important Files

This PowerShell script automates the process of backing up important files from a specified source directory to a target backup directory. Scheduling…

2024-12-27

Automate System Backup Tasks with PowerShell

Managing server backups can often be a tedious chore, especially when handling multiple systems. Streamlining this process with automation can save time…

2024-12-26

Automatically Archive Old Files with PowerShell

In this post, we will provide a PowerShell script that automates the process of archiving files that haven't been modified for a specified period. Keeping…

2024-12-24

Streamline File System Backup with PowerShell

In this post, we will provide a PowerShell script designed to automate the backup of your file system. Regular backups are critical for protecting data…

2024-12-24

Effortlessly Backup SQL Server Databases with PowerShell

In this post, we will present a PowerShell script that automates the backup process of SQL Server databases. Regular backups are essential for data…

2024-12-24

Files & Folders

18

Efficient File Management with PowerShell

This PowerShell script will help you manage files in a directory by organizing them into subfolders based on their file extensions. Follow the steps below…

2025-01-17

Remote Directory Synchronization with PowerShell

This PowerShell script efficiently synchronizes files from a local directory to a remote server or network share. It ensures that only new or updated…

2025-01-12

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…

2025-01-11

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…

2025-01-11

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…

2025-01-11

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…

2025-01-11

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…

2025-01-11

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…

2025-01-10

Streamlined File Cleanup Script

In this post, we introduce a PowerShell script designed for streamlined file cleanup. This script identifies and removes unnecessary files from a…

2025-01-10

Efficient File and Folder Management Script

In this post, we introduce a PowerShell script designed for efficient file and folder management. This script automates the process of organizing files by…

2025-01-10

File and Folder Management Made Easy with PowerShell

In this post, we will share a useful PowerShell script designed for effective file and folder management. This script provides functionality to create…

2025-01-10

File and Folder Management Made Easy

In this post, we will share a useful PowerShell script that simplifies file and folder management tasks. This script allows you to create a folder, copy…

2025-01-10

File and Folder Management PowerShell Script

In this post, we will explore a useful PowerShell script that demonstrates how to manage files and folders effectively. This script will allow you to…

2025-01-10

Automated File Organization Script

Keeping files organized is vital for effective data management and productivity. In this post, we will introduce a PowerShell script that automates the…

2025-01-10

Streamline Your File Management with a PowerShell Directory Cleanup Script

In this article, we will develop a professional PowerShell script designed to manage and clean up files in a specified directory. This script will help…

2025-01-05

Batch File Rename Utility

This PowerShell script is designed to facilitate the batch renaming of files in a specified directory. Administrators often need to organize files…

2024-12-27

Automatic Directory Cleanup Script

In this PowerShell script, we focus on automating the cleanup of unused files and empty directories within a specified directory. This can be particularly…

2024-12-27

Random File Name Generator

This PowerShell script generates a random file name based on user-defined parameters. It is particularly useful for creating unique file names for…

2024-12-27

Networking

7

Monitoring & Health

23

Disk Space Cleanup and Report Script

This PowerShell script helps maintain system performance by identifying large files and folders on specified drives. It not only lists these files but…

2025-01-14

User Account Status Reporting Script

This PowerShell script generates a report on user account status within Active Directory. It helps system administrators quickly identify locked accounts…

2025-01-13

Automated Disk Space Monitoring Script

This PowerShell script helps administrators monitor disk space usage on specified drives. By automating this task, the script ensures timely warnings…

2025-01-13

Monitor System Performance with PowerShell

This PowerShell script monitors system performance by checking CPU and memory usage, providing an overview of resource consumption and potential…

2025-01-12

Automating System Health Check with PowerShell

This PowerShell script is designed to automate the process of checking the health of a Windows system. It gathers various system metrics such as CPU…

2025-01-05

Automate System Performance Monitoring with PowerShell

In this PowerShell script, we will create a professional tool to automate system performance monitoring. This script will track CPU and memory usage…

2024-12-30

Enhancing System Monitoring with PowerShell: Real-time Log Management

In today's fast-paced digital landscape, maintaining an efficient and secure IT environment is crucial for organizational success. Effective monitoring…

2024-12-29

System Event Log Monitor

This PowerShell script is designed to monitor the Windows system event logs for specified event IDs and report any occurrences. System administrators can…

2024-12-27

System Health Check Script

This PowerShell script conducts a comprehensive health check of your Windows system to ensure everything is functioning optimally. By automating this…

2024-12-27

Service Status Reporting Script

This PowerShell script provides a quick way to check the status of critical services on a Windows server. It is designed for system administrators who…

2024-12-27

Disk Space Alert Notification

This PowerShell script helps system administrators monitor disk space usage on their servers. By setting up alert notifications, administrators can stay…

2024-12-27

System Resource Usage Report

This PowerShell script generates a detailed report of the system resource usage, including CPU, memory, and disk space. This can be invaluable for system…

2024-12-27

Retrieve System Uptime and Status

In this PowerShell script, we will check the system uptime and status of your machine, providing crucial information for system administrators and users…

2024-12-27

Monitor Disk Space with PowerShell for Efficient Management

Welcome to today's feature on enhancing IT operations through automation. We bring you a PowerShell script to monitor disk space usage on your servers…

2024-12-27

Automate Disk Space Monitoring Using PowerShell and ServerEngine

Monitoring disk space on servers is a crucial task for any system administrator. Ensuring that your servers have enough free space can prevent service…

2024-12-26

Monitor Disk Space Usage with PowerShell

In this post, we will provide a PowerShell script that allows you to monitor disk space usage across your system. Keeping track of available disk space is…

2024-12-24

Monitor Windows Services Status with PowerShell

In this post, we will provide a PowerShell script that allows administrators to monitor the status of critical Windows services on their machines. Keeping…

2024-12-24

Streamline Disk Space Monitoring with PowerShell

In this post, we will share a PowerShell script that helps you monitor disk space on your Windows machines efficiently. Keeping an eye on disk usage is…

2024-12-24

Automated Windows Service Monitoring with PowerShell

In this post, we will share a PowerShell script that automates the monitoring of Windows services on your system. Keeping track of service statuses is…

2024-12-24

Quickly Check System Resource Utilization with PowerShell

In this post, we will present a PowerShell script that allows you to quickly check the system resource utilization on your Windows machine. Monitoring…

2024-12-24

Perform System Health Checks Using PowerShell

In this post, we will provide a PowerShell script designed to perform system health checks on Windows servers. Regular health checks are crucial to ensure…

2024-12-24

Efficient System Health Checks with PowerShell

Welcome to our dedicated section for sharing valuable PowerShell scripts that can improve your operational efficiency. System Health Checks are essential…

2024-12-23

Enhancing System Health Checks with PowerShell

Keeping your systems healthy and performance-optimized is crucial for ensuring that your IT environment runs smoothly. Regular system health checks help…

2024-12-23

Users & Accounts

5

Software Deployment

16

Install a Windows Feature with PowerShell

Installs one feature by name, with management tools by default, after checking that the feature exists and is not already installed. When the installation…

2026-08-17

Install the RSAT Active Directory PowerShell Module

Makes the ActiveDirectory module available on a host, taking the Windows Server path through Install-WindowsFeature or the Windows client path through the…

2026-08-17

Silently Install PowerShell 7 Alongside 5.1

Resolves the latest stable release from the GitHub API, downloads the x64 MSI and installs it silently with PATH registration, then cleans up the…

2026-08-17

Install the SNMP Service with PowerShell

Installs SNMP for monitoring integrations, again handling both the server feature and the client capability, and verifies the service exists afterwards…

2026-08-17

Uninstall Software by Name with PowerShell

Finds an installed product by display name pattern across both uninstall registry roots and removes it silently, using the MSI product code where there is…

2026-08-17

Install Windows Updates with PSWindowsUpdate

Searches for available updates through PSWindowsUpdate, logs every one it found by title and KB number, hides the KBs on an exclusion list and then…

2026-08-17

Automating Software Deployment with PowerShell

In this post, we will focus on automating software deployment using PowerShell. This script is designed to help system administrators streamline the…

2025-01-04

Automated Software Inventory Script

This PowerShell script automates the process of gathering software inventory from a Windows system. By generating a comprehensive list of installed…

2024-12-27

Scheduled Task Cleanup Script

This PowerShell script simplifies the process of cleaning up old scheduled tasks on a Windows server. Regular maintenance of scheduled tasks is critical…

2024-12-27

Automate Scheduled Tasks Management with PowerShell

In this post, we will provide a PowerShell script that automates the management of scheduled tasks on Windows systems. Scheduled tasks are essential for…

2024-12-24

Automate Windows Update Management with PowerShell

In this post, we will share a PowerShell script that automates the process of managing Windows Updates on your system. Keeping your Windows operating…

2024-12-24

Streamline SQL Server Service Checks with PowerShell

In this post, we will present a PowerShell script designed to check the status of SQL Server services on your machine or across your network. Ensuring…

2024-12-24

Streamline Software Deployment with PowerShell

In this post, we will focus on a PowerShell script that simplifies the software deployment process across multiple computers in your network. Efficient…

2024-12-24

Simplifying Cloud Services Management with PowerShell

Welcome to our helpful guide on PowerShell scripts designed to enhance your IT efficiency. Managing cloud services is essential for businesses adopting…

2024-12-23

Streamlined Software Deployment with PowerShell

Welcome to our collection of helpful PowerShell scripts that can enhance your IT operations. Software deployment can be a time-consuming task, especially…

2024-12-23

Streamlining Software Deployment with PowerShell

In this post, I will share a script designed to streamline software deployment across your organization. Efficient software deployment is key to…

2024-12-23

ServerEngine Platform

10

Write to the ServerEngine Run Log from PowerShell

The logging convention every other script in this library follows, demonstrated on something worth running: a full inventory of operating system…

2026-08-17

Pass Data Between Runbook Steps in PowerShell

Four worked examples of the store variable that carries a value from one runbook script to the next: plain text, a variable, a number and a list joined…

2026-08-17

Read Data from a Previous Runbook Step in PowerShell

The receiving end of the same mechanism, including the case that comes up most: splitting a comma separated list back into an array of user names or…

2026-08-17

Pass Parameters into a PowerShell Script from an API

Shows how an API call substitutes values into a script before it runs: any x-prefixed token is a dynamic parameter, and you can define as many as the job…

2026-08-17

Reboot a Server and Resume the Runbook

The one line that makes a reboot part of an automation run rather than the end of it: the host restarts, ServerEngine waits for it to come back and the…

2026-08-17

Configure WinRM over HTTPS with a Self-Signed Certificate

Prepares a host for remote management end to end: network profile, PowerShell remoting, the WinRM service, an HTTPS listener on 5986 and the firewall…

2026-08-17

Configure WinRM over HTTPS with a Domain Certificate

The same WinRM over HTTPS setup, but binding a certificate your own CA issued instead of a self-signed one. It looks up the newest matching certificate…

2026-08-17

Install and Repair WinGet with PowerShell

Installs and repairs the Windows Package Manager and its dependencies so software deployment works unattended, including the awkward cases: Server SKUs…

2026-08-17

Keep Passwords Out of PowerShell Scripts

Shows the credential reference syntax that keeps secrets out of script files, on a real example: connecting PowerCLI to a vSphere host and reporting…

2026-08-17

A Hello World PowerShell Script for Servers

Reports the machine name, operating system and build, the account the script is running as and the local time — nineteen lines that use every convention…

2026-08-17

Runbooks

2

System Administration

10

Generate a Random Password with PowerShell

Builds a password from a cryptographic random number generator, guarantees one character from each class, and shuffles the result with Fisher-Yates rather…

2026-08-17

Get the Public IP Address with PowerShell

Asks three independent lookup services in turn until one answers with something that looks like an IPv4 address, so a single dead endpoint does not fail…

2026-08-17

Send a Wake-on-LAN Magic Packet with PowerShell

Builds a proper magic packet — six 0xFF bytes followed by the MAC repeated sixteen times — and sends it by UDP broadcast. The MAC address is validated…

2026-08-17

Force a Windows Shutdown with PowerShell

One line that shuts a machine down immediately, ignoring applications that would otherwise block it. Kept as its own entry because it is the right tool…

2026-08-17

Download and Extract Files with BITS in PowerShell

A reusable download function built on BITS transfer that saves to a target folder and unpacks the archive when it is a zip. Written to be called several…

2026-08-17

Check Linux Uptime and Disk Usage over SSH

A short bash script that reports hostname, uptime and root filesystem usage, and then writes a line through the same log marker the PowerShell scripts…

2026-08-17

Automated System Information Gatherer Script

This PowerShell script automates the process of gathering system information, including OS details, hardware specifications, and running services. By…

2025-01-14

A Comprehensive Guide to Creating a Self-Signed Certificate Using OpenSSL

In today's digital landscape, securing communications is paramount. One effective way to do this is by utilizing SSL/TLS certificates to encrypt data…

2024-12-29

Convert Malformed UTF-8 Characters in JSON with PowerShell

Handling data correctly is of utmost importance, especially when it comes to text encoding. Malformed UTF-8 characters in JSON can cause errors in data…

2024-12-26

Automate Server Reboots with PowerShell

In this post, we will share a PowerShell script that automates the process of rebooting servers across your network. Regular maintenance and reboots may…

2024-12-24

Ready when you are.

Try ServerEngine free for 7 days.