Blog - Title

  • Windows PowerShell Blog

    Monad portal in Script Center.

    • 0 Comments
    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...
  • Windows PowerShell Blog

    PINVOKE or accessing WIN32 APIs

    • 7 Comments
    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...
  • Windows PowerShell Blog

    Using-Culture -Culture culture -Script {scriptblock}

    • 6 Comments
    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...
  • Windows PowerShell Blog

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

    • 1 Comments
    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...
  • Windows PowerShell Blog

    Debugging Monad Scripts, Part 5: Preferences and Commandline Options

    • 0 Comments
    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...
  • Windows PowerShell Blog

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

    • 3 Comments
    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...
  • Windows PowerShell Blog

    Debugging Monad Scripts, Part 4: set-mshdebug

    • 1 Comments
    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...
  • Windows PowerShell Blog

    Debugging Monad Scripts, Part 2: $error

    • 0 Comments
    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...
  • Windows PowerShell Blog

    Debugging Monad Scripts, Part 3: Write-Host

    • 0 Comments
    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...
  • Windows PowerShell Blog

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

    • 0 Comments
    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...
  • Windows PowerShell Blog

    Image Conversion

    • 2 Comments
    I needed to convert some images from bmp to gif for a web site I've been working on. I figured that I could script this pretty easy - here's what I came up with. It's a little more general than I needed, and I thought it might be useful to others. Anyway...
  • Windows PowerShell Blog

    Duplicate Files 2

    • 4 Comments
    A long time ago I posted a filter (AddNote) for adding notes to objects. Some time later I posted a function (Get-MD5) for calculating the MD5 hash of a file and somebody asked how that could be used in a script to list all the files in a given folder...
  • Windows PowerShell Blog

    Duplicate Files

    • 12 Comments
    Need a way to check if two files are the same? Calculate a hash of the files. Here is one way to do it: ## Calculates the hash of a file and returns it as a string. function Get-MD5([System.IO.FileInfo] $file = $(throw 'Usage: Get-MD5 [System...
  • Windows PowerShell Blog

    Adding Notes

    • 3 Comments
    A while back I mentioned that there was a way of adding notes to objects in the shell. Here is one way to do it: ## Adds a note to the pipeline input. filter AddNote([string] $name, $value) { $mshObj = [System.Management.Automation.MshObject...
  • Windows PowerShell Blog

    MshObject and Methods that take object

    • 0 Comments
    Every once in a while people ( including me) run into trouble calling methods that take object. Why? Well, as I told you earlier objects in MSH are wrapped by an invisible MshObject. As it turns out that this invisible object is not always so invisible...
  • Windows PowerShell Blog

    Support for Existing apps in Monad

    • 1 Comments
    Monad provides strong support for existing apps and technology. If you use native cmdline exes, vbscripts, batch files, perl scripts etc to manage and maintain windows, you can pretty much use them the same way from monad as you would from cmd.exe. ...
  • Windows PowerShell Blog

    Did you know? #4

    • 0 Comments
    Did you know that you can access most of the Cmdlet base class APIs through script using the $executioncontext variable? -Jeff Jones
  • Windows PowerShell Blog

    Did you know? #3

    • 0 Comments
    Did you know that you can put constraints on variables using the same attributes as cmdlet parameters? Unfortunately we had to postpone the language support for this but you can still do it using new-object. MSH > $a = "foo" MSH > $varA = get-variable...
  • Windows PowerShell Blog

    Did you know? #1

    • 0 Comments
    Did you know that you can access the content of a provider using the variable syntax? For instance, you can get and set the contents of a file just by doing the following: MSH > ${c:\temp\foo.txt} = "bar" MSH > ${c:\temp\foo.txt} bar MSH >...
  • Windows PowerShell Blog

    Did you know? #2

    • 0 Comments
    Did you know that you can make a variable automatically propagate to new scopes by using the AllScope option? Normally when you enter a new scope variables are not copied from the parent scope. Instead we do a lookup for the variable when requested...
  • Windows PowerShell Blog

    Introduction to MshObject

    • 0 Comments
    If you’ve ever worked with the Monad APIs then you’ve no doubt seen a type called System.Management.Automation.MshObject. I’m not going to go into all the details of what it is because that would take me more time than I have right now and there are people...
  • Windows PowerShell Blog

    Windows PowerShell (Monad) Has Arrived

    • 33 Comments
    I just got out of Bob Muglia's keynote speech where he formally announced Windows PowerShell (previously known as Monad). The key things he announced are: Monad (MSH) has a new name: Windows PowerShell Windows PowerShell will RTW (Web download...
Page 38 of 38 (947 items) «3435363738