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 - previous versions ?

Reply
 
Old 07-02-2007   #1 (permalink)
Nicopilami


 
 

previous versions ?

Hi, is it possible to retreive previous versions of some files with
powershell
-> retreive a list of all previous versions of a file
-> restore the file at a particular version

bye
Nico


My System SpecsSystem Spec
Old 07-02-2007   #2 (permalink)
Marco Shaw


 
 

Re: previous versions ?

Nicopilami wrote:
> Hi, is it possible to retreive previous versions of some files with
> powershell
> -> retreive a list of all previous versions of a file
> -> restore the file at a particular version
>
> bye
> Nico
>


It could, but this would all have to be created from scratch. Sounds
like you should be looking into a 'version control' solution. There's
some open source/free stuff out there likely. Now, whether it runs on
Windows (vs Linux), that I couldn't tell you.

Marco
My System SpecsSystem Spec
Old 07-02-2007   #3 (permalink)
Hal Rottenberg


 
 

Re: previous versions ?

On Jul 2, 9:16 pm, Marco Shaw <marco.shaw@_NO_SPAM_gmail.com> wrote:
> It could, but this would all have to be created from scratch.


Unless he's talking about shadow copies? See here:
http://en.wikipedia.org/wiki/Shadow_Copy

So let's redirect the question to shadow copies--can they be
manipulated using PS?



My System SpecsSystem Spec
Old 07-02-2007   #4 (permalink)
Jason


 
 

Re: previous versions ?

> So let's redirect the question to shadow copies--can they be
> manipulated using PS?


WMI classes related to shadow copies:

Win32_ShadowBy
Win32_ShadowContext
Win32_ShadowCopy
Win32_ShadowDiffVolumeSupport
Win32_ShadowFor
Win32_ShadowOn
Win32_ShadowProvider
Win32_ShadowStorage
Win32_ShadowVolumeSupport
Win32_Volume

In addition to these classes, the following URL also describes the
VOLREST.EXE tool for restoring shadow copies from shared folders from the
command line.

http://technet2.microsoft.com/window....mspx?mfr=true


Cheers,
Jason


------------------------------------------------------
PowerShell Training at SANS Conferences
http://www.WindowsPowerShellTraining.com
------------------------------------------------------

My System SpecsSystem Spec
Old 07-03-2007   #5 (permalink)
Marco Shaw


 
 

Re: previous versions ?

Hal Rottenberg wrote:
> On Jul 2, 9:16 pm, Marco Shaw <marco.shaw@_NO_SPAM_gmail.com> wrote:
>> It could, but this would all have to be created from scratch.

>
> Unless he's talking about shadow copies? See here:
> http://en.wikipedia.org/wiki/Shadow_Copy
>
> So let's redirect the question to shadow copies--can they be
> manipulated using PS?
>
>
>


Even better than WMI: a COM interface!

http://msdn2.microsoft.com/En-US/library/aa384648.aspx
My System SpecsSystem Spec
Old 07-03-2007   #6 (permalink)


 
 

Re: previous versions ?


"Hal Rottenberg" <halr9000@gmail.com> a écrit dans le message de news:
1183426768.986273.9830@m36g2000hse.googlegroups.com...
> On Jul 2, 9:16 pm, Marco Shaw <marco.shaw@_NO_SPAM_gmail.com> wrote:
>> It could, but this would all have to be created from scratch.

>
> Unless he's talking about shadow copies? See here:
> http://en.wikipedia.org/wiki/Shadow_Copy
>
> So let's redirect the question to shadow copies--can they be
> manipulated using PS?
>
>
>


yes, that was wat i meant, but i didn't remember the words ;o)


My System SpecsSystem Spec
Old 07-03-2007   #7 (permalink)
Marco Shaw


 
 

Re: previous versions ?

Marco Shaw wrote:
> Hal Rottenberg wrote:
>> On Jul 2, 9:16 pm, Marco Shaw <marco.shaw@_NO_SPAM_gmail.com> wrote:
>>> It could, but this would all have to be created from scratch.

>>
>> Unless he's talking about shadow copies? See here:
>> http://en.wikipedia.org/wiki/Shadow_Copy
>>
>> So let's redirect the question to shadow copies--can they be
>> manipulated using PS?
>>
>>
>>

>
> Even better than WMI: a COM interface!
>
> http://msdn2.microsoft.com/En-US/library/aa384648.aspx


I took a peak at the documentation... I'm hoping WMI will provide you
with what you need, because accessing VSS via COM seems complicated at
first glance.

Marco
My System SpecsSystem Spec
Old 07-04-2007   #8 (permalink)
Marco Shaw


 
 

Re: previous versions ?

Hal Rottenberg wrote:
> On Jul 2, 9:16 pm, Marco Shaw <marco.shaw@_NO_SPAM_gmail.com> wrote:
>> It could, but this would all have to be created from scratch.

>
> Unless he's talking about shadow copies? See here:
> http://en.wikipedia.org/wiki/Shadow_Copy
>
> So let's redirect the question to shadow copies--can they be
> manipulated using PS?
>
>
>


From the command line, you can use vssadmin as a command-line
interface. I don't see how you can restore a *file* though. It seems
to want to backup/restore entire volumes.

But I'll keep playing with it as I'm curious.

Marco
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Folder Versions has Non Existent List in Previous Versions Tab Vista performance & maintenance
Previous Versions config Vista file management
Previous Versions Granularity Vista General
previous versions Vista security
Previous Versions 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