
PoshTip #49 – PSReadLine Module
The PSReadline module contains cmdlets that let you customize the command-line editing environment in Windows PowerShell. The module is a part of PowerShell 5. PSReadLine Read More
The PSReadline module contains cmdlets that let you customize the command-line editing environment in Windows PowerShell. The module is a part of PowerShell 5. PSReadLine Read More
The Start-Process cmdlet starts one or more processes on the local computer. So I can easily open a text file using the following command: PS Read More
Everybody knows that when you type a PowerShell command, this command will be automatically saved into history. Then, you can get the history with the Read More
As described by Microsoft, restore points are created to allow users a choice of previous system states. Each restore point contains the necessary information needed Read More
Below is one of the ways to get the number of lines from a file: PS > Get-Content -Path "C:\DefaultStartMenu.xml" | Measure-Object -Line Lines Words Read More
You can easily open multiple files in Powershell ISE with the following command: PS > powershell_ise.exe "C:\script1.ps1,C:\script2.ps1" So PowerShell will open 2 tabs in ISE: Read More
Microsoft introduces new cmdlets in PowerShell v5 to copy and paste text, image, … It means that you can use Windows PowerShell to easily send output Read More
This blog post explains how to join your computer to domain using Windows PowerShell. This is a simple Powershell script. You can modify the following Read More
This blog post explains how to get the Domain and Forest level of your Active Directory using Windows PowerShell. There are 2 cmdlets: Get-ADDomain Get-ADForest Read More
Adding a pause into your PowerShell Script is really simple. You can use the Start-Sleep cmdlet with: The -s parameter to specify time in seconds Read More