header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left
Random Cmdlets
Get-TabExpansion
Gets matching tab expansions.


Set-ActiveSyncVirtualDirectory
The Set-ActiveSyncVirtualDirectory command enables you to configure the Microsoft ActiveSync settings on a specified virtual directory.


Update-FileDistributionService
Use the Update-FileDistributionService cmdlet to use the File Distribution Service to poll for offline address book (OAB) and Unified Messaging (UM) configuration and data.


Set-ForegroundWindow
Given an hWnd or window handle, brings that window to the foreground. Useful for restoring a window to uppermost after an application which seizes the foreground is invoked. See also Get-ForegroundWindow


Stop-Service
Stops one or more running services.


Remove-OfflineAddressBook
Use the Remove-OfflineAddressBook cmdlet to remove (delete) offline address books (OABs).


Remove-Variable
Deletes a variable and its value.


Enable-ExchangeCertificate
Use the Enable-ExchangeCertificate cmdlet to enable and disable an existing certificate that is in the local certificate store for different services.


Get-EmailAddressPolicy
Use the Get-EmailAddressPolicy cmdlet to return all of the attributes on a policy or set of policies.


Clear-ActiveSyncDevice
The Clear-ActiveSyncDevice cmdlet enables you to delete all data from a mobile device.


  
Latest Scripts from PoshCode.org

Reflection
Helpers for working with .Net classes: Get-Constructor, Get-Assembly, Add-Assembly, Get-Type

WpfBindingHelper
I can't get this to work from PowerShell, but it works fine from C#? * *C#* @PoshWpf.XamlHelper.ConvertToXaml( System.Windows.Markup.XamlReader.Parse( "<StackPanel xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'> <TextBlock Text='{Binding FullName}' /> </StackPanel>" ));@ * *PowerShell* @[PoshWpf.XamlHelper]::ConvertToXaml( [System.Windows.Markup.XamlReader]::Parse( "<StackPanel xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'> <TextBlock Text='{Binding FullName}' /> </StackPanel>" ));@ Both of them give back XAML, but in PowerShell ... I'm missing the {Binding FullName} bit.

Out-Posh
A little wrapper script/function to put pipeline output into New-BootsWindow

Replace-InTextFile
A script to do replace strings in text files. Yes, this is just a wrapper around @(gc) -replace | sc@

Export-WLANSettings.ps1
Using netsh.exe to loop through each WLAN on the system and export the settings to the user-provided output-file.

Format-PoshTable
Format-PoshTable puts the output in a WPF DataGrid (inline in PoshConsole, popup otherwise)

Get-FeedInfo
Takes an array of RSS feed URLs and gets the site URL and title..

Email attachments
All descriptions on the web which show how to do this so far have left the email attachment open which means if the script is continuing after the email and you wish to use the file you have attached you will not be able to as it will show as locked, use this example to close the attached file correctly using .Dispose()

Set-WinSchedule
Set-WinSchedule gives a GUI to select a schedule and schedules a task using schtasks. This is a beta. There are still a lot of features to implement. Please read through the synopsis->Description to see the list of features that I hope to get in a final release.

Get-FtpList
A function to get a file listing via FTP and parse it into objects. The default "FtpWebResponse"http://msdn.microsoft.com/en-us/library/system.net.ftpwebresponse.aspx listing comes back in HTML(Hypertext Markup Language) format from my FTP(File Transfer Protocol) server, and this function parses it into objects. However, the string parsing here may not work on the output of your FTP server (if so, please contribute by adding another set of parsing).
  
 

March 4th, 2010,

Sapien just released iPowerShell V2, which is now available in the Apple app store.  What is iPowerShell?

From Ferdinand Rios -

 iPowerShell is an easy to use reference tool for users of Microsoft’s PowerShell scripting language for use on the iPhone or iPod Touch. It contains full descriptions of each and every core PowerShell Version 2 cmdlet, their syntax, parameters and examples of proper usage. It also contains the complete set of “about item” help topics as well as provider and alias help.

Check out the Sapien blog for additional information.

If you have a third party PowerShell module or snapin with help, please contact Sapien (info@sapien.com) so they can integrate those help files with their next release.

-Steven Murawski
Co-Community Director

 

Community News
PowerShell In Practice

From Marco Shaw -

Check out http://www.manning.com/siddaway

Get the ebook or printed edition (not available yet), and use the discount code "marcoshell40" when checking out and get 40% off the regular...

Thomas Lee Joins PoshComm Directors

PowerShellCommunity.Org is happy to announce that Thomas Lee, Powershell MVP and noted trainer, is joining our ranks as a Community Director. 

Thomas is also responsible for a good many of the PowerShell...

Looking to get started with Modules?

Check out the PowerShellPack from James Brundage, which contains modules for making GUI's, add-ons for the ISE(Integrated Script Editor), system tools, and...

PowerShell Virtual Launch Party

PowerShell V2 Virtual Launch Party!

Jeffrey Snover, Hal Rottenberg and Jonathan Walz (hosts of the PowerScripting Podcast) hosted a PowerShell V2 Virtual Launch Party on Thursday, Oct 22nd, 9:30 PM EDT (GMT-4). 

More details...

PowerShell MVPs re-awarded

Congratulations to the PowerShell MVPs that were re-awarded that honor for another year, including our very own Marco Shaw, Hal Rottenberg and Thomas Lee.  Other MVPs that...

  
Recent Blog Entries
By Karl Prosser on 1/16/2010 8:27 PM

Have you ever just wanted to run a line or two of C# from within PowerShell and consume the resulting objects from PowerShell? Before V2 you had to do some codedom yourself Plus write a full dotnet class yourself. With V2 you can just do add-type but still you have to write a full class just to run an expression. Anyway how about a year ago after getting fed up with doing that, and also after seeing Mono's C# commandline interface i thought lets do something quick and dirty that could do this.. with the script that will follow you can do stuff like (c being an alias for the function that compiles and runs a C# expression

(c DateTime.Now).adddays(5)
(c "new{a=1,b=2,c=3}").b
c 'from x in Directory.GetFiles(@"f:\downloads") where x.Contains("win") select x'

an interesting thing i found out, was that with the C# compiler in memory i can't create more than one anonymous type (2nd Read More »

By Karl Prosser on 7/20/2009 9:28 PM

 

What is it?
Portable PowerShell is software that allows you to run PowerShell on machines that don’t have PowerShell installed that you can run from a Machine that doesn’t have PowerShell on it, from a USB stick, on a machine that has a different version of PowerShell, a preinstall environment like BartPE, or WinPE or when booted to a windows 7 recovery DVD....
Read More »

By Karl Prosser on 1/8/2009 12:53 AM

Though we don’t have intentions to carry developing PowerShell Analyzer much in the future, there are a number of improvements in my personal fork, and we want to make sure that it keeps its shelf life by updating it for PowerShell V2. Surprisingly we are still getting hundreds of downloads a day so we want to make sure that those who prefer PSA can still keep using it and also take advantage of the features I use day in and day out. We’ll probably release some new builds within the next couple of weeks, but will post some screenshots and maybe videos until then. We hope that will minimal effort keep PSA the best free PowerShell tool. Read more below to see the screenshots and examples

Read More »

  

We have a new sponsor!  Introducting Pragma Systems.  See the home page for details.

right
   
footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 footer
footer