.NET Framework 3.5
• Windows 7 / 8 / 10
Register
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm /codebase "C:\VirtualDiskManager, x86.dll"
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm /codebase "C:\VirtualDiskManager, x64.dll"
Unregister
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm /u "C:\VirtualDiskManager, x86.dll"
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm /u "C:\VirtualDiskManager, x64.dll"
VBScript Example
Set VHD = CreateObject("VirtualDiskManager.VHD")
VHD.Attach("C:\image.vhd")
VHD.Detach("C:\image.vhd")
VHD.Toggle("C:\image.vhd")