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日 18: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日 21: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日 23: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日 18: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日 19: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日 20: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日 20: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日 21:04
    モデレータ
  • Thanks!

     

    2008年9月18日 21: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日 23: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日 18: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日 16: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