Showing archive results for April 2006

Apr 25, 2006
Post comments count0
Post likes count0

Monad portal in Script Center.

PowerShell Team

Most scripters are familar with Microsoft script center.  Script center now has a portal for Microsoft Command Shell.  You can access the portal at http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx -Arul Kumaravel [Edit: Monad has now been renamed to Windows PowerShell. This script or discussion may require slight adjustme...

Apr 25, 2006
Post comments count0
Post likes count1

PINVOKE or accessing WIN32 APIs

PowerShell Team

In the very early days of Monad, we focused on a world where everyone would publish Cmdlets and providers.  Cmdlets and providers were designed around providing the best user experience.  They provide the right, high-level, task-oriented abstractions that users want while also providing the semantic benefits that the Mon...

Apr 25, 2006
Post comments count0
Post likes count0

Using-Culture -Culture culture -Script {scriptblock}

PowerShell Team

One of the traditional challenges with scripting is dealing with different CULTURES.  Imagine the case where you are writing a script and you'll have to parse datetime string from different cultures.  If it was just one culture, you could set the process culture and be done with it.  Here is a function that allows you to run ...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 7 (Final): How Traps Work

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and J...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 6: Trace-Expression, Breakpoint Script

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and J...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 5: Preferences and Commandline Options

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and J...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 4: set-mshdebug

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and J...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 2: $error

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and ...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 3: Write-Host

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and J...

Apr 25, 2006
Post comments count0
Post likes count0

Debugging Monad Scripts, Part 1: Teminating vs. Non-Terminating, ErrorRecord

PowerShell Team

Did your command or script fail and/or report an error?  We hope to have a proper script debugger in a future version, but until then, MSH has some handy features to help you figure out what went wrong.  In this series of blog entries, I will present some of those features.  Thanks to Jim Truher [MSFT], Bruce Payette [MSFT], and J...