none
Previous Versions from command-line? RRS feed

  • 질문

  •  

    Is there a way to restore a shadow copy from the command line?  I looked at VSSADMIN and it didn't appear to have this ability.

     

    Thanks!

    Jason Yates

    2008년 9월 18일 목요일 오후 6:10

답변

  • Jason

     

    There is no way to restore a VSS previous version of a file. The previous versions of files are all contained in the System Restore points on the volume that is being monitored.

     

    The only way to restore a previous version of a file or folder is to use the UI in the properties of the target file or folder.

     

    There is a command line for System Restore (rstrui.exe) however this only initiates the UI for SR.

     


    If this post helps to resolve your issue, click the Mark as Answer or Helpful button at the top of this message.
    By marking a post as Answered, or Helpful you help others find the answer faster.

    Ronnie Vernon
    Microsoft MVP
    Windows Desktop Experience
    2008년 9월 18일 목요일 오후 9:04
    중재자
  • Jason

     

    Your welcome, glad this helped.

     


    If this post helps to resolve your issue, click the Mark as Answer or Helpful button at the top of this message.
    By marking a post as Answered, or Helpful you help others find the answer faster.

    Ronnie Vernon
    Microsoft MVP
    Windows Desktop Experience
    2008년 9월 18일 목요일 오후 11:28
    중재자

모든 응답

  •  

    Jason,

     

    Start\Run\Services.msc

    Found Volume Shadow Copy double click and change startup type to manual click in apply

    e then start

     

    try again use VSSADMIN

     

     

     

     

    2008년 9월 18일 목요일 오후 6:43
  • so, are you saying VSSADMIN is the command that should restore shadow copies from the command line?  What switch do I use b/c that's really my question.  I looked in help and on line and there isn't a switch to restore a file.  My guess is that the VSSADMIN tool is only for managing the shadow copy service, not shadow copies themselves.

     

     

    2008년 9월 18일 목요일 오후 7:30
  •  

    Jason

    VSSADMIN is only for manage the service Shadow Copy such as Volumes, Storage size and events

     

    restore a file is necessary use Windows Explorer in the properties of each folder or volume.

     

    More information

     

    http://technet.microsoft.com/en-us/library/bb491031.aspx

     

     

     

    att,

    Samuel Ribeiro

    2008년 9월 18일 목요일 오후 8:24
  • I know this already. I've already read the KB article.   What I don't know is this: is there a way to restore a previous version from the command line.  If not VSSADMIN, is there another tool?  I gather you must not know.  Thanks anyway.

     

    Perhaps someone else can help . . . ?

     

    Jason Yates

     

     

    2008년 9월 18일 목요일 오후 8:34
  • Jason

     

    There is no way to restore a VSS previous version of a file. The previous versions of files are all contained in the System Restore points on the volume that is being monitored.

     

    The only way to restore a previous version of a file or folder is to use the UI in the properties of the target file or folder.

     

    There is a command line for System Restore (rstrui.exe) however this only initiates the UI for SR.

     


    If this post helps to resolve your issue, click the Mark as Answer or Helpful button at the top of this message.
    By marking a post as Answered, or Helpful you help others find the answer faster.

    Ronnie Vernon
    Microsoft MVP
    Windows Desktop Experience
    2008년 9월 18일 목요일 오후 9:04
    중재자
  • Thanks!

     

    2008년 9월 18일 목요일 오후 9:45
  • Jason

     

    Your welcome, glad this helped.

     


    If this post helps to resolve your issue, click the Mark as Answer or Helpful button at the top of this message.
    By marking a post as Answered, or Helpful you help others find the answer faster.

    Ronnie Vernon
    Microsoft MVP
    Windows Desktop Experience
    2008년 9월 18일 목요일 오후 11:28
    중재자
  • My response is few years too late for the original person's question, but it may be of use to others as this post is ranked high in search engines.

    The command you are looking for is volrest.exe you can use the /? switch for examples of its use.


    • 답변으로 제안됨 JonnyFofo 2014년 1월 22일 수요일 오전 8:50
    2014년 1월 21일 화요일 오후 6:53
  • My reply is likewise years late, but here's what I think you're looking for:

    1. Open Windows File Explorer and navigate to the folder where you want to access previous versions
    2. Right-click -> Properties -> Previous Versions
    3. Select the time you want and click Open
    4. In the window that opens, right click in the white space and click Properties
    5. Here's the key: You'll see the "Location:" as something like "Z:\@GMT-2019.06.12-16.05.09\folderName\folderName
    6. Now open command prompt and change directory to that location from step 5. You can now use command line commands to manipulate the shadow copies, including robocopy!
    2019년 6월 12일 수요일 오후 4:31
  • that helped me too,

    i updated my drivers with driver pack solution and suddenly after system restart, my mouse and keyboard stoped working.

    and by doing your advice my problem solved.

    tnks
    2019년 8월 28일 수요일 오전 4:51