Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - [CTP2:] File System Transactions

Reply
 
Old 05-13-2008   #1 (permalink)
Jon


 
 

[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
Old 05-13-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: [CTP2:] File System Transactions

Jon wrote:
Quote:

> 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
Old 05-13-2008   #3 (permalink)
Jon


 
 

Re: [CTP2:] File System Transactions

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

> 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
Reply

Thread Tools


Similar Threads
Thread Forum
CTP2 PowerShell
missing live file system and mastered system Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46