The “Hey, Scripting Guys!” blog has been retired. There are many useful posts in this blog, so we keep the blog here for historical reference. However, some information might be very outdated and many of the links might not work anymore.
New PowerShell content is being posted to the PowerShell Community blog where members of the community can create posts by submitting content in the GitHub repository.
Summary: Use wildcard characters to find Windows PowerShell cmdlet aliases.
How can I display all one-letter Windows PowerShell cmdlet aliases?
Get-Alias ?
Summary: Learn a simple trick to display the character associated with an ASCII value.
I would like to display the ascii character associated with the ascii value 56. How can I do this?
[char]56
Summary: Learn to display output and write it to a text file.
I need to display process output at the Windows PowerShell prompt and write that same output to a text file. How can I do this?
Get-process | Tee-Object -FilePath c:\fso\proc.txt
Summary: Use Windows PowerShell to ease access to system values.
How can l print out the value of %systemroot%?
a. (get-item Env:\systemroot).value
b. $env:systemroot
Summary: Use Windows PowerShell to build a path to the system32 directory.
I need to build a path to the Windows\system32 directory. How can I do this?
Join-Path -path (get-item env:\windir).value -ChildPath system32