PowerTip: Pause a PowerShell Script

Summary: Learn how to pause a Windows PowerShell script.  How can I pause a Windows PowerShell script?  In Windows PowerShell 3.0 use the pause function, as shown here. 23:10 C:\> pause Press Enter to continue…: 23:11 C:\>

1

Using Windows PowerShell Jobs

Summary: Microsoft Scripting Guy, Ed Wilson, shows an excerpt from his new step-by-step book about using Windows PowerShell jobs. Microsoft Scripting Guy, Ed Wilson, is here. Today I want to share a portion of my new Microsoft Press Windows PowerShell 3.0 Step by Step book. This book is available now for preorder. Using Windows PowerShell…

2

PowerTip: Change the PowerShell Console Title

Summary: Learn how to change the Windows PowerShell console title.  How can I change the title of the Windows PowerShell console?  One way to do this is to use the WindowTitle property from $host.ui.rawui, as shown here. $host.ui.RawUI.WindowTitle = “Changed Title”

6

Understanding PowerShell Remote Management

Summary: Understanding Windows PowerShell remote management. Weekend Scripter: Enabling Windows remote management Microsoft Scripting Guy, Ed Wilson, is here. Today I thought I would share a portion of my new Windows PowerShell 3.0 Step by Step book published by Microsoft Press. This book is available for pre-order now. WinRM – Windows Remote Management Windows Server…

3

PowerTip: Find Which PowerShell Cmdlets Have Most Aliases

Summary: Find out which Windows PowerShell cmdlets have the most defined aliases.  How can I determine which Windows PowerShell cmdlets have the most aliases?  Use the Get-Alias cmdlet and group by the definition. Sort the count in a descending manner, and select the top 10 items. The following command accomplishes this task where gal is an alias for Get-Alias, group is an alias…


Weekend Scripter: Finding In-Use Phone Extensions

Summary: Guest blogger Tim Bolton talks about using Windows PowerShell to determine what phone extensions are currently in use. Microsoft Scripting Guy, Ed Wilson, is here. It is amazing the number of manual tasks that can be safely eliminated by using a little bit of Windows PowerShell. In fact, it is also amazing, in general,…


PowerTip: Easily Pause a PowerShell Script for a Process to End

Summary: Learn how to pause a Windows PowerShell script and wait for another process to end prior to continuing.  How can you easily pause a Windows PowerShell script and wait for a specific process to end prior to continuing execution? Use the Wait-Process cmdlet. It will wait for either a process name, a process ID, or even a…


Protect Your PowerShell Scripts with Version Control

Summary: Guest blogger and Microsoft PFE Stefan Stranger talks about using version control to protect your Windows PowerShell scripts. Microsoft Scripting Guy, Ed Wilson, is here. Today I am pleased to present a guest blog post written by Senior Premier Field Engineer Stefan Stranger. The Scripting Wife and I were privileged to hear Stefan speak…


PowerTip: Use Windows PowerShell to Create a Checkpoint

Summary: Use Windows PowerShell to create a checkpoint restore point for your computer.  How can you create a checkpoint restore point for your computer?  Start the Windows PowerShell console with admin rights. Use the Checkpoint-Computer cmdlet to create the restore point. You must supply the Description parameter value, as shown here. Checkpoint-Computer -Description “everythings groovy”  


Use PowerShell to Find the Location of a Locked-Out User

Summary: Guest blogger and Microsoft PFE Jason Walker talks about using Windows PowerShell to find a locked-out user’s location. Microsoft Scripting Guy, Ed Wilson, is here. Today, we have a guest blog post written by Microsoft Premier Field Engineer (PFE) Jason Walker. Jason has written a number of extremely popular Hey, Scripting Guy! blog posts…