Showing archive results for June 2015

Jun 20, 2015
Post comments count6
Post likes count0

PowerTip: Use PowerShell to Get Computer Name

Doctor Scripto

Summary: Use Windows PowerShell to get your computer name.  How can I use Windows PowerShell to easily retrieve my computer name?  Use the environmental variable ComputerName: $env:computername

Scripting Guy!Windows PowerShellPowerTip
Jun 20, 2015
Post comments count0
Post likes count1

Weekend Scripter: Understanding Quotation Marks in PowerShell

Doctor Scripto

Summary: Guest blogger, Don Walker, explores using single and double quotation marks in Windows PowerShell. Microsoft Scripting Guy, Ed Wilson, is here. Welcome new guest blogger, Don Walker. Don is a coworker of guest blogger, Tim Bolton, and he worked with Tim on a project that Tim blogged about on June 18, 2015, Using PowerShell Grid View for Us...

Scripting Guy!Windows PowerShellguest blogger
Jun 19, 2015
Post comments count0
Post likes count2

PowerTip: Line Continuation in PowerShell

Doctor Scripto

Summary: Ensure a line continuation in Windows PowerShell.  What the line continuation character should use to ensure my Windows PowerShell code            continues to the next line?  The line continuation character in Windows PowerShell is the backtick.            Type a <sp...

Scripting Guy!Windows PowerShellPowerTip
Jun 19, 2015
Post comments count0
Post likes count0

PowerShell Code Breaks: Break Line, Not Code

Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about line continuation without breaking Windows PowerShell code.  Hey, Scripting Guy! I have a problem sometimes when I copy code from the Hey, Scripting Guy! Blog. It does not seem to work. I try to take out spaces, but it still doesn’t work. I am at my wits end because the code should...

Scripting Guy!Windows PowerShellscripting techniques
Jun 18, 2015
Post comments count0
Post likes count0

PowerTip: Use PowerShell Grid View to Display Logon Info

Doctor Scripto

Summary: Learn how to display user logon information.  How can I use Windows PowerShell to display user logon information in an easy graphical manner?  Create two hash tables using environmental variables, and pipe the input to the Out-Gridview cmdlet,            for example: @{"username" ...

Scripting Guy!Windows PowerShellPowerTip