header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left
Random Cmdlets
Get-WebServicesVirtualDirectory
The Get-WebServicesVirtualDirectory cmdlet retrieves the information for the virtual directory named EWS in the Active Directory directory service from a computer that is running Microsoft Exchange 2007 with the Client Access server role installed.


Get-RemoteDomain
Use the Get-RemoteDomain cmdlet to view the configuration information for the remote domains that are configured in your organization. You can view the remote domain configuration from inside the Exchange organization or from a computer that has the Edge Transport server role installed in a Microsoft Exchange Server 2007 organization.


Remove-UMHuntGroup
The Remove-UMHuntGroup cmdlet removes and deletes an existing Unified Messaging (UM) hunt group.


Get-LogonStatistics
Use the Get-LogonStatistics cmdlet to retrieve logon statistics, such as user name, logon time, last access time, client version, and adapter speed.


Remove-EmailAddressPolicy
Use the Remove-EmailAddressPolicy cmdlet to remove an existing e-mail address policy.


Out-Clipboard
Formats text via Out-String before placing in clipboard.


Get-AntispamUpdates
Use the Get-AntispamUpdates cmdlet to determine the type of Microsoft Forefront Security for Exchange Server anti-spam updates that are retrieved. The Enable-AntispamUpdates and Disable-AntispamUpdates cmdlets can be used to set the mode by which the anti-spam updates are retrieved on a computer that has the Edge Transport server role or the Hub Transport server role installed.


Get-IPBlockListConfig
Use the Get-IPBlockListConfig cmdlet to view the configuration information for the IP Block List configuration on a computer that has the Edge Transport server role or the Hub Transport server role installed.


Get-AddressList
Use the Get-AddressList cmdlet to view all attributes of an address list.


Get-MailboxCalendarSettings
Use the Get-MailboxCalendarSettings cmdlet to retrieve the Calendar Attendant configuration on the target mailbox.


  
Latest Scripts from PoshCode.org

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).

Kill Outlook + CopyPST


Receive-Stream
A *very* simple stream-reader implementation (with no error handling) suitable for simple interactive script task ...
  
 

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
Jun 3

Written by: Karl Prosser
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. 

function get-psVersion
{
if ((get-Variable psversiontabl[e]) -eq $null)
{
new-Object system.Version "1.0.0.0"
}
else
{
$psversiontable.psversion
}
}

 

-Karl

Tags:

Your name:
Title:
Comment:
Add Comment    Cancel  
  

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