Showing archive results for October 2015

Oct 24, 2015
Post comments count0
Post likes count0

PowerTip: Prompt for Input for PowerShell Script

Doctor Scripto
Doctor Scripto

Summary: Learn how to prompt for input for your Windows PowerShell script.  How can I use Windows PowerShell as an easy way to prompt a user for information for my script?  Use Read-Host, for example: $a = Read-Host -Prompt "enter your input" The users input is stored in the $a variable. Note  Depending ...

Scripting Guy!Windows PowerShellPowerTip
Oct 24, 2015
Post comments count0
Post likes count0

Filtering Event Log Entries with PowerShell—The Video

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video that explores filtering event log entries with Windows PowerShell.Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk about using a filter hash table to filter events from the event log.Note  For more information about this technique, see Filtering Even...

Scripting Guy!Windows PowerShellWeekend Scripter
Oct 23, 2015
Post comments count0
Post likes count0

PowerTip: Record Commands and Output from PowerShell

Doctor Scripto
Doctor Scripto

Summary: Learn how to easily record commands and output from commands in Windows PowerShell.    How can I create a text file all commands and output from the commands that I use in Windows PowerShell?  Use the Start-Transcript cmdlet. To stop the transcript, use Stop-Transcript. Note  In Windows PowerShell&nb...

Scripting Guy!Windows PowerShellPowerTip
Oct 23, 2015
Post comments count0
Post likes count0

Parsing Event Log Messages—The Video

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, presents a video about parsing Windows event log messages.Microsoft Scripting Guy, Ed Wilson, is here. Today I present a video where I talk about using a cmdlet to parse event log messages.     Note  For more information about this technique, see Easy Parsing of Messages with PowerShe...

Scripting Guy!Windows PowerShelllogs
Oct 22, 2015
Post comments count0
Post likes count0

PowerTip: Measure Performance of PowerShell Command

Doctor Scripto
Doctor Scripto

Summary: Measure how long it takes for a Windows PowerShell command to complete.    If I change one command to try to improve the speed of my Windows PowerShell script , how can I see if            that command is faster than the one I changed?  Use the Measure-Command cmdlet. For example, to s...

Scripting Guy!Windows PowerShellPowerTip