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

How to Convert PowerShell File to an Executable FileThis article discusses how to convert PowerShell files to executable files using the PS1 to EXE module. Learn step-by-step instructions and best practices for packaging your scripts effectively. Discover how to customize your executables and enhance usability for end-users. How to Set Folder Permissions in PowerShellThis tutorial will teach you how to set folder permissions using PowerShell. Learn the essential cmdlets and methods to manage user access effectively, ensuring your files and directories remain secure. Discover how to assign, modify, and remove permissions in a straightforward manner, enhancing your system's organization and security. How to Manage NTFS Permissions Using PowerShellThis article discusses how to manage NTFS permissions using PowerShell. Learn to utilize the Get-ACL command to view, modify, and apply permissions effectively. Explore detailed examples and best practices for securing your files and folders. Enhance your skills in file management and security protocols with this comprehensive guide. How to Compress With 7-Zip in PowerShellLearn how to compress files using 7-Zip in PowerShell with this comprehensive guide. Discover step-by-step commands for basic compression, folder compression, and automating tasks. Enhance your file management skills and save time with effective compression techniques. Perfect for system administrators and developers alike. How to Read JSON Files in PowerShellThis tutorial demonstrates how to read JSON files in PowerShell. Learn to use PowerShell cmdlets like Get-Content and ConvertFrom-Json to efficiently manage JSON data. Explore practical examples and enhance your data handling skills today. How to Manually Stop a Long Script Execution in PowerShellThis article discusses how to manually stop a long-running PowerShell script execution. Explore common causes of script hang-ups and learn effective methods to terminate unresponsive processes, ensuring a smooth workflow and efficient system performance. How to Access to the Path Is Denied in PowerShellThis tutorial explains the common causes of "Access to the Path Is Denied" errors in PowerShell and provides effective solutions using Git commands. Learn how to check file permissions, run PowerShell as an administrator, and change file ownership to resolve access issues quickly and efficiently. Perfect for developers and beginners alike, this guide will enhance your PowerShell experience. How to Get the Size of the Folder Including the Subfolders in PowerShellThis tutorial demonstrates how to get folder size including subfolders using PowerShell. Learn simple and effective methods to calculate folder sizes with PowerShell commands. Discover reusable functions and tips for managing disk space efficiently. How to Run a PowerShell ScriptLearn how to run a PowerShell script effectively with our comprehensive guide. This tutorial covers various methods, including executing scripts from the PowerShell console, Command Prompt, and Task Scheduler. Perfect for beginners, our step-by-step instructions and examples will help you automate tasks efficiently. Discover best practices and troubleshooting tips to enhance your PowerShell scripting skills today! How to Pass an Argument to a PowerShell ScriptThis tutorial will teach you how to pass an argument to a PowerShell script. Learn about defining parameters, validation, and using switch parameters to enhance your scripting capabilities. Create dynamic and user-friendly scripts that streamline your automation tasks and improve efficiency. Discover practical examples and best practices for effective argument handling in PowerShell. The Or Statement in PowerShellThis tutorial on the or statement in PowerShell teaches you how to use the or operator effectively. Discover how to combine conditions in your scripts and streamline your Git operations. Learn to check for modified files, branch existence, and more with practical examples. Enhance your PowerShell skills and improve your scripting efficiency today. How to See the Command History Across All PowerShell SessionsDiscover how to see the command history across all PowerShell sessions with our comprehensive guide. Learn effective methods to export, manage, and automate your command history using PowerShell, Git, and Python. Enhance your productivity and streamline your workflow today! How to Create Symbolic Links in PowerShellThis article discusses how to create symbolic links using Windows PowerShell. Learn the difference between symbolic links, directory junctions, and hard links, and discover the commands to streamline your file management. Whether you're a developer or a casual user, understanding these concepts will enhance your workflow. How to Send Email Message to Multiple Recipients in PowerShellLearn how to send email messages to multiple recipients using PowerShell. This article provides step-by-step instructions, including sending attachments and scheduling emails, to streamline your communication process. Discover the power of PowerShell for efficient email management today! 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. 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. 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.