LTRData / ImDisk

ImDisk Virtual Disk Driver
GNU General Public License v2.0
426 stars 72 forks source link

Is there a way to make my new memory virtual disk invisible to other users on the same machine? #20

Closed adream100 closed 5 months ago

adream100 commented 5 months ago

I'm running ImDisk on a Windows Server2022 machine that someone else is using remotely. I use the command line: imdisk -a -s 4G -m R: -p "/fs:ntfs /q /y" to create an R disk and it works fine. This is a great tool ! I want this R disk can only be used by me, no one else can see. Can it be done? Thank you.

LTRData commented 5 months ago

Yes, but it requires more steps.

imdisk -a -s 4G
dosdev -r R: \Device\ImDisk0
format R: /fs:ntfs /q /y

You need to change 0 in \Device\ImDisk0 to the device number shown in imdisk -a output. It is usually 0 for first drive mounted, but it could be any number.

You can get dosdev.exe from my web site: https://ltr-data.se/opencode.html

Edit: Corrected dosdev syntax

adream100 commented 5 months ago

I test and it works. Great idea, great tool. Thank you very much.