My understanding is that the question is about switching between two File History
I suggest as solution the saving and restoring of the
in the folder
which is the main configuration repository of File History.
While switching these files, you should first stop the system service
"File History Service (fhsvc)" and restart it afterward.
It is possible to automate the switching process by using two
There are also other secondary places where File History keeps configuration
data, although I don't think they should also be switched.
These are the registry key
User JW0914 in the above comments testifies that he uses this technique for
configuring File History.
Let's say that you have saved one configuration with the command:
copy "%LOCALAPPDATA%\Microsoft\Windows\FileHistory\Configuration\Config*.xml" "C:\path\to\save1"
And that you repeated this for the second configuration that you wish
to save. So in the end you have two folders,
save2, for the two.
save1 while stopping the File History service, you would
.bat file such as:
sc stop fhsvc
timeout 5 >nul
copy /y "C:\path\to\save1\Config*.xml" "%LOCALAPPDATA%\Microsoft\Windows\FileHistory\Configuration"
sc start fhsvc
This batch file needs to run in Administrator mode.
You may store it on the desktop, or add a desktop icon that will point to it.
You should create two such, for
Explanation of the script commands:
The sc command is used for controlling
system services. It will here stop the service
fhsvc for the duration of
the operation, then will restart it.
The timeout command will delay
execution for five seconds, time enough for the service to terminate
(increase if required), and its output is directed to the NUL device
to avoid verbose output.
The copy command is called with
/y parameter to suppress the confirmation prompt when overwriting