Practical solutions

PowerShell Howtos How-To Guides

Solve the problem. Keep building. Collection of Windows powershell how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

PowerShell SudoThis tutorial will teach you how to use sudo-like commands in Windows PowerShell. Discover methods to elevate privileges for Git operations, including running PowerShell as an administrator, using the Start-Process cmdlet, and creating scripts. Enhance your productivity and streamline your workflow with these practical techniques. How to Delete Services Using PowerShellThis article provides a comprehensive guide on how to delete orphaned services in Windows 10 and earlier using PowerShell. Learn effective command-line techniques to manage your services and ensure optimal system performance. Follow our step-by-step instructions to clean up your Windows environment and enhance its reliability. PowerShell Multidimensional ArraysThis tutorial introduces multidimensional arrays in PowerShell, covering their creation, manipulation, and practical applications. Learn how to efficiently manage complex data structures and enhance your scripting capabilities. Discover the power of multidimensional arrays in organizing and accessing data effectively. How to Perform Keystroke Inside PowerShellLearn how to perform keystrokes inside PowerShell with this informative guide. Discover the SendKeys method, automate form filling, and enhance your scripting skills. This article provides practical examples and detailed explanations to help you efficiently simulate keyboard input in various applications. Perfect for beginners and experienced users alike. How to Accessing the $args Array in PowerShellThis article explores how to access the $args array in PowerShell, a vital tool for handling script parameters. Learn how to utilize the $args array effectively to create dynamic and flexible scripts. Discover practical examples and gain insights into enhancing your PowerShell scripting skills today. How to Extract a Substring in PowerShellThis article will discuss how we can efficiently extract a substring in a string using PowerShell's string library. Learn various methods, including Substring, regular expressions, and Split, to manipulate strings effectively in your scripts. Discover practical examples and enhance your PowerShell skills today. How to Get the File System Location of a PowerShell ScriptThis tutorial will teach you how to get the file system location of a running PowerShell script using automatic variables. Discover simple methods like $PSScriptRoot and $MyInvocation to enhance your scripting efficiency. Learn practical examples and best practices to streamline your workflow and improve error handling in your scripts. How to Ping List of Host Names and Output Results to CSV in PowerShellThis tutorial teaches you how to ping a list of host names and output the results to a CSV file using PowerShell. Learn to automate network checks efficiently and streamline your network management tasks with our step-by-step guide. How to Prevent Idle Mode in PowerShellThis tutorial introduces various methods to prevent idle mode using PowerShell, enhancing productivity and workflow. Learn how to change power settings, run scripts, and create scheduled tasks to keep your system active. Perfect for users seeking to maintain focus without interruptions. How to Post Request in PowerShellThis tutorial provides a comprehensive guide on how to use POST requests in PowerShell to send parameters to a URI. Learn about the differences between Invoke-RestMethod and Invoke-WebRequest, how to send JSON data, and explore practical examples to enhance your scripting skills. Mastering these techniques will empower you to interact seamlessly with web APIs and automate your tasks effectively. How to Install MSI File in PowerShellThis article provides a comprehensive guide on how to install MSI files using PowerShell. Learn effective methods such as Start-Process, Invoke-Expression, and WMI for seamless software installation. Discover tips and techniques to automate the process and improve your productivity. Perfect for IT professionals and developers looking to streamline their workflows. The filter Keyword in PowerShellThis comprehensive tutorial explores the filter keyword in PowerShell, teaching you how to use it effectively with cmdlets like Get-ChildItem, Get-Process, and Get-Service. Discover practical examples and clear explanations that enhance your scripting skills and improve your workflow. Learn how to filter data efficiently, streamline tasks, and boost productivity in your PowerShell scripts today. How to Return Versions of .NET Framework on a Machine using PowerShell ScriptThis tutorial will teach you how to check .NET Framework version in PowerShell. Learn how to return versions of .NET Framework on a machine using simple PowerShell scripts. Discover efficient methods to query the registry and check for .NET Core SDKs. Streamline your development process and ensure compatibility with your applications. The Call Operator & in PowerShellDiscover the power of the call operator in PowerShell, represented by `&`. This essential operator allows you to execute commands, scripts, and Git commands efficiently. Learn how to use the call operator to enhance your scripting capabilities, pass parameters, and automate tasks for a smoother workflow. Whether you're a beginner or an experienced user, this comprehensive guide will help you unlock the full potential of PowerShell. How to Run a Git Command in PowerShellLearn how to run Git commands in PowerShell with this comprehensive tutorial. From setting up Git to cloning repositories, committing changes, and pushing updates, this guide covers everything you need to enhance your development workflow. Perfect for beginners and experienced developers alike, discover practical tips and examples to streamline your version control process. PowerShell Equivalent of Linux mkdir CommandThis tutorial introduces the PowerShell equivalent of the Linux mkdir command. Learn how to create directories using PowerShell with practical examples. Discover how to create multiple directories and handle parent directory creation efficiently. Perfect for Linux users transitioning to PowerShell or anyone looking to enhance their directory management skills in Windows. How to Map an SMB Drive Using PowerShellLearn how to map an SMB drive using PowerShell in this informative article. We explore both the legacy net use command and the modern New-SMBMapping cmdlet, providing step-by-step guidance for efficient network resource management. Perfect for IT professionals and beginners alike, this guide enhances your workflow and productivity. PowerShell Mandatory Parameter With Default ValueThis tutorial teaches you how to set mandatory parameters with default values in PowerShell. Learn how to enforce user input while providing fallback options to streamline your scripts. Improve your PowerShell skills with practical examples and best practices for effective scripting. How to Find Users HKEY_USERS Registry Key Using PowerShellThis tutorial teaches you how to find a user's registry key using PowerShell. Learn how to navigate the HKEY_USERS key and access specific user settings efficiently. Explore various methods, including listing user profiles and filtering by SID, to enhance your Windows system management skills. Property vs. ExpandProperty in PowerShellThis article explores the concepts of properties and expanded properties in PowerShell. Learn the key differences between them and how to use each effectively in your scripts for better data manipulation and presentation. Discover practical examples and enhance your PowerShell skills today. How to Rename Computer and Join to Domain With PowerShellThis tutorial will teach you how to rename your computer and join it to a domain with PowerShell in one step. Learn the commands and troubleshooting tips to streamline your system management effectively. Whether you're an IT professional or a casual user, mastering these commands can save you time and enhance your productivity. How to Control Column Widths With Format-Table in PowerShellThis tutorial will teach you how to control column widths with Format-Table in PowerShell. Learn effective methods to enhance data presentation, including using calculated properties and the AutoSize parameter for better readability. Improve your PowerShell skills today! How to Download and Install Git Client for Windows Using PowerShellThis tutorial will teach you how to download and install the Git client for Windows using PowerShell. Follow our step-by-step guide to get Git up and running efficiently. Whether you're a beginner or a seasoned developer, our instructions will help you streamline your installation process and start using Git for version control today. How to Get the Parent's Parent Directory in PowerShellThis tutorial teaches you how to get the parent's parent directory in PowerShell. Learn efficient methods using cmdlets like Get-Location and Split-Path, along with creating reusable functions for streamlined directory navigation. Perfect for developers and system administrators looking to enhance their PowerShell skills.