header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left
Random Cmdlets
New-TransportRule
Use the New-TransportRule cmdlet to create a new transport rule that the Transport Rules agent uses when it processes e-mail messages that pass through a computer that has the Microsoft Exchange Server 2007 Hub Transport server role or the Edge Transport server role installed.


Get-TFTP
The Get-TFTP cmdlet is used to download files from TFTP servers.


Read-Zip
The Read-ZIP cmdlet implements a decompressor for ZIP, GZIP, JAR, and TAR archives.


Add-IPAllowListEntry
Use the Add-IPAllowListEntry cmdlet to add an IP address or IP address range to the IP Allow list configuration information for the Connection Filter agent on a computer that has the Hub Transport server role or Edge Transport server role installed.


Compare-Object
Compares two sets of objects.


Disable-MailPublicFolder
Use the Disable-MailPublicFolder cmdlet to mail-disable a public folder.


Set-IPAllowListConfig
Use the Set-IPAllowListConfig cmdlet to modify the IP Allow list configuration on a computer that has the Edge Transport server role or the Hub Transport server role installed.


Clean-MailboxDatabase
Use the Clean-MailboxDatabase cmdlet to scan the Active Directory directory service for disconnected mailboxes that are not yet marked as disconnected in the Microsoft Exchange store and update the status of those mailboxes in the Exchange store. This cmdlet is not able to update the Exchange store unless the Microsoft Exchange Information Store service is running and the database is mounted.


Get-ActiveSyncDeviceStatistics
The Get-ActiveSyncDeviceStatistics cmdlet lets you retrieve the list of devices that are configured to synchronize with a specified user's mailbox and return a list of statistics about the devices.


Group-Object
Groups objects that contain the same value for specified properties.


  
Latest Scripts from PoshCode.org

HttpRest 1.0.1
Added Get-WebPageContent to the initial implementation of the Http REST script functions (usable as a v1 script or as a module). Documentation on "this post on HuddledMasses":http://huddledmasses.org/using-rest-apis-from-powershell-with-the-dream-sdk/

ISE-Snippets
ISE-Snippets module v 1.0 DEVELOPED FOR CTP3 See comments for each function for changes ... As a shortcut for every snippet would be to much, I created Add-Snippet which presents a menu. Feel free to add your own snippets to function Add-Snippet but please contribute your changes here Provides Code Snippets for working with ISE Add-Snippet - Presents menu for snippet selection Add-SnippetToEditor - Adds a snippet at caret position

Get-ChildItemProxy
This is an advanced function that uses a proxy command to add two new switches to get-childitem You can name this function get-childitem and it will overwrite the existing cmdlet. With Proxy Commands, you can mess with the meta data and add/subtract parameters from real cmdlets Most of this code was generated with Jeffrey Snover's new Metaprogramming Module http://blogs.msdn.com/powershell/archive/2009/01/04/extending-and-or-modifing-commands-with-proxies.aspx http://www.get-powershell.com

ISE-Lines
ISE-Lines module v 1.1 ( Conflate-Line improved ) DEVELOPED FOR CTP3 Provides Line cmdlets for working with ISE Duplicate-Line - Duplicates current line Conflate-Line - Conflates current and next line MoveUp-Line - Moves current line up MoveDown-Line - Moves current line down Delete-TrailingBlanks - Deletes trailing blanks in the whole script

Get-PipeLineObject
For TabExpansion.ps1 this requires latest TabExpansion.ps1 in a same directory

