• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[CTP2:] File System Transactions

#1
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/archive/2008/05/09/powershell-transactions-quickstart.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 Computer

M

Marco Shaw [MVP]

#2
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/archive/2008/05/09/powershell-transactions-quickstart.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 Computer

#3
"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 Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)