Skip Ribbon Commands
Skip to main content

Quick Launch

Todd Klindt's home page > Todd Klindt's Office 365 Admin Blog > Posts > How To Write PowerShell Functions in a Week of Blog Posts
April 06
How To Write PowerShell Functions in a Week of Blog Posts

If you’re a reader of this blog you know I’m absolutely ga-ga over PowerShell. Being able to use PowerShell is one of my favorite parts of my job. I love the challenge, and ultimately the satisfaction of using it to solve SharePoint administration problems that come up. If you haven’t embraced PowerShell, you’re missing out. It’s like having chocolate, and not mixing it with peanut butter.

After I got to a certain level of proficiency in PowerShell (I was only swearing at it every other day instead of every single day) I fell into a rut and I got lazy. I would write dazzling one-liners that could do things, and once in a while I’d even string a couple of those together and save them out to a .PS1 file that I could run later. But I sort of stopped there. I was able to get things done, so my learning sort of tapered off. A few months ago I decided I need to up my PowerShell skills and I started turning all of those various and sundry PS1 files into functions in a .PSM1 file. My skill at writing functions is weak, so I found myself doing the same HELP and Bing searches over and over.

Then last week happened.

Several of my favorite PowerShell bloggers/tweeters/experts put together a PSBlogWeek. For six solid days they each wrote one blog post on PowerShell functions, walking through how to make them, and some great things to do to make them better after you have them. While I hope you check them all out, and read them all start to finish, I’m selfishly writing this blog post so I’ll have them all in one place where I can reference them. They’re really good.

Here’s the list of blog posts, in order:

Blogger Article
Francois-Xavier Cat Standard and Advanced PowerShell functions
Mike F Robbins PowerShell Advanced Functions: Can we build them better? With parameter validation, yes we can!
Adam Bertram #PSBlogWeek – Dynamic Parameters and Parameter Validation
Jeffery Hicks PowerShell Blogging Week: Supporting WhatIf and Confirm
June Blender Advanced Help for Advanced Functions – #PSBlogWeek
Boe Prox A Look at Try/Catch in PowerShell

Thanks for the great blog posts.

tk

ShortURL: http://www.toddklindt.com/psblogweek

Comments

Fantastic collection

Hey, thanks for compiling a fantastic list of starter materials on Powershell. These will be useful for sure.
 on 4/6/2015 7:50 PM

Bonus Extras

Jose Barreto
http://blogs.technet.com/b/josebda/

PowerShell for Bing, numbers and words, plus a Adventure House game
 on 4/7/2015 2:12 AM

Re: How To Write PowerShell Functions in a Week of Blog Posts

This post will help the internet users for building up new
blog or even a weblog from start to end.
cheap mlb jerseys
 on 4/19/2017 2:28 PM

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


Today's date *

Select a date from the calendar.
Please enter today's date so I know you are a real person

Twitter


Want a message when I reply to your comment? Put your Twitter handle here.

Attachments

 

 SysKit