PowerShell Team

Automating the world one-liner at a time…

Latest posts

Aug 30, 2009
Post comments count 0
Post likes count 0

Exploring WMI with PowerShell V2

PowerShell Team

I was messing around with my son’s computer today trying to figure out why one of his programs wouldn’t work.  I was going to use ProcMon to monitor the processes but wasn’t sure what the processes where.  So first I had to figure out what processes were getting started when I ran his program.  I guessed that there was a WMI event for this but as always with WMI – WHAT IS THE NAME OF THE EVENT? In the past, this is where things stopped.  WMI was awesome but god help you if you didn’t know exactly what you wanted.  We made this a ton easier in PowerShell V2 so I decided to give it a try.&...

Aug 30, 2009
Post comments count 0
Post likes count 0

PowerShell Interview

PowerShell Team

I recently did a pretty wide ranging interview for TechNet with Osama Sajid.  They broke it up into 3 sections.  You can find the first section (along with pointers to the others) HERE.  In part 3 I talk about the idea of Integrated Lifetime Earnings and how this is affected by PowerShell.  I think this is a pretty important concept for everyone to get in focus. Cheers! Enjoy! Jeffrey Snover [MSFT] Distinguished Engineer Visit the Windows PowerShell Team blog at:    http://blogs.msdn.com/PowerShell Visit the Windows PowerShell ScriptCenter at:  http://www.micros...

Aug 28, 2009
Post comments count 0
Post likes count 0

PoshComm has a new sponsor – Please welcome Pragma Systems

PowerShell Team

PowerShellCommunity.org  has announced that they have a got a new sponsor, Pragma Systems. SSH and Telnet folks know Pragma very well. For Powershell users they provide the capability to access Windows PowerShell from any client that runs a ssh or telnet client.   More details of Pragma's Powershell support can be seen here. They would love to hear your feedback and improve it –  PoshComm forums is the place to give this feedback now.   Thanks Osama Sajid, Progam Manager

Aug 26, 2009
Post comments count 0
Post likes count 1

Plus (+) in .NET Class Names

PowerShell Team

On one of our internal discussion aliases, someone asked why do we need a plus (+) the class name for FTP? Typically, you would expect this to work [Net.WebRequestMethods.Ftp], but it doesn’t. The solution is [Net.WebRequestMethods+Ftp] and it has something to do with nested classes In C#, a nested class looks something like public class List{                public class Node // Node is inside List                {        &nbs...

Aug 13, 2009
Post comments count 0
Post likes count 0

Powershell 2.0 for Windows Vista and Windows Server 2008 – Release Candidate

PowerShell Team

Announcing the public release of Microsoft Windows Management Framework RC for Windows Vista SP1 and SP2, Windows Server 2008 RTM/SP1 and SP2. This RC includes release notes and the following components:   ·        Windows PowerShell 2.0 ·        WinRM 2.0 ·        BITS 4.0   You can download it from here https://connect.microsoft.com/windowsmanagement/Downloads   This release is equivalent to the PowerShell 2.0 bits in Windows 7 RTM.  Packages for XP SP3 and W...

Aug 12, 2009
Post comments count 0
Post likes count 0

Get-SystemUptime and Working with the WMI Date Format

PowerShell Team

I just got a quick ping from someone at work for an uptime script.  I checked in WMI with by using Search-WmiHelp to find a wmi class that had an uptime property (Win32_OperatingSystem has LastBootUpTime).  While I had found the uptime property I needed, I was left with another pretty common problem that people hit (in VBScript and in PowerShell) about dealing with WMI times.  WMI has a couple of date time formats, and moving in and out of these formats often involves messy parsing code.  Luckily, the WMI team was nice enough to make sure that the .NET classes you use to work with WMI can conv...

Aug 11, 2009
Post comments count 0
Post likes count 0

Summer Scripting Games 2009 : Wrap-Up

PowerShell Team

Scripting Guys have posted a wrap-up to the Summer Scripting Games.. they will be taking the winner scripts one by one and explain it in detail. See it here   Thanks Osama Sajid, Program Manager  

Aug 3, 2009
Post comments count 0
Post likes count 0

PrimalForms 2009 – From SAPIEN

PowerShell Team

SAPIEN Technologies ,makers of PrimalScripts have added another cool product for Windows PowerShell users - PrimalForms. Check it out http://www.primaltools.com/products/info.asp?p=PrimalForms Thanks Osama Sajid, Program Manager

Jul 31, 2009
Post comments count 0
Post likes count 1

Portable PowerShell – Survey

PowerShell Team

Have you ever faced a situation where you want to do some PowerShell magic on a server - but you can't because it is not installed. Well, Karl Prosser is now building a tool to do that. From Karl's blog... "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." Right now Karl is asking the community for some feedback t...