![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #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 Specs![]() |
| | #7 (permalink) |
| | 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 Specs![]() |
| | #8 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||