通过Powershell恢复卷影副本

问题描述:

我们最近需要进行文件搜索,以查看目录中是否存在特定文件。如果它确实存在,我们需要从卷影副本中恢复它。

We recently had the need to do a file search to see if a specific file existed in a directory. If it did Exist we need to restore it from the shadow copies.

如果我们可以从powershell文件搜索启动恢复,会容易得多。 是否有命令在目录级别的powershell中触发恢复?

Would be much easier if we could initiate the restore from the powershell file search.  Are there commands to trigger a restore in powershell at the directory level?

关注的主要问题是从哪个卷影副本中恢复。由于每个还原请求和所需的用户输入都会有所不同,因此对我来说更有意义的是不能完全自动执行此任务。
The major issue of concern is known which shadow copy to restore from. Since this will be different with each restore request and required user input, it makes more sense to me to not completely automate this task.