TabExpansion
Ported TabExpansion from V2CTP2 to v1.0 and extended. Update: Parameter expansion for function, filter and scripts man -f<tab> 'param([System.StringSplitOptions]$foo,[System.Management.Automation.ActionPreference]$bar,[System.Management.Automation.CommandTypes]$baz) {}' > foobar.ps1 .\foobar.ps1 -<tab> -b<tab> Enum expansion for function, filter and scripts parameter (this doesn't work latest V2 CTP) .\foobar.ps1 -foo rem<tab> -bar <tab><comma>c<tab><comma>sc<tab> -ea silent<tab> -wa con<tab> Enum expansion for assignment expression $ErrorActionPreference =<space><tab> $cmdtypes = New-Object System.Management.Automation.CommandTypes[] 3 $cmdtypes =<space><tab><comma><space>func<tab><comma><space>cmd<tab> -as<space><tab> Better '$_.' expansion for Get-Item and Get-Command and a expression of only a variable $data = Get-Process; $data[2,4,5] | % { $_.<tab> gi hkcu:\ | % { $_.subkey<tab> gcm powershell.exe | % { $_.file<tab> *this requires latest Get-PipeLineObject.ps1 in a same directory

ISE-CopyOutPutToEditor
Some of the new ISE custom menue functions only work in the editor pane and not in the output. If you have something in the output that you want to use, just copy it to a fresh editor pane. You can even save it, if you want. Nobody said, that only valid PowerShell scripts can be edited by ISE

PowerShell Template
I've modified the original function. I like this one better.

running regions in ISE
scripting for running regions by hotkeys in powershell v2 CTP3 ISE. http://www.karlprosser.com/coder

[CTP3] Invoke-ISE
A little starter for ISE using advanced functions
  
 

We want to send out our thanks to everyone  for helping to make this community grow. And to show just how much effect that this community has had on our fellow PowerShell users out there, we will leave you with this message from Lee, a member of the community:

"This is just a quick thank you to everyone in the forums who has helped me over the past few months.  You've made my Powershell experience richer and helped me become so much more productive.

Happy Christmas and all the best for the new year."

And the same thoughtscome  from us, too!

Hal Rottenberg, Community Director

Marco Shaw, Co-Community Director

Darin Pendergtraft, Co-Community Director

 

Community News
New Sharepoint and SQL forums

Due to recent interest in the forum, we've added two new discussion areas:

PowerShell Expert Panel at TechEd EMEA 2008

 We are extremely proud of the the job that Jonathan Medd (of the Get-Scripting Podcast) did at TechEd EMEA 2008 with a panel discussion which was made possible by support from PowerShellCommunity.org. You can find the video on

PowerShell script repository

Hal Rottenberg and Jonathan Walz recently did a podcast with Jeffrey Snover (Microsoft) regarding a centralized script repository.

Have a listen to it HERE and please leave your comments

PowerShell Analyzer 100% free.

With the phenomenal success of PowerShell Plus and subsequent transfer to Idera, PowerShell Analyzer is now 100% free. You can read more and get it from our recently updated website - http://www.shelltools.net . In coming weeks we are going to do some...

New sponsor: Idera

Idera, an exciting new sponsor has just announced a new PowerShell product, PowerShellPlus Professional.  A quote directly from Idera's web site:

"PowerShellPlus Professional is a powerful...

  
Recent Blog Entries
By Karl Prosser on 1/3/2009 7:14 PM

PowerShell CTP3 ISE - Integrated Scripting environment has inherited many ideas and features from PowerShell analyzer including multiple runspaces,editors, a smaller immediate input area and output pane, however it doesn’t have the output visualizers of PSA nor the super fast RTS like execution control of PSA.

However Microsoft in their wisdom has made ISE rather extensible through the $PSISE variable, and many people already have added some very cool functionality to ISE through these.

When I first demo’d what was then MSH analyzer to Microsoft back in the first few months of 2006, the feature that seemed to stand out the most to the team was the ability to select an area of code and just run that. Thankfully that level of execution control is now in ISE as F6, but I wanted more, so i’m going to share with you a script that build a few months ago to add a couple of features.

F7 run the current physical line. Read More »

By Karl Prosser on 12/19/2008 4:58 PM

SURVEY: http://spreadsheets.google.com/viewform?key=pgTpVBomNgDwUA9uQNRKAbw&hl=en

Taking an app from an internal application to a shrink-wrap ready for
the masses state is a lot of work, and updating/supporting/marketting
a product even more so. So after the huge sucess of PowerShell Plus
which is now safe in Idera's hands we need your help to decide what we
are going to release next. We plan to release some free projects, even
some opensource apps, but will likely look at productizing a project
so we can continue to feed our families. Please take the time to take
our survey
 

Read More »

By Marco Shaw on 6/27/2008 4:52 AM

PowerShell Usability Study, July 22 to July 29, 2008 at Redmond, WA

Read More »

By Karl Prosser on 6/17/2008 9:15 PM

So I've loved portable apps from time memorial and have valued making my own apps as portable as possible - XCOPY friendly.

By Karl Prosser on 6/17/2008 9:12 PM

Given the context on the last few posts. I've made a simple helper method in C# that can take a simple powershell hashtable and create a PSCustomObject based on it. Here is an example of how you can call it.

Read More »

By Karl Prosser on 6/17/2008 9:08 PM

Based on the performance testing and work being done by myself , mow , Brandon Shell and others the question has come up what is the quickest way to generate a PSCustomObject, whether in script , on in C#, and how do you even do it in C#?

Some typical ways of doing in PowerShell have been either something like the following trick:

Read More »

By Karl Prosser on 6/11/2008 9:23 PM

I've spend a lot of time in the past looking at the performance of PowerShell but have never gotten around to blogging about it. However it has become quite a hot button among MVPs and others in recent days and we've been busy testing and comparing the speeds different techniques in PowerShell in both V1 and V2.

In V1 there seems to be extreme slowdowns when invoking cmdlet, functions, any type of scriptblock and when using the pipeline. If you...

Read More »

By Karl Prosser on 6/7/2008 12:32 AM

One thing that has bothered me about true cmdlets in contrast scripts is that they lived in SnapIns and couldn't be deployed with xcopy as scripts can because SnapIns required Registration/Installation. I build my own way to deal with this need some time ago, and thought that I'd start a blog series covering it. I call them Snapininis or SnapIn-Lites. A good thing is you can achieve the same end result in PowerShell V2 with modules - but that is V2 and a while away from being released, and then even further away from being fully deployed.

Read More »

By Karl Prosser on 6/3/2008 10:40 PM

Many people recently have asked how to determine programatically what version of PowerShell their script is running in. Well in version two there is a $psversiontable variable, but this sadly isn't in V1. All is not lost though, as you can write a simple function to return a version object for v1. Below is a quick function that I wrote that I have been using for the last year or so. 

Read More »

By Don Jones on 6/2/2008 8:01 AM

Here's my hands-on review of the Amazon Kindle, along with a chance for you to win your own!

Read More »

  

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer