Welcome to MSDN Blogs Sign in | Join | Help

September 2006 - Posts

Linking against RC2

The RC2 SDK is not yet available. Until it is, here is a quick and dirty way for you to find/extract the DLLs to link your code against. Do this from a RC2 shell and you'll a copy of the DLLS in C:\SDK: PS>[appdomain]::currentdomain.getassemblies()

Windows PowerShell RC2 Now Available

Windows PowerShell RC2 Now Available Today Microsoft announced the availability of Microsoft Windows PowerShell RC2, the command line shell and scripting language that helps IT Professionals achieve greater productivity and control of system administration.

Windows PowerShell ISV/Developer Conference – Oct 9-10th, 2006

Windows PowerShell ISV/Developer Conference – Oct 9-10 th , 2006 We have a small number of available slots available for ISVs or Enterprise Developers to attend the Windows PowerShell & Microsoft Management Console (MMC) ISV Workshop (Building Next

TECHED: IT Forum

We are putting together our plans for TECHED IT Forum being held in Barcelona from Nov 14-17. I'll be there as well as a number of other people from the Windows PowerShell team. We'll be showing some new and very exciting stuff so if you are an IT Professional

Get-Process Piped to Dir

Did you know that you can pipe the output of Get-Process into dir? Don't believe it? Let me prove it: PS> Get-Process wi* Handles NPM(K) PM(K) WS(K) VM(M) CPU(s) Id ProcessName ------- ------ ----- ----- ----- ------ -- ----------- 95 4 1080 2892 32
Posted by PowerShellTeam | 9 Comments
Filed under:

Useful DateTime functions - LibraryTime.ps1

I was going to post a blog entries and realized that the example I wanted to give used some of my utility functions so I'll share them first. I hope you find them interesting. I put them in a file called LibraryTime.ps1 and dot source that during my login.
Posted by PowerShellTeam | 7 Comments
Filed under:

Attachment(s): LibraryTime.ps1

The Wonders of Date Math using Windows PowerShell

Larry Hayden posted a query about dates at: http://techtasks.com/bookmarks/powershell/2006/09/interview-with-a-scripter-jeffrey-snover/ He has a script which gets all the Application Events that happened TODAY: ———————————————————— $today = [DateTime]::Today
Posted by PowerShellTeam | 3 Comments
Filed under: ,

ErrorLevel equivalent

PSMDTAG:FAQ: ErrorLevel - what is the PowerShell equivalent? In Cmd.exe, %ErrorLevel% is a builtin variable which indicates the success or failure of the last executable run. In PowerShell, we support: $? Contains True if last operation succeeded and
Posted by PowerShellTeam | 4 Comments
Filed under:

Draft - Creating Cmdlet Help

NOTE: This content is also included as an RTF attachment as well. Creating Cmdlet Help When creating your own cmdlet, you can also create Help content that Windows PowerShell can display using the Get-Help cmdlet. The Help content that describes your
Posted by PowerShellTeam | 4 Comments
Filed under:

Attachment(s): Creating Cmdlet Help.rtf

Windows PowerShell on TechNet Radio

Tune in & Geek out at Technet Radio: http://www.microsoft.com/technet/community/tnradio/default.mspx There are a couple of PowerShell podcasts there: Drill down into Windows PowerShell: An interview with Jeffrey Snover Scripting with Windows PowerShell:

Controlling Internet Explorer object from PowerShell

The following example shows how to display all the processes in an IE window and highlight the ones with memory usage of greater than or equal to the specified value. $oIE=new-object -com internetexplorer.application $oIE.navigate2("About:blank") while
Posted by PowerShellTeam | 8 Comments
Filed under:

Thomas Lee on Monad (Windows PowerShell)

The site that has the Best of TECHED Boston also has the BEST of other shows as well. I'm not sure when/where Thomas gave this talk but I just watched it and it is highly entertaining. It's clear that Thomas has been in front of crowds a couple of (thousand)

FREE Windows PowerShell Help Tool from Sapien

Command line help is great because it is always there when you need it. That said, sometimes you want to have the help in one window while you experiement in the other. You can always do that with 2 console windows but why would you do that when you can
Posted by PowerShellTeam | 1 Comments
Filed under:

Best of Tech.Ed 2006 (BOSTON)

TechNet has made the provided videos of the top rated sessions of the TechEd 2006 Boston conference available at: http://www.microsoft.com/emea/itshowtime/ My talk: Windows PowerShell: Next Generation Command Line Scripting is available at: http://www.microsoft.com/emea/itsshowtime/sessionh.aspx?videoid=209

All crosshairs on the same prairie dog

When I lived in Colorado, I picked up the great concept/phrase, "All crosshairs on the same prairie dog". Damon Cortesi recent blog highlights this principle. http://dcortesi.com/2006/09/07/windows-powershell/ He posted a blog about the verbosity of PowerShell

DateTime Utility Functions

I often want to find things that happened Today. For instance, which files got changed today. Windows PowerShell makes this easy to do but it can be a bit verbose and I do it a lot so I've added a function to my profile: IsToday. function isToday ([datetime]$date)
Posted by PowerShellTeam | 6 Comments
Filed under: ,

BizTalk Server Applications: Get/Start/Stop

Tomas Restrepo has a nice script for getting/starting/stoping BizTalk Server Applications at: ht tp://www.winterdom.com/weblog/2006/09/02/BTSResetWithPowerShell.aspx I like how readable it the script is. It is completely obvious what is going on. Compare
Posted by PowerShellTeam | 1 Comments
Filed under: ,
 
Page view tracker