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
help with Vista Home Basic oem system failure corrupt system file.
A few days ago, after a windows automatic update, my computer is no longer able to boot. It returns this message:...
System Security
help with Vista Home Basic oem system failure corrupt system file.
A few days ago, after a windows automatic update, my computer is no longer able to boot. It returns this message: ...
Crashes and Debugging
CTP2
I assume this is still under review. anyone knows when it is going to be production ?
PowerShell
WS-AT or OLE Transactions
I'm trying to get OLE Transactions working on Windows XP SP2. I installed ..NET Framework 3.0 and the Hotfix (Update for Windows Communication...
Indigo
RE: PowerShell v2 CTP2 is out!
There's some interesting looking cmdlets listined in the "For Adding Converting Types" section of the Release Notes, but there doesn't seem to be...
PowerShell
Failing WS-Atomic transactions...
I am having a lot of problems (like it does not work) re getting my transactions to work again with WCF: My server config looks like this: ...
Indigo
Transactions Across Different Systems using WCF
Hi, I am stuck with the deisgn of a scenairo where i need to implement a (distributed) transaction across components residing on different...
Indigo