Menu

Get MSFT_Partition or MSFT_Volume for the created RAM disk

2020-05-13
2020-05-18
  • 佐藤裕介

    佐藤裕介 - 2020-05-13

    I am using ImDisk Virtual Disk Driver Version 2.0.10 on Windows 10.

    I want to format a RAM disk in my PowerShell script (it runs a benchmark) without administrator authority, so I am trying to format the RAM disk with Format-Volume Powershell cmdlet.

    The format-Volume cmdlet can take MSFT_Partition or MSFT_Volume object as an argument, so I have tried "Get-Volume", "Get-CimInstance Win32_Volume" and "Get-CimInstance Win32_DiskPartition". But these cmdlets seem to ignore the RAM disk created with ImDisk Toolkit.

    Is there any way to get MSFT_Partition or MSFT_Volume object for the RAM disk created with ImDisk Toolkit?

     
  • Olof Lagerkvist

    Olof Lagerkvist - 2020-05-15

    Such features are unfortunately not available for ImDisk virtual disks. This is because it is based on a rather old driver design and it does not interact with the Volume Mount Manager in Windows.

     
  • 佐藤裕介

    佐藤裕介 - 2020-05-18

    Thank you for the comment. I will try to format the RAM disk by using format command and with administrator authority.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.