Showing tag results for PowerTip

Sep 26, 2012
Post comments count0
Post likes count1

PowerTip: Use PowerShell Multiple-Line Comments

Doctor Scripto

Summary: Use Windows PowerShell multiple-line comments in your script or from the console.  How do you type a multiple-line comment?  Begin the comment with the <# tag, and end the comment with the #> tag: <#  this is a comment             on several ...

Scripting Guy!Windows PowerShellPowerTip
Sep 25, 2012
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Send a Web Request

Doctor Scripto

Summary: Use the Invoke-WebRequest Windows PowerShell cmdlet to easily send a web request.    How can you easily send an HTTP or HTTPS request to a web service by using Windows PowerShell 3.0?  Use the Invoke-WebRequest cmdlet. For example, the following code returns links from the Hey, Scripting Guy! Blog. (...

Scripting Guy!Windows PowerShellPowerTip
Sep 24, 2012
Post comments count0
Post likes count0

PowerTip: Easily Find PowerShell Help Online

Doctor Scripto

Summary: Learn how to use the Online parameter from the Get-Help Windows PowerShell cmdlet.  How can you easily find updated Help information from within Windows PowerShell?  Use the Online switched parameter with the Get-Help cmdlet: Get-Help gps -Online

Scripting Guy!Windows PowerShellPowerTip
Sep 23, 2012
Post comments count0
Post likes count0

PowerTip: Trace What Loads with a PowerShell Module

Doctor Scripto

Summary: Use the Verbose switched parameter with the Import-Module cmdlet to trace module load activity.  How can you watch what loads when importing a Windows PowerShell module?  Use the Verbose switch when calling the Import-Module cmdlet: Import-Module psdiagnostics -verbose

Scripting Guy!Windows PowerShellPowerTip
Sep 22, 2012
Post comments count0
Post likes count0

PowerTip: Cast an RSS Feed into XML with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to cast an RSS feed to an XML document.  How can you navigate an RSS feed as if it was an XML document by using Windows PowerShell?  When retrieving an RSS feed, ensure that you cast it to an XML document by using the [xml] type accelerator:            ...

Scripting Guy!Windows PowerShellPowerTip