Is it possible to place the system temp directory in a RAM disk?

The problem is that the system temp directory is required when machine installs updates first thing after a restart. My RAM disk, however, starts through HKLM\Software\Microsoft\Windows\CurrentVerison\Run, which is probably read later in the process.

My question is this – is there a way to redirect the system temp directory to a RAM disk in a way that this redirection is realized before windows installs the updates after restart?

Use case:
I have installed a RAM disk that gets initialized on startup. Everything works fine, including rebooting the server (it is possible to save the RAM disk image, making it survive the reboot). However, when I reboot the server as a result of Windows Update the update is undone, because Windows is unable to access the TEMP directory – the RAM disk has not been loaded yet.

Truth to be told the problem is only with the system TEMP directory and there is not much harm not to redirect the system TEMP and leave it as is.

Still, if I could load the RAM disk before the Windows Update resumes then I could place the system TEMP on the RAM disk as well. My question – is it possible?

Answer

Attribution
Source : Link , Question Author : mark , Answer Author : Community

Leave a Comment