if I can get some help, please and thank you, Booga73
my script:
Code: Select all
c:\temp1\vshadow64.exe -p c: > %tmp%\vsha.txt
for /f "skip=52 tokens=5 delims={,} " %%a in (%tmp%\vsha.txt) do @echo %%a >> %tmp%\vsha1.txt
set /p txt=< %tmp%\vsha1.txt
vshadow -el={%txt%},B:
when I step through and do the commands manually at the command prompt, I am able to:
1. Create the Shadow copy.
2. map the shadow copy to a specific drive letter which is B drive
3. access the shadow copy like a regular drive
I think when this line executes, vshadow -el={%txt%},B:, it's not recognizing the snapshot ID correctly.
this is the output of my script:
VSHADOW.EXE 3.0 - Volume Shadow Copy sample client.
Copyright (C) 2005 Microsoft Corporation. All rights reserved.
(Option: Expose a shadow copy)
ERROR: the -el arguments must contain a GUID and a local path separated by a comma.
versus what should happen:
Code: Select all
C:\>vshadow64.exe -el={cc0e56c8-cbf9-436e-bbdf-ae269f7fc185},B:
VSHADOW.EXE 3.0 - Volume Shadow Copy sample client.
Copyright (C) 2005 Microsoft Corporation. All rights reserved.
(Option: Expose a shadow copy)
- Setting the VSS context to: 0xffffffff
- Exposing shadow copy {cc0e56c8-cbf9-436e-bbdf-ae269f7fc185} under the path 'B:
'
- Checking if 'B:' is a valid drive letter ...
- Shadow copy exposed as 'B:\'
the vshadow tools which I use is found here: http://ithelp.cveg.uark.edu/backup/backup.zip
website where I got my tools from, which I hadn't a problem either.
also, I am using Win7 x64 bit
this is the output of vsha.txt
VSHADOW.EXE 3.0 - Volume Shadow Copy sample client.
Copyright (C) 2005 Microsoft Corporation. All rights reserved.
(Option: Persistent shadow copy)
(Option: Create shadow copy set)
- Setting the VSS context to: 0x00000009
(Gathering writer metadata...)
(Waiting for the asynchronous operation to finish...)
Initialize writer metadata ...
Discover directly excluded components ...
- Excluding writer 'Shadow Copy Optimization Writer' since it has no selected components for restore.
- Excluding writer 'MSSearch Service Writer' since it has no selected components for restore.
Discover components that reside outside the shadow set ...
- Component '\BCD\BCD' from writer 'ASR Writer' is excluded from backup (it requires in the shadow set)
Discover all excluded components ...
Discover excluded writers ...
- The writer 'ASR Writer' is now entirely excluded from the backup:
(the top-level non-selectable component '\BCD\BCD' is an excluded component)
Discover explicitly included components ...
Verifying explicitly specified writers/components ...
Select explicitly included components ...
* Writer 'Task Scheduler Writer':
- Add component \TasksStore
* Writer 'VSS Metadata Store Writer':
- Add component \WriterMetadataStore
* Writer 'Performance Counters Writer':
- Add component \PerformanceCounters
* Writer 'System Writer':
- Add component \System Files
* Writer 'Registry Writer':
- Add component \Registry
* Writer 'COM+ REGDB Writer':
- Add component \COM+ REGDB
* Writer 'WMI Writer':
- Add component \WMI
Creating shadow set {7e0ef1bf-aecb-47dc-891a-fa0c58c000a9} ...
- Adding volume \\?\Volume{a67e33e9-40f6-11e3-9e8f-806e6f6e6963}\ [C:\] to the shadow set...
Preparing for backup ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Creating the shadow (DoSnapshotSet) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Shadow copy set succesfully created.
List of created shadow copies:
Querying all shadow copies with the SnapshotSetID {7e0ef1bf-aecb-47dc-891a-fa0c58c000a9} ...
* SNAPSHOT ID = {cc0e56c8-cbf9-436e-bbdf-ae269f7fc185} ...
- Shadow copy Set: {7e0ef1bf-aecb-47dc-891a-fa0c58c000a9}
- Original count of shadow copies = 1
- Original Volume name: \\?\Volume{a67e33e9-40f6-11e3-9e8f-806e6f6e6963}\ [C:\]
- Creation Time: 1/26/2014 9:05:56 PM
- Shadow copy device name: \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy61
- Originating machine: NeuberTek.irt123.net
- Service machine: NeuberTek.irt123.net
- Not Exposed
- Provider id: {b5946137-7b9f-4925-af80-51abd60b20d5}
- Attributes: No_Auto_Release Persistent Differential
- Mark all writers as succesfully backed up...
Completing the backup (BackupComplete) ...
(Waiting for the asynchronous operation to finish...)
(Waiting for the asynchronous operation to finish...)
Snapshot creation done.