I am evaluating the latest version of ImDisk (Imdisk.sys version 126.96.36.199). I use windows system() api to execute Imdisk commands from my service which runs as SYSTEM user.
I create a new RAM disk during my service start and delete the disk while stopping the service. Service sends the following commands:
1) RAM disk create:
imdisk -a -s 100m -p "/fs:ntfs /q /y /v:mvram" -m X:
2) RAM disk delete:
imdisk -d -m X:
The service cannot delete the RAM disk. Also, when I search for open handles on X: in process explorer, I get following :
However, if I execute the command "imdisk -d -m X:" in cmd (Administrator user) it successfully removes the RAM disk.
Is this a known issue in ImDisk while running as a SYSTEM user?