Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Using Tabs in PowerShell

Summary: Learn about creating tabs in Windows PowerShell by using the t in a script to produce a tab? Answer: "`thi" Question: That syntax above is ugly. What happens if I put a space in it like this: “`t hi”? Answer: If you include a space in the line like “`t hi”, then you will tab over one tab stop and one additional...

PowerTip: Finding Specific Cmdlets

Summary: Learn about important Windows PowerShell cmdlets and how to find them. Question: What are the three MOST important cmdlets? Answer: The three most cmdlets are: Get-Command, Get-Help and Get-Member. Question: Which cmdlet can I use to work with event logs? Answer: To work with event logs, use the Get-EventLog cmdlet, or the Get-...