Useful powershell scripts for system admins. With its powerful capabilities for system management, file handling, remote access, and security automation, PowerShell helps analysts detect, investigate, and respond to threats more efficiently. Below are twenty of the most useful PowerShell scripts every system administrator should keep in their arsenal. The company I work for really has never gotten into PowerShell in anyway. Write-Host 'Hello, World!' What is PowerShell? Overview of PowerShell PowerShell is a powerful command-line shell and scripting language designed specifically for task automation and configuration management. Oct 1, 2024 · Example PowerShell Scripts for Common Administrative Tasks By Tan Lee Published on Oct 01, 2024 1. PowerShell, Microsoft’s command-line shell and scripting language, has become an essential tool for cybersecurity analysts. Apr 10, 2025 · Master 19 essential PowerShell scripts every Windows Server admin needs—from service control to cleanup and remote access via SSH. Also, PowerShell can be used to run malicious scripts and is often used to spread ransomware. Nov 4, 2022 · Windows PowerShell has revolutionized the Windows command line. Mar 4, 2020 · Optimize your system administration with this curated list of revised and validated PowerShell one-liners for managing files, users, services, and system information. Improve your productivity and efficiency as a system administrator. Jun 27, 2024 · Get-Help The first thing you need to know about the Help system in PowerShell is how to use the Get-Help cmdlet. Sample scripts for system administration A collection of examples walks through scenarios for administering systems with PowerShell. Overview I've been using PowerShell to help manage hundreds of servers and thousands of user and computer objects within multiple domains. via SSH), by context menu, by voice control (see also repo talk2windows), by automation software like Jenkins, automatically as daily tasks, or simply to learn PowerShell. Unlock efficient solutions with our concise guide. Used WPF to model how it should look, it's built into Visual Studio. , file management, system information retrieval) and security-focused utilities (e. PowerShell has the benefit of creating sophisticated, automated scripts that are understood and shared with a larger community. PowerShell module implementing useful functions helping Systems Administrators in daily automation tasks Bot Verification Verifying that you are not a robot PowerShell is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e. PowerShell is a cross-platform (Windows, Linux, and macOS) automation tool and configuration framework optimized for dealing with structured data (e. Oct 25, 2024 · PowerShell is a scripting language designed for system administration by Microsoft. Due to the override, your shell will retain its current effective execution policy of "AllSigned". This script will optimize Windows and can be run multiple times if you have an update ruin all the optimizations. NET SDK, which includes the . When you are working in IT then you can’t get around PowerShell. All the scripts are meant to make a day-to-day life easier for a Microsoft system administrator. Step 1: Run PowerShell as Administrator. No tracking, no server processing. The scripts simplify building custom tools to administer software and let you accomplish mundane tasks quickly, allowing you to get large jobs Sep 9, 2023 · PowerShell has a powerful set of commands and is used by system admins, service desk staff, help desk staff, and software developers to automate tasks, and configuration management using commands, scripts, and functions. Understanding PowerShell Basics What is PowerShell? PowerShell is a task Just wondering what the powershell scripts that you use the most or save the most time in your environment arecross posting to r/powershell as well List of useful tools for System and Network Administrators - samersultan/SysAdmin-Tool-List Dec 16, 2024 · Applies to: Configuration Manager (current branch) Configuration Manager has an integrated ability to run PowerShell scripts. There are two scripts: A PowerShell script that works on Windows. Who This Book Is For If you are a Microsoft System Center administrator who manages System Center environments and utilizes the console for management, then this book is ideal for you. It includes practical scripts for everyday admin tasks (e. You can also use a Group Policy setting to set execution . Dec 13, 2010 · PowerShell combines the speed of the command line with the flexibility of a scripting language, making it a valuable Windows administration tool. I’m sure most of them will already be well known Microsoft Activation Scripts (MAS) An open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting. Jan 30, 2024 · Powerful PowerShell: 10 Useful Scripts I’ll share 10 handy scripts I’ve crafted to automate everyday tasks and boost your productivity. Feb 2, 2025 · In the ever-evolving world of IT, efficiency and automation are key to managing complex systems and networks. - fleschutz/PowerShell Mar 27, 2023 · Guide to Useful PowerShell Scripts. The PowerShell scripting language includes the following features: Extensible through functions, classes, scripts, and modules Extensible formatting system for easy output Extensible type system for creating dynamic types Built-in support for common data formats like CSV, JSON Nov 15, 2023 · PowerShell is a powerful scripting language that can be used to automate many tasks in Windows environments. Feb 21, 2023 · Windows administrators can learn how to use cmdlets for a variety of simple scripting tasks and manage systems with some basic PowerShell commands. From configuration management to software installation to scripting, PowerShell is one of the most powerful tools in any Windows administrator's toolbox. On a Windows computer you can set an execution policy for the local computer, for the current user, or for a particular session. Sep 9, 2023 · In this article, I will explain useful PowerShell scripts for help desk staff to help with useful commands that they need on a day-to-day basis to automate tasks or configuration. It Oct 28, 2010 · I am trying to run a cmd file that calls a PowerShell script from cmd. Even when ScriptRunner is already in use, credentials are often managed May 13, 2025 · Learn how to install, configure, and use Chocolatey package manager on Windows to easily install and manage software packages from the command line. PowerShell, with its powerful scripting capabilities, is the go-to tool for IT administrators to automate routine tasks, improve productivity, and maintain system health. ps1 cannot be loaded because the execution of scripts is disabled on this Set-ExecutionPolicy : PowerShell updated your local preference successfully, but the setting is overridden by the Group Policy applied to your system. x. 3 days ago · The Situation Without ScriptRunner and Azure Key Vault In many environments, credentials are scattered across different places. To prevent access to the command prompt, enable the setting “Prevent access to the command prompt”. By mastering these essential commands Dec 1, 2015 · PowerShell, by default, has an execution policy that prevents scripts being run at all and only allows interactive use of PowerShell. Automation with SCCM PowerShell scripts significantly reduces the time and resources required to perform routine tasks. Then, download the handy cheat sheet to keep the information at your fingertips. Each one solves a real-world headache, from bulk user management to patch compliance. 600+ free PowerShell scripts (. This article will introduce 13+ ultimate PowerShell commands for system admins. It works pretty good but I would never put in the effort to create the GUI unless a non system admin would have to use it. Jan 18, 2022 · I need to create a script that I can run (through a RMM scripting system we use) that will scan a computer, create a list of local admin accounts, then check to see if they are in a pre-defined list (e. NET developers that install and use other global tools Microsoft Store package - An easy way to install for casual users of PowerShell but has limitations Mar 28, 2025 · PowerShell 7 is a cross-platform automation framework built on . All show that PowerShell is now a key part of a Windows administrator’s toolkit. Also see the group policy objects (GPO) and MDM policies that show or hide Windows Features in the Settings app. Use Windows PowerShell to show or hide specific features in Windows Features. JSON, CSV, XML, etc. PowerShell module implementing useful functions helping Systems Administrators in daily automation tasks Nov 4, 2025 · For system administrators, PowerShell isn’t just a tool, it’s the backbone of modern Windows management, and in many hybrid networks, it’s become the silent hero that keeps everything running. 4 days ago · "Stop Windows 11 from lagging your games. PowerShell includes a command-line shell, object-oriented scripting language, and a set of tools for executing scripts/cmdlets and managing modules. Dec 25, 2024 · Discover essential PowerShell scripts for admins to streamline tasks and enhance productivity. You can also use Get-Help to locate commands, but in a different and more indirect way when compared to Get-Command. It provides a robust scripting language that allows users to perform a wide range of tasks with just a few commands. A quick side-note, I use the following scripts Nov 2, 2018 · Some let you review the security status of a network. So I've decided to make a few of my scripts Mar 27, 2023 · Guide to Useful PowerShell Scripts. Feb 24, 2017 · This is my first How-To so I’m not sure if I’m doing this right so be gentle. , log analysis, process monitoring). Feb 22, 2023 · 5 PowerShell tools to help simplify admin tasks and support Learn how systems admins, software developers and engineers can use tools, such as Cimitra Software, to build better PowerShell scripts to manage and automate repetitive tasks. 2 days ago · PowerShell scripts have revolutionized the way I approach tasks in my daily work routine. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects. GitHub is where people build software. Two PowerShell automation scripts built for IT support tasks. Contact your Group Policy administrator for more information. This learning path covers cmdlets that are commonly used for system administration tasks related to Active Directory, network configuration, server administration, and Windows 10 device administration. Oct 29, 2023 · Getting Started with PowerShell PowerShell is a versatile and powerful command-line interface that is widely used by system administrators for task automation and management of Windows-based systems. These scripts simulate real tasks performed daily by IT support technicians. As a powerful scripting language and command-line shell designed specifically for system administration, PowerShell allows users to automate repetitive tasks, manage systems, and streamline workflows on Windows environments. Jun 11, 2020 · July 2021 Update If you are coming here from the YouTube video I have taken all the scripts below and a system admin script I used a lot in the past to make a streamlined debloat script. This helps maintain visibility into the enterprise Windows environment and supports better IT management and upgrade planning. Step 2: Use the GamesGonTech optimization script. Here we discuss various useful scripts, examples to implement with proper codes and outputs and using a task scheduler. PowerShell is an advanced command line interface (CLI) and scripting language that can be used on Windows, Linux, and macOS. NET Global tool - A good choice for . Useful Powershell Scripts I have seen a lot of talk about powershell lately and I wanted to show some of the things I have been doing in my org. Mar 1, 2024 · PowerShell Scripting in Penetration Testing PowerShell scripting is a powerful tool for organizations and system administrators, especially for security and compliance reasons. NET that provides a powerful toolset for administrators on any platform. NET CLI and the shared runtime. Use when: setting up Windows admin environments, writing PowerShell automation scripts, translating bash commands to PowerShell, configuring PATH 15 hours ago · Discover the power of conditional statements in PowerShell: learn how to use the 'elseif' statement for complex logic and decision-making. When I started here I took some time to try and learn how to simplify some basic tasks using PowerShell, like creating users or modifying AD Computer Description with computer models and assigned users. Here are a few basic commands you'll want to master. A bash script that works on Linux/macOS. Explore the most useful PowerShell commands for system admins and find out how they work. In particular, PowerShell scripts are widely used in cybersecurity practices such as penetration testing and ethical hacking. Oct 15, 2024 · PowerShell commands are not just lines of code; they are invaluable tools that empower system administrators to manage complex IT environments effectively. Apr 23, 2020 · Here are links to more-complex PowerShell scripts for advanced users. This collection includes a variety of useful PowerShell scripts designed to enhance productivity, automate tasks, and optimize system performance. ), REST APIs, and object models. Apr 26, 2025 · Solution: To fix the “ Running scripts is disabled on this system ” error, you need to change the execution policy. PowerShell in Visual Studio Code PowerShell is a task-based command-line shell and scripting language built on . 5 days ago · ZIP package - Easiest way to side load or install multiple versions Use this method for Windows Nano Server, Windows IoT, and Arm-based systems . Generated by the WinInit process, this event creates a timestamped record whenever the operating system receives a shutdown command, whether initiated manually by users, triggered by applications, or executed through automated scripts and policies. Sep 24, 2025 · PowerShell's execution policy is a safety feature that controls the conditions under which PowerShell loads configuration files and runs scripts. Some live in PowerShell scripts as secure strings, some are stored in Task Scheduler jobs, others are maintained manually by a handful of senior admins who “know where the secrets are”. Aug 18, 2025 · Learn how to add or remove Windows optional features using the Optional features page in the Settings app. For installation instructions, see Install on Windows. Mar 24, 2016 · Despite the numerous PowerShell script examples and reference guides available to Windows systems administrators, the scripting framework is still a mystery to many in IT. System administrators can use PowerShell to manage computers, users, groups, and policies. winadmin-powershell // Administer Windows 11 systems with PowerShell 7. I’ve been working with PowerShell for a couple years now and I don’t claim to be any kind of a pro at it, I’ve come across and written a number of what I think are a number of pretty useful commands and scripts that I thought I’d share with the community. PowerShell. This is for Windows 10 desktop OS. In this article, I will explain useful PowerShell scripts for help desk staff to help with useful commands that they need on a day-to-day basis to automate tasks or Jun 30, 2025 · Top PowerShell commands you must know, with cheat sheet Explore this list of the most useful PowerShell cmdlets with a guide on how to use each command. Script to copy file by time and date modified but keep structure of folder Hi everybody, I am newbie at powershell and I was trying to copy data files that were recently modified based on date and time. 4 days ago · Administrators can deploy these certificates to domain-joined machines using Group Policy, PowerShell, or the Windows Configuration System (WinCS). What kind of scripts have you guys written that save you time everyday? Jul 7, 2025 · No need to parse text output to extract information from output. This feature helps prevent the execution of malicious scripts. Long-Term Support versions provide stability for enterprises, while preview Jul 7, 2025 · No need to parse text output to extract information from output. Apr 13, 2015 · If you are aiming to optimise the use of your time by doing as much as possible via scripting, you will soon want to run scripts in parallel to save time. Whether you’re a seasoned scripter or just just Jun 30, 2025 · Top PowerShell commands you must know, with cheat sheet Explore this list of the most useful PowerShell cmdlets with a guide on how to use each command. Apr 28, 2015 · A step-by-step guide with practical examples and best practices that teaches you to effectively use PowerShell in System Center environment. But what are the most common ones that you must know? Jul 28, 2021 · Wanting to learn how PowerShell scripting works, but don't know where to start? Learn 5 PowerShell script examples in this tutorial! This repository provides more than 250 useful and cross-platform PowerShell scripts in the 📂Scripts subfolder - to be used by command-line interface (CLI), for remote control (e. 76K Here are some example PowerShell scripts for common administrative tasks. These days, PowerShell can be used on multiple platforms and is used to perform or automate a wide range of tasks while using the different PowerShell commands With all the modules that you can load, there are a lot of PowerShell cmdlets. In a Windows domain, it's an essential tool to know and understand. exe, but I am getting this error: Management_Install. This repository contains scripts I've used in both my production environments as well as scripts to setup and configure test labs. NET Core, offering enhanced performance, parallel processing, and broad compatibility with Windows PowerShell modules. <> ("Administrator" and <> "GoodAdmin" and <> "AnotherGoodAdmin") then delete from group. Written and tested on Windows 11 Pro in a VirtualBox home lab environment. I have also made it very easy to launch. This article explores the most important PowerShell commands every Nov 2, 2018 · Some let you review the security status of a network. The PowerShell scripting language includes the following features: Extensible through functions, classes, scripts, and modules Extensible formatting system for easy output Extensible type system for creating dynamic types Built-in support for common data formats like CSV, JSON 5 days ago · Windows Event ID 10001 serves as a fundamental component of the system shutdown audit trail. Here’s how: Open PowerShell as an administrator: Click the Start menu, type “PowerShell”, right-click on “Windows PowerShell,” and choose “Run as administrator”. PowerShell offers functionality equivalent to any of the major Unix or Linux shells. Useful PowerShell Commands for System Admins PowerShell’s object-oriented framework offers advanced system administration capabilities through cmdlets and scripting. See the FAQ page if you need help or Learn how to automate common system administration tasks with PowerShell scripts and modules. And PowerShell is also useful for managing Windows network settings and services. These scripts are particularly useful for automating IT admin tasks and solving challenges common to MSP operations. 3 days ago · Microsoft. Essentially you create the GUI using WPF and then import the XAML code into PowerShell. Nov 4, 2025 · Below are twenty of the most useful PowerShell scripts every system administrator should keep in their arsenal. Jan 18, 2024 · Check out the best 75 PowerShell Script Examples to learn Microsoft PowerShell as a beginner. ps1) for Linux, macOS, and Windows. Aug 7, 2025 · Description The dotnet-install scripts perform a non-admin installation of the . Get System Information This script helps you retrieve basic system information. It runs on Windows, macOS, Linux, and containers, with flexible installation options such as package managers, MSI, ZIP, or Docker. PowerShell module implementing useful functions helping Systems Administrators in daily automation tasks Useful PowerShell Commands for System Admins PowerShell’s object-oriented framework offers advanced system administration capabilities through cmdlets and scripting. Free, secure, client-side tools for sysadmins. You can then tell PowerShell to load and interact with the XAML code. Please if you have any input or think I could rework it in some way that might be better please let me know, I am still learning powershell. Discover how Level automates PowerShell scripting. Step 3: Enjoy a cleaner, faster system. PSResourceGet is a package management module that lets you discover, install, update, and publish PowerShell artifacts such as modules, scripts, DSC resources, and role capabilities from repositories like the PowerShell Gallery. I have sanitized 3 of my scripts for you all. List of useful tools for System and Network Administrators - samersultan/SysAdmin-Tool-List Using PowerShell, I am able to utilize scripts (in the form of functions within a module) to help me perform some simple yet important tasks. g. In this 60-second guide, we use the ultimate PowerShell command to remove bloatware and maximize your FPS in 2026. 6 days ago · Can I use PowerShell to remap a network drive? Yes, PowerShell scripts can be used to remap network drives with specific drive letters or paths, and can also be used to automate and streamline the process. With the help of cmdlets, we can perform tasks like I've been using Powershell for a while to make reporting and administration of Active Directory based networks easier, but after moving to a new job in which i help to maintain multiple client networks I've realised how frequently some of these scripts can be extremely useful to make bulk changes using Powershell, saving an absolute ton of time. Get-Help is a multipurpose command that helps you learn how to use commands once you find them. This repository contains a number of scripts that i have written or refactored to enhance its performance. Learn how to install PowerShell on Windows, Linux, and macOS. Jan 6, 2025 · Over the years, we developed many Powershell scripts to make the life of an SCCM administrator easier. powershell scripting examples. Includes command translations from bash/Linux, package manager usage (winget, scoop, npm, chocolatey), PATH configuration, and environment management for multi-device setups. Many admins switch to an unrestricted policy, which is leaves the possibility of malicious attack wide-open, thereby risking harm for them and the firm for which they work. Sep 10, 2023 · If a system is compromised, the command prompt or PowerShell could be used to elevate a user account. Using this PowerShell script, IT administrators can quickly generate a Windows Operating System inventory report from domain computers. Here’s a list of the top 10 scripts every IT admin should have in their toolbox, categorized by their use cases to maximize efficiency, security, and system management. Others allow you to see what an attacker would do to a system. To help you get started, I’ve created a public GitHub repo with a collection of PowerShell scripts for everyone Dec 25, 2024 · PowerShell scripts for admins are powerful tools that streamline repetitive tasks and automate system management, allowing administrators to enhance productivity and efficiency. PowerShell does not demand that you run jobs one after the other; It has the means to launch actions whenever you wish and to obtain the results when you want them. Each script serves a unique purpose, from system c Aug 27, 2024 · Automating daily tasks, extracting information from systems, or managing Microsoft 365? PowerShell scripts really make your daily work a lot easier. We would like to show you a description here but the site won’t allow us. This is a collection of PowerShell scripts tailored for system administrators and security professionals. This article covers the technical background, the registry-based deployment mechanism, and Microsoft's sample automation framework for enterprise rollouts. I’m sure most of them will already be well known Dec 13, 2010 · PowerShell combines the speed of the command line with the flexibility of a scripting language, making it a valuable Windows administration tool. fetb iecu tvigh epukyff cafw ekmf nkmws rhmo hudlg vmol