Hi,
I have a weird problem with my imdisk installation.
I run a Windows Home Server 2011 (based on Windows Server 2008 R2), which I also use as MediaPortal TV server. I use imdisk to have my timeshiftbuffer in RAM. I run a script c:\imdisk\startimdisk.cmd from the task scheduler. This script has run unmodified for years now.
imdisk -a -s 2G -m e: -p "/fs:ntfs /V:Timeshift /q /y" md e:\timeshift net share timeshift=e:\timeshift /grant:Jeder,FULL
NTFS permissions are set correctly on both file and directory.
The task (which I also tried to delte an re-create with the same result) runs on system start with SYSTEM account and highest privileges.
Last week, I had issues with my homegroup settings and fiddled around on the server. On this occasion I unmounted the E: Ramdisk once and assigned another drive this letter (only temporary) and removed it again. On the next reboot, I had drive E nonaccessible with a blue questionmark. I found and deleted some registry entries (HKLM\ControlSet01\Control\SessionManager\DOS devices) Key E:, Value \Devices\ImDisk0 and similar entries on
the registrie pointing to E: as I wanted to get rid of this ghost device. Maybe I deleted something there which I shouldn't have...
When I run the script above when logged into the server, it completes without any problem. I I run it from the task scheduler, I always get a 0x2 result code, while the event log in windows tells me that the script has run completely with this return code (no access denied, no file not found etc).
I uninstalled imdisk and rebooted, installed the lastest version, no change.
I have put a pipe to create a log file. When run from a logged on user, everthing is normal. When run by the task scheduler, only the commands of the script itself are being logged (weird...).
I have tried putting back the registry mentioned above, which gives me back e: with a blue questionmark. But it does not change the behaviour of the startup initialization failing.
The driver is set to start automatically.
I have no more idea what to do about this task failing. Any solution or workaround is appreciated.