Heads Up – The 2010 Scripting Games begin today

April 26, 2010

You didn’t register for the games yet? Point your browser to http://2010sg.poshcode.org/ , create yourself a profile and submit your scripts. Event 1, Updating and Creating Registry Keys, has released. Check THIS page regularly during the games, it has all the links you need on one page and it will be updated as new events release. Maybe you’ll be one of two lucky guys to attend TechEd 2010 North America for free ($2,195 value) or have a 15-minute phone conversation with Distinguished Engineer Jeffrey Snover :) Looking for support and information, check the new...
2 comments

PSClientManager – PowerShell module to Add/Remove Windows 7 features

April 25, 2010

Windows Server 2008 R2 includes a  PowerShell module, ServerManager, for managing server roles, role services, and features via PowerShell cmdlets. In Windows 7, there is no such module and we need to use the GUI  (OptionalFeatures.exe) or the ‘Deployment Image Servicing and Management’ tool (DISM, see list of resources below). The problem with DISM, from a PowerShell perspective (objects, objects…), is that DISM is a legacy application that emits text and is not written with automation in mind .     PSClientManager is a PowerShell module that takes advantage of...
10 comments

Formatting dates in different cultures

April 13, 2010

While playing around formatting dates I found that I can get a LONG list of DateTime patterns that I can use to format DateTime objects. The DateTimeFormatInfo.GetAllDateTimePatterns method returns all the standard patterns in which DateTime values can be formatted. DateTimeFormatInfo can be accesses via the DateTimeFormat member of the Get-Culture cmdlet (en-US): PS > (Get-Culture).DateTimeFormat.GetAllDateTimePatterns() M/d/yyyy M/d/yy MM/dd/yy MM/dd/yyyy yy/MM/dd …   To view all patterns for different cultures (Hebrew) we need to create a new CultureInfo object: PS > (’he-IL’).DateTimeFormat.GetAllDateTimePatterns() dd/MM/yyyy dd/MM/yy dd/MMMM/yyyy dd-MM-yy dd-MM-yyyy …   To get a list of all CultureInfo objects that are installed in the Windows...
no comments

Mailbox Creation Time

April 8, 2010

Do you happen to know or have a rough guess when exactly your mailbox was created? From a client perspective (Outlook), you can get the date quite easily. One thing you do need to know in advance is the property tag for the PR_CREATION_TIME property name. We can get that with MFCMapi. Download MFCMapi HERE and launch it. From the menu, click ‘Session’ and choose the first menu item: ‘Logon And Display Store Table’   Choose the Outlook profile you want to load and press OK.   ...
one comment