Based on what I learned from this webpage, we can delete System Volume Information folder on a hard disk drive by executing these three commands:
takeown /f "F:\System Volume information" /a /r /d y icacls "F:\System Volume information" /t /c /grant administrators:F System:F everyone:F rd /s /q "F:\System Volume information"
Edit: When executing
icacls command, if you are prompted "Are you sure?", enter the character Y.
When you delete this folder, the system attempts to recreate it after a while. I did some experiments and found out some of the events that cause this folder to be recreated:
- Operations on the drive's file system. Especially when you rename a file, delete a file, or create a new file using Windows Explorer.
- Restarting explorer.exe. Just terminate explorer.exe's process using Task Manager and then run it again. All your deleted SVI folders will come back.
With this in mind, consider the following batch code:
takeown /f "H:\System Volume information" /a /r /d y icacls "H:\System Volume information" /t /c /grant administrators:F System:F everyone:F rd /s /q "H:\System Volume information" mklink /D "H:\System Volume Information" "E:\SVI on Volume H" taskkill /F /IM explorer.exe start explorer.exe
The first three lines deletes the System Volume Information on drive H. The next line immediately creates a symbolic link named "System Volume Information" which is intended to take over the original folder.
Thus, when the system attempts to recreate the SVI folder, it comes across the symbolic link. Then, the system becomes a dupe, and creates SVI at the location that the symbolic link points to. (That is, "E:\SVI on Volume H")
The last two lines restarts explorer.exe. As I previously mentioned, it causes the system to make an attempt to recreate System Volume Information.
I think this is a good method for moving SVI from one location to another. While System Restore was disabled for all drives, I tested it on Windows 7 on my own computer, and my computer has been remaining intact for a few days. But I still have this doubt: Does this method cause any damage or system instability? Just answer this question. You can skip reading the rest.
My aim is to answer this question whose main topic is how to change the location of System Volume Information folder. I also made a JScript script (available on Github) which simplifies moving this folder. For example, you just need to run the script and type
->E in the console. Then the script will move all SVI folders to drive E, using my discovered method.
Note that my script can run with Windows Script Host (WSH).