Welcome to MSDN Blogs
Sign in
|
Join
|
Help
Windows PowerShell Blog
Automating the world one-liner at a time.
Click Here
to Download PowerShell
This Blog
About
Syndication
RSS 2.0
Atom 1.0
Search
Tags
$lastExitCode
Active Directory
Adapted Type System
Add-Module
Add-Type
Advanced Functions
ASP.NET
Ben Pearce
BITS
CMDLET
CMDLET:FORMAT
CMDLET:UTILITY
COM
console
ConvertTo-Hashtable
CTP
CTP2
CTP3
Delegates
DOCUMENTATION
DOTNET
eBook
Enum
ENVIRONMENT
ERROR
Event Log
Events
Exchange
FAQ
Fun & Games
Get-Command
Get-CommandPlugin
Get-EventLog
Get-Everyone
Get-Help
Get-MarkupTag
Get-Module
Get-Random
Get-WinEvent
Hal Rottenberg
Help
Help file
HelpFile
HowTo
installation
INTERNAL
Interview
Jeffrey Snover
LANGUAGE
LANGUAGE:CONTROL
Module
Modules
MoW
MVP
PARSER
PHILOSOPHY
Podcasts
PoshBoard
PowerGUI
PowerScriptingPodcast
PowerShell
PowerShell ISE
PowerShell Plus
PowerShell V2
PowerShellPack
Presentation
Proxy
PsSnapin
Quest
Remoting
Resolve-ShortcutFile
Richard Siddaway
Sapien
ScriptBlock
ScriptCmdlet
Scripting Games
SDK
Select-String
Server Core
SHELL
Show-Control
STA
System.Environment
TechED
Testing
Tobias Weltner
TOOL
Training
Type Shortcuts
TYPE:COM
TYPE:WMI
TYPE:XML
TYPEEXTENSION
uninstallation
V2QuickTip
Video
VMWare
Windows7
WMI
WPF
Archives
November 2009 (8)
October 2009 (7)
September 2009 (12)
August 2009 (8)
July 2009 (11)
June 2009 (16)
May 2009 (15)
April 2009 (18)
March 2009 (15)
February 2009 (6)
January 2009 (45)
December 2008 (30)
November 2008 (5)
October 2008 (12)
September 2008 (14)
August 2008 (8)
July 2008 (15)
June 2008 (26)
May 2008 (20)
April 2008 (18)
March 2008 (18)
February 2008 (12)
January 2008 (13)
December 2007 (4)
November 2007 (26)
October 2007 (6)
September 2007 (8)
August 2007 (11)
July 2007 (5)
June 2007 (27)
May 2007 (33)
April 2007 (11)
March 2007 (28)
February 2007 (16)
January 2007 (34)
December 2006 (25)
November 2006 (26)
October 2006 (10)
September 2006 (17)
August 2006 (16)
July 2006 (20)
June 2006 (22)
May 2006 (11)
April 2006 (62)
Browse by Tags
All Tags
»
Advanced Functions
(RSS)
CodeDownloadeer
CTP3
Emit-Xml
Get-Assembly
Get-CommandPlugin
Get-ExportedType
Get-MarkupTag
Get-Random
Get-RandomNumbers
Get-Verb
Inline Help
Jeffrey Snover
Module
PowerShell V2
Resolve-ShortcutFile
ScriptBlock
Test-Leapyear
Tobias Weltner
Write-CommandBlogPost
Tuesday, March 31, 2009 12:52 AM
Image Manipulation in PowerShell
The other week, I showed a Get-ProgID function that I used to help someone at Microsoft Research find a good object to talk to images. A few comments jumped to one of the possible solutions, which is to use the .NET Drawing assembly (which I have to load
Posted by
PowerShellTeam
|
2 Comments
Filed under:
CTP3
,
Advanced Functions
Attachment(s):
Image.zip
Friday, March 27, 2009 11:49 PM
Get closure with GetNewClosure
Have you ever created scriptblocks on the fly, say in a foreach loop, and they totally mess up because they all have the same value? This is something sort of advanced, and typically used when you’re proxying an object. The most basic example would be,
Posted by
PowerShellTeam
|
3 Comments
Filed under:
CTP3
,
Advanced Functions
,
ScriptBlock
Sunday, January 11, 2009 12:59 AM
Test-PSCmdlet
Everyone needs to get good with Advanced Functions – this is the easiest path to the best semantics for everyone. In previous posts we’ve shown how you can add a few simple attributes and get a TON of stuff for free. There is a LOT more to advanced functions.
Posted by
PowerShellTeam
|
3 Comments
Filed under:
CTP3
,
Advanced Functions
,
Jeffrey Snover
,
PowerShell V2
Friday, January 02, 2009 9:35 PM
Get-Verb
.cmdletname { font-size:large } .cmdletsynopsis { font-size:medium } .cmdletdescription { font-size:medium } .cmdletparameters { font-size:medium } th { font-size: medium; font-style: italic } table { border: 1 } When I write a PowerShell function, I
Posted by
PowerShellTeam
|
0 Comments
Filed under:
Advanced Functions
,
Get-Verb
Friday, January 02, 2009 5:46 PM
A Module to Create Modules and Advanced Functions
[1/3/09 Update - the original link to the attachment containing this code was broken but is now fixed. Sorry. jps] It is hard to overstate how important Modules and Advanced Functions are. If you are a PowerShell user - you need to take the time to learn
Posted by
PowerShellTeam
|
6 Comments
Filed under:
Module
,
CTP3
,
Advanced Functions
,
Jeffrey Snover
Attachment(s):
module.zip
Thursday, December 25, 2008 1:53 AM
Get-MarkupTag
On my personal blog ( Media And Microcode ), I've been posting a series called "Scripting the Web", which introduced a function called Get-MarkupTag. Get-MarkupTag is a very handy little function that coerces individual tag elements of a web
Posted by
PowerShellTeam
|
2 Comments
Filed under:
CTP3
,
Advanced Functions
,
Get-MarkupTag
Thursday, December 25, 2008 12:00 AM
Merry Christmas From PowerShell: The CodeDownloader Module
Twas the night before Christmas, and all through the net PowerShell lovers were wondering exactly what they might get Their readers were ready, their minds were aware That more joy of CTP3 would soon be there A cmdlet, a function? What has the PowerShell
Posted by
PowerShellTeam
|
3 Comments
Filed under:
CTP3
,
Advanced Functions
,
Resolve-ShortcutFile
,
Get-CommandPlugin
,
Get-MarkupTag
,
CodeDownloadeer
Attachment(s):
CodeDownloader.zip
Wednesday, December 24, 2008 10:44 PM
Resolve-ShortcutFile
If you're like me, you've got a browser favorites folder that is full of wonderful PowerShell code snippets. Ideally, it would be great to have a way to bring those favorite snippets into PowerShell so that my favorites folder becomes a code library.
Posted by
PowerShellTeam
|
0 Comments
Filed under:
CTP3
,
Advanced Functions
,
Resolve-ShortcutFile
Wednesday, December 24, 2008 9:18 PM
PowerShell v2 Pipelining in 73 (make that 53) Characters
I started using Twitter and saw a request from Thomas Lee for help about pipelining in CTP3. The thing about Twitter is that the messages have to be tiny so I wasn’t sure I could answer using it. It turns out I can solve this problem AND give a usage
Posted by
PowerShellTeam
|
1 Comments
Filed under:
CTP3
,
Advanced Functions
,
Jeffrey Snover
Wednesday, December 24, 2008 7:03 AM
Write-CommandBlogPost
.CmdletName { font-size:large } .CmdletSynopsis { font-size:medium } .CmdletDescription { font-size:medium } .CmdletParameters { font-size:medium } th { font-size: medium; font-style: italic } table { border: 1 } On the PowerShell team, we're big believers
Posted by
PowerShellTeam
|
10 Comments
Filed under:
CTP3
,
Advanced Functions
,
Write-CommandBlogPost
Wednesday, December 24, 2008 3:29 AM
Dreaming In PowerShell V2 : Lottery Numbers with Get-Random
Tobias Weltner writes a blog called Dreaming In PowerShell, and he recently posted a way to get a list of unique lottery numbers with PowerShell. Dreaming In PowerShell is a cool blog, and the post is interesting, but it makes an assertion that's
Posted by
PowerShellTeam
|
3 Comments
Filed under:
Get-Random
,
CTP3
,
Advanced Functions
,
Tobias Weltner
,
Inline Help
,
Get-RandomNumbers
Tuesday, December 23, 2008 11:56 PM
PowerShell V2: ParameterSets
One of the great benefits of PowerShell V2 Advanced Functions is the ease in which you can support parametersets. ParameterSets are, well, different SETS of valid parameters. For instance you can say: Get-Process -id 0 Get-Process -Name *ss Those are
Posted by
PowerShellTeam
|
5 Comments
Filed under:
CTP3
,
Advanced Functions
,
Jeffrey Snover
Tuesday, December 23, 2008 5:17 PM
More Advanced Functions - Get-Assembly and Get-ExportedType
Tyson Kopczynski has just published a great article Fun with PowerShell 2.0 Eventing! That inspired to to write a script to automatically backup my modules directory. I'm doing a lot of scripting this week and I don't want to lose my work if I make a
Posted by
PowerShellTeam
|
2 Comments
Filed under:
CTP3
,
Advanced Functions
,
Get-ExportedType
,
Get-Assembly
Attachment(s):
Get-ExportedType.zip
Tuesday, December 23, 2008 5:40 AM
Advanced Functions and Test-LeapYear.ps1
Welcome to CTP3! There are just an amazing amount of really important features in V2 but the one I want everyone to start using ASAP is Advanced Functions. In CTP2 we called this cmdlets. We dropped that term in favor of taking the idea of a FUNCTION
Posted by
PowerShellTeam
|
12 Comments
Filed under:
CTP3
,
Advanced Functions
,
Test-Leapyear
Attachment(s):
Test-LeapYear.zip
Saturday, October 18, 2008 4:03 AM
Emit-XML
I was writing a demo yesterday and needed a quick and dirty way to generate some XML so I wrote the function below. This highlights a couple of changes that are coming up in CTP3 that I thought I would preview. 1) The keyword "cmdlet" is going away and
Posted by
PowerShellTeam
|
10 Comments
Filed under:
Emit-Xml
,
CTP3
,
Advanced Functions