Skip to main content
The 2024 Developer Survey results are live! See the results
added 955 characters in body
Source Link
ElektroStudios
  • 1.6k
  • 7
  • 23
  • 50

Ok I just did a trick and worked perfectlly.

  1. Install VMWare Workstation in a VirtualMachine (to avoid installing all the trash of uneeded registry keys, drivers, connections, and services that this huge program install in the SO...)

  2. Copy these files from the VMWare Workstation installation in the virtual OS to the host OS:

    libeay32.dll ssleay32.dll vmware-vdiskmanager.exe

At this point we have a working standalone vmware-vdiskmanager.exe that does not require the entire VMWare Workstation application installed to shrink a virtual-disk :), so we can store those files in a folder and call the application from commandline to shrink a disk:

".\vmware-vdiskmanager.exe" -k ".\Disk.vmdk"

PSNote: Those dll libraries are related to Open-SSLOpenSSL and are required to run the app, maybe other features of vmware-vdiskmanager.exe will require to copy other libraries.

  1. Plus we can add some registry keys in our OS to shrink an VMWare virtual-disk (disk.vmdk) by doing mouse right-click on the file:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations.VMDK\Shell\VMWare] "MUIVerb"="VMWare" "SubCommands"="VMWare.Compact" "icon"="C:\VMWare.ico" "Position"="Top"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\VMWare.Compact] @="Shrink Disk" "icon"="C:\VMWare.ico"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\VMWare.Compact\command] @=""C:\vmware-vdiskmanager.exe" -k "%1""

Note: Change the filepaths on the registry script.

Ok I just did a trick and worked perfectlly.

  1. Install VMWare Workstation in a VirtualMachine (to avoid installing all the trash of uneeded registry keys, drivers, connections, and services that this huge program install in the SO...)

  2. Copy these files from the VMWare Workstation installation in the virtual OS to the host OS:

    libeay32.dll ssleay32.dll vmware-vdiskmanager.exe

At this point we have a working standalone vmware-vdiskmanager.exe that does not require the entire VMWare application installed to shrink a virtual-disk :)

PS: Those dll libraries are related to Open-SSL, maybe other features of vmware-vdiskmanager.exe will require to copy other libraries.

Ok I just did a trick and worked perfectlly.

  1. Install VMWare Workstation in a VirtualMachine (to avoid installing all the trash of uneeded registry keys, drivers, connections, and services that this huge program install in the SO...)

  2. Copy these files from the VMWare Workstation installation in the virtual OS to the host OS:

    libeay32.dll ssleay32.dll vmware-vdiskmanager.exe

At this point we have a working standalone vmware-vdiskmanager.exe that does not require the VMWare Workstation application installed to shrink a virtual-disk :), so we can store those files in a folder and call the application from commandline to shrink a disk:

".\vmware-vdiskmanager.exe" -k ".\Disk.vmdk"

Note: Those dll libraries are related to OpenSSL and are required to run the app, maybe other features of vmware-vdiskmanager.exe will require to copy other libraries.

  1. Plus we can add some registry keys in our OS to shrink an VMWare virtual-disk (disk.vmdk) by doing mouse right-click on the file:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations.VMDK\Shell\VMWare] "MUIVerb"="VMWare" "SubCommands"="VMWare.Compact" "icon"="C:\VMWare.ico" "Position"="Top"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\VMWare.Compact] @="Shrink Disk" "icon"="C:\VMWare.ico"

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\VMWare.Compact\command] @=""C:\vmware-vdiskmanager.exe" -k "%1""

Note: Change the filepaths on the registry script.

Source Link
ElektroStudios
  • 1.6k
  • 7
  • 23
  • 50

Ok I just did a trick and worked perfectlly.

  1. Install VMWare Workstation in a VirtualMachine (to avoid installing all the trash of uneeded registry keys, drivers, connections, and services that this huge program install in the SO...)

  2. Copy these files from the VMWare Workstation installation in the virtual OS to the host OS:

    libeay32.dll ssleay32.dll vmware-vdiskmanager.exe

At this point we have a working standalone vmware-vdiskmanager.exe that does not require the entire VMWare application installed to shrink a virtual-disk :)

PS: Those dll libraries are related to Open-SSL, maybe other features of vmware-vdiskmanager.exe will require to copy other libraries.