Creating a SharePoint 2013 PowerShell Help Document with Examples

Home > Blogs > PowerShell > Creating a SharePoint 2013 PowerShell Help Document with Examples

Creating a SharePoint 2013 PowerShell Help Document with Examples

Like This Blog 0 Spike Xavier
Added by September 9, 2015

All of this was done inside of the SharePoint 2013 Management Shell running as Administrator in my test and development environment. Do Not Try In Production.

(For instructor-led SharePoint 2013 training, see our course schedule)

I first ran the following command in order to get all the SharePoint Commandlets into the variable:

$com

I then typed $com into the shell and it wrote a list of all the SharePoint commandlets to the host screen!

Next I looped through the collection and got the help documentation including examples for each commandlet and wrote it out to a txt file using the –NoClobber (don’t overwrite) and the –Append (add to the file flags to create a text file of all the SharePoint Commandlets including their help documentation and examples using this line:

(I typed it all on one line in the shell)

I then typed:

And there it was in all its glory, my own personal detailed, comprehensive help file!

My help file is almost 800 pages when I pasted it into Microsoft Word 2013!!

I will keep both the .docx as well as the .txt versions, one for readability and one for copy pasting.

I will be working on outing it to html or xml and creating a JQuery site with the results, but that’s another blog post.

Spike Xavier
SharePoint Instructor – Interface Technical Training
Phoenix, AZ

Videos You May Like

Using Navigation Controls in a Collaboration Site in SharePoint

0 337 1

In this SharePoint training video, I want to talk about the Navigation Controls in SharePoint. They tend to fall into two kind of different categories; one with the navigation controls in a typical Collaboration Site such as a Team Site or a Project Site. These are Sites that are based on the Team Site Template … Continue reading Using Navigation Controls in a Collaboration Site in SharePoint

How to Configure Navigation in SharePoint Publishing Sites

0 1147 3

For more SharePoint training videos in this series, see: Part 1 – Using Navigation Controls in a Collaboration Site in SharePoint Part 2 – Using Navigation Controls in a Publishing Site in SharePoint Part 3 – Configuring SharePoint Navigation in a Publishing Site – Activating the Publishing Feature Part 4 – » How to Configure Navigation in … Continue reading How to Configure Navigation in SharePoint Publishing Sites

Detailed Forensic Investigation of Malware Infections – April 21, 2015

4 608 5

How does an investigator hunt down and identify unknown malware? In this recording of our IT Security training webinar on April 21, 2015, Security expert Mike Danseglio (CISSP / CEH) performed several malware investigations on infected computers and identify symptoms, find root cause, and follow the leads to determine what’s happening. He demonstrated his preferred … Continue reading Detailed Forensic Investigation of Malware Infections – April 21, 2015

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.