ServiceEx is a freeware Windows application that allows a normal program to run as a Windows service. Currently it is command line only. A version with a GUI is forthcoming. In the meantime, configuration options are specified via an .ini file that must be created prior to running ServiceEx.
[From: ServiceEx – Run Applications as a Service]
This can be done through a Directory Junction which can redirect to a new location of offline files.
The Offline Files are stored in the folder %SystemRoot%\CSC (which usually is C:\Windows\CSC or a different drive letter in place of C). First, create a folder on a partition with large space and give it an informative name, say, D:\Offline Folders as a suggestion.
You need to delete the existing folder and create a junction in its place. For this, boot into Safe Mode as an administrator and delete the CSC contents and folder.
del /s /q %SystemRoot%\CSC should to the job.
Having created the new location folder, and deleting the existing CSC folder, now is time to create a Directory Junction for CSC folder with the following command:
mklink /J %SystemRoot%\CSC
for example: mklink /J C:\Windows\CSC “D:\Offline Files”
Now, whatever is meant for location %SystemRoot%\CSC gets directed to the new location.
I hope this helps.
Note: The quote marks in “D:\Offline Files” were required because of a space character in the folder name, otherwise not necessary.
[From: Offline files save to alternate partition]
From an elevated command prompt, execute the following commands:
> TAKEOWN /F [Directory Name] /R
> ICACLS [Directory Name] /grant Administrators:F