Sign in
|
Join
|
Help
Richard Siddaway's Blog
Of PowerShell and Other Things
This Blog
Home
Contact
Syndication
RSS for Posts
Atom
RSS for Comments
Search
Go
Tags
Access
Active Directory
Books
COM
Deep Dive
File System
General
Modules
Networking
Office 2010
Powershell
PowerShell and Active Directory
PowerShell and SQL Server
PowerShell and WMI
PowerShell Basics
PowerShell User Group
PowerShell V2
PowerShell V3
Scripting Games
Technology
Windows 7
Windows 8
Windows Server 2008 R2
Windows Server 2012
Windows Server 8
Community
Home
Blogs
Media
Groups
Email Notifications
Go
Archives
May 2013 (18)
April 2013 (22)
March 2013 (7)
February 2013 (12)
January 2013 (24)
December 2012 (19)
November 2012 (15)
October 2012 (8)
September 2012 (19)
August 2012 (7)
July 2012 (5)
June 2012 (19)
May 2012 (31)
April 2012 (21)
March 2012 (65)
February 2012 (94)
January 2012 (53)
December 2011 (17)
November 2011 (11)
October 2011 (15)
September 2011 (39)
August 2011 (57)
July 2011 (58)
June 2011 (65)
May 2011 (53)
April 2011 (25)
March 2011 (12)
February 2011 (18)
January 2011 (27)
December 2010 (2)
November 2010 (14)
October 2010 (12)
September 2010 (6)
August 2010 (6)
July 2010 (19)
June 2010 (24)
May 2010 (31)
April 2010 (29)
March 2010 (20)
February 2010 (30)
January 2010 (28)
December 2009 (11)
November 2009 (38)
October 2009 (2)
September 2009 (8)
August 2009 (22)
July 2009 (21)
June 2009 (26)
May 2009 (31)
April 2009 (22)
March 2009 (38)
February 2009 (39)
January 2009 (34)
December 2008 (29)
November 2008 (37)
October 2008 (39)
September 2008 (51)
August 2008 (38)
July 2008 (25)
March 2008 (1)
November 2007 (2)
May 2007 (1)
December 2006 (1)
Browse by Tags
All Tags
»
Advanced Functions
»
PowerShell V2
(
RSS
)
IT Security
Modules
Tue, Jul 5 2011 20:05
Yes I’m sure
One of the great safety features of PowerShell are the –whatif and –confirm parameters on cmdlets. They can really be useful in preventing hideous, career limiting actions We can create the same functionality on our advanced functions function...
Posted by
RichardSiddaway
| with
no comments
Filed under:
PowerShell V2
,
Advanced Functions
Sun, Jun 12 2011 11:57
Windows updates: 4 tidy up get-update
Looking at the get-update function we created earlier I wanted to tidy it up a bit. 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 function get-update ...
Posted by
RichardSiddaway
|
1 comment(s)
Filed under:
IT Security
,
PowerShell V2
,
Advanced Functions
Sun, Jun 5 2011 18:34
Advanced Function update
If you were around PowerShell back in November 2007 you might remember that the PowerShell v2 CTP was the new kid in town. One of really big things at the time was script cmdlets – that we now call Advanced Functions. Back in this post http://richardspowershellblog...
Posted by
RichardSiddaway
| with
no comments
Filed under:
PowerShell V2
,
Advanced Functions
Tue, May 24 2011 8:17
Advanced Function template
In this post I showed my Advanced Function template http://msmvps.com/blogs/richardsiddaway/archive/2011/05/13/powershell-module-construction.aspx I’ve since modified it to add the parameter validation methods. I can never remember them all so decided...
Posted by
RichardSiddaway
|
3 comment(s)
Filed under:
PowerShell V2
,
Modules
,
Advanced Functions
Wed, Apr 14 2010 19:42
Advanced Functions: part 3
Lets start looking at validation of parameter values. We have a few options to try [ValidateCount(1,n)] [ValidateLength(1,m)] [ValidatePattern("[A-Z][A-Z]A-Z][0-9]")] [ValidateRange(0,10)] ...
Posted by
RichardSiddaway
| with
no comments
Filed under:
PowerShell V2
,
Advanced Functions
Thu, Apr 8 2010 19:29
Typo
Thanks to Shay for pointing out some typos in my last post. The correct bits are [alias("alias_name")] [datatype] [AllowNull()] [AllowEmptyString()] ...
Posted by
RichardSiddaway
| with
no comments
Filed under:
PowerShell V2
,
Advanced Functions
Tue, Apr 6 2010 22:33
Advanced Functions part 2
I thought it would be worth while looking at the range of parameters we can use with our functions. We saw the mandatory parameter last time but that is just a starter. If we examine the range of parameters we see that there are some to control how we...
Posted by
RichardSiddaway
| with
no comments
Filed under:
PowerShell V2
,
Advanced Functions
Mon, Apr 5 2010 12:01
Advanced Functions part 1
Advanced functions are one of the major new features of PowerShell. They enable functions written in PowerShell to behave in the same way as cmdlets especially in the way they work on the pipeline. However when you look at the help files PS> get-help...
Posted by
RichardSiddaway
| with
no comments
Filed under:
PowerShell V2
,
Advanced Functions