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
Since Windows PowerShell version 5, Microsoft has implemented a new way to directly manage your virtual machines without network connectivity. PowerShell Direct has been introduced 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
When installing the PowerCLI module, you may get the following error during the installation process: PackageManagement\Install-Package : A command with name ‘Export-VM’ is already available on Read More
Two weeks ago, VMware released PowerCLI 6.5.1 with big enhancements. There is no longer need to download and install MSI file. You can now install PowerCLI 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
Since April 2017 security updates, you may get the following error when you use the Stop-Computer cmdlet: PS > Stop-Computer -ComputerName . -Force Stop-Computer : Privilege 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