Showing tag results for PowerTip

Sep 1, 2012
Post comments count0
Post likes count0

PowerTip: Discover Short PowerShell Aliases

Doctor Scripto

Summary: Use wildcard characters to find Windows PowerShell cmdlet aliases.  How can I display all one-letter Windows PowerShell cmdlet aliases?  Get-Alias ?

Scripting Guy!Windows PowerShellPowerTip
Aug 31, 2012
Post comments count1
Post likes count0

PowerTip: Display the Character for an ASCII Value

Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Aug 30, 2012
Post comments count0
Post likes count0

PowerTip: Display and Write Output

Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Aug 29, 2012
Post comments count0
Post likes count0

PowerTip: Accessing System Values

Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip
Aug 28, 2012
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Help Build Paths

Doctor Scripto

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

Scripting Guy!Windows PowerShellPowerTip