PowerShell for IT Pros A B OU T
R ESOU R C ES
GET H ELP
Use PowerShell to Monitor RSS/Atom Feed 2 Comments
November 30, 2017 by Aaron Rothstein
An script for monitoring Digital Ocean feed.
Use PowerShell’s Invoke-WebRequest to retrieve and parse an RSS or Atom feed.
Status monitoring feeds aplenty There are a lot of third party services that provide status monitoring updates through RSS/Atom feeds. Statuspage is a popular service that other companies use for providing this type of status monitoring feed, as well as a status page for web viewing. For my case, I wanted to take advantage of monitoring one of these status feeds, but I wanted to do it using PowerShell so I could send email alerts and display status information within Solarwinds Orion. Here is how I used the Atom feed from DigitalOcean‘s Statuspage. [Read more…]
Filed Under: General Tagged With: Web
PSSnapin: The Original Way to Extend PowerShell Leave a Comment
November 27, 2017 by Aaron Rothstein
Use Get-PSSnapin to see loaded snapins.
PowerShell snap-ins (PSSnapin) were the 1.0 way of extending PowerShell’s functionality. In this post of the series “PowerShell 1.0 – The First Cmdlets“, we will cover Get-PSSnapin , Add-PSSnapin , and RemovePSSnapin
, which encompass the cmdlets needed for managing PowerShell snap-ins.
[Read more…]
Filed Under: General Tagged With: Beginner, PowerShell 1.0
Get-Help: PowerShell’s Documentation Framework Leave a Comment
November 25, 2017 by Aaron Rothstein
Get-Help for Get-Help
Display documentation for PowerShell components using Get-Help. This is the first post in the series PowerShell 1.0 – The First Cmdlets. In this post we will cover Get-Help , which was one of the Microsoft.PowerShell.Core module cmdlets and a cmdlet we will use extensively in future posts. Note that though this cmdlet was first introduced in PowerShell 1.0, enhancements have been made through version releases and we will cover the latest features of the cmdlet.
Get-Help: What it is for Get-Help
displays help documentation for PowerShell cmdlets and concepts. It is the method from within PowerShell that you
can bring up details of how to use PowerShell components. This cmdlet will be a regular part of your daily PowerShell toolbox.
Examples: How to use it Get documentation for a cmdlet One of the most common ways you will use Get-Help is to get documentation about how to use a specific cmdlet. You type Get-Help
followed by the cmdlet name you want documentation for, so an example would be Get-Help Get-Help . Run this
from a PowerShell session to see the standard help displayed.
Specify level of documentation to display There a few parameters to control the level of documentation to display, some being more verbose than others. -examples
will show you the examples within the help file.
-detailed
will show a more complete documentation set, including examples as well as a breakdown of the
Parameters. -full
will show you everything included in -detailed as well as Input and Output information and general Notes.
Launch online documentation from docs.microsoft.com One of my favorite new features is to use the -online parameter to launch the help page for a given cmdlet or component that resides at docs.microsoft.com. The online help pages are well formatted and easy to navigate, so if you like to reference your documentation separate from where you are working or on a second screen (I personally do), this is a killer feature.
See components with help available Using Get-Help isn’t limited to cmdlets. There are multiple categories, including “About” topics (preceded with ‘about_’), functions, providers, and aliases. You can see what help options are available using wildcard searches or by specifying a category to filter:
Next Up: Get/Add/Remove-PSSnapin In the next post of the series, we will cover the PSSnapin cmdlets, Get-PSSnapin , Add-PSSnapin , and Remove-PSSnapin .
Reference Get-Help | docs.microsoft.com
Filed Under: General Tagged With: Beginner, PowerShell 1.0
PowerShell 1.0 – The First Cmdlets Leave a Comment
November 25, 2017 by Aaron Rothstein
PowerShell 1.0 Cmdlets Table of Contents
An introduction and explanation for a post series on the cmdlets of PowerShell 1.0. [Read more…]
Filed Under: General Tagged With: Beginner, PowerShell 1.0
Fix “The trust relationship between this workstation and the primary domain has failed.” Leave a Comment
November 24, 2017 by Aaron Rothstein
The trust relationship between this workstation and the primary domain has failed.
Repair a computer’s corrupted domain trust relationship with PowerShell, no restart required. [Read more…]
Filed Under: General Tagged With: Active Directory
1 2 3 … 7 Next Page »
Search this website …
Aaron
FOLLOW
GET THE NEWSLETTER
Copyright © 2018 - Think PowerShell