Windows Vista Forums

[CTP2:] File System Transactions

  1. #1


    Jon Guest

    [CTP2:] File System Transactions

    Greetings fellow citizens of Powershellia

    Just been looking at the new 'transaction' cmdlets in Powershell, courtesy
    of the recent Powershell blog entry on subject.

    PowerShell Transactions QuickStart
    http://blogs.msdn.com/powershell/arc...uickstart.aspx

    I don't know how difficult it would be to implement this also for the file
    system provider (to complement the registry provider) but it strikes me
    (probably in my misguided ignorance) that that would be quite a cool feature
    if it were.

    eg such that you could also run commands like

    Start-PSTransaction
    New-Item $env:userprofile\Desktop\test.txt -ItemType file `
    -Value "Some contents" -UseTransaction
    #Get-Content -UseTransaction $env:userprofile\Desktop\test.txt
    Undo-PSTransaction

    to work alongside what you can do with the registry provider.

    When combined with registry transactions, it would seem that might then be
    the basis for a full-blown Powershell-based application virtualization,
    which sounds like it could be useful.

    Thoughts, insights, corrections ....?

    --
    Jon



      My System SpecsSystem Spec

  2. #2


    Marco Shaw [MVP] Guest

    Re: [CTP2:] File System Transactions

    Jon wrote:

    > Greetings fellow citizens of Powershellia
    >
    > Just been looking at the new 'transaction' cmdlets in Powershell,
    > courtesy of the recent Powershell blog entry on subject.
    >
    > PowerShell Transactions QuickStart
    > http://blogs.msdn.com/powershell/arc...uickstart.aspx
    >
    >
    > I don't know how difficult it would be to implement this also for the
    > file system provider (to complement the registry provider) but it
    > strikes me (probably in my misguided ignorance) that that would be quite
    > a cool feature if it were.
    Seeing as the registry transactions are an OS feature (Vista/Server
    2008) that PowerShell piggy backs on, and the OS (Vista/Server 2008)
    also provides this for filesystems, I think it is a good assumption that
    we will have file system transactions in the future.

    Will that be in CTP3? Dunno, but I'm crossing my fingers also...

    Marco

    --
    Microsoft MVP - Windows PowerShell
    http://www.microsoft.com/mvp

    PowerGadgets MVP
    http://www.powergadgets.com/mvp

    Blog:
    http://marcoshaw.blogspot.com

      My System SpecsSystem Spec

  3. #3


    Jon Guest

    Re: [CTP2:] File System Transactions

    "Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
    news:uSpJELPtIHA.1872@xxxxxx

    > Seeing as the registry transactions are an OS feature (Vista/Server 2008)
    > that PowerShell piggy backs on, and the OS (Vista/Server 2008) also
    > provides this for filesystems, I think it is a good assumption that we
    > will have file system transactions in the future.
    >
    > Will that be in CTP3? Dunno, but I'm crossing my fingers also...
    >
    > Marco
    >

    Thanks Marco.

    'Transactions' at first glance sound a decidedly boring feature (usually
    only accountants tend to get excited about such things), and I admit I
    glossed quickly over the feature when I first saw it. But with such an
    additional implementation for the file system, perhaps not so.

    The moral of the story (if any) perhaps being to never judge the value or
    potential of a cmdlet by its name alone.

    --
    Jon


      My System SpecsSystem Spec


[CTP2:] File System Transactions
Similar Threads
Thread Forum
CTP2 PowerShell
WS-AT or OLE Transactions Indigo
missing live file system and mastered system Vista General
Failing WS-Atomic transactions... Indigo
Transactions Across Different Systems using WCF Indigo