Export the drive letter of windows and vmware number of hard disk in csv format

Hello

is there a way to export to CSV, the windows drive letter (c:, d:, e:, etc.) and the number of disk hard vmware ("Disk 1", hard disk 2", etc.) to a csv file?

Take a look at this document: http://communities.vmware.com/docs/DOC-12180

It is based on the idea of Hugo Peeters', but it uses the Invoke-VMScript cmdlet and therefore does not require a network connection to work between the virtual machine and your station PowerCLI.

Export is sent to the Out-GridView cmdlet, but it can be easily redirected to a CSV file by replacing the line:

$DiskInfo | Out-GridView

with:

$DiskInfo | Export-Csv "C:\Script\VMDiskMapping.csv".

Tags: VMware

Similar Questions

  • Cannot map the shared folders to the drive letter in WIndows prompt

    I seem to have a problem with the shared folders in a Windows on Fusion 6 client. Turning on shared folders in the VM options creates the "VMWare shared folders" shortcut on my desktop, and I can open and view files shared host, as expected. However, it is not map the shared folders to drive Z: in Windows because I expect, and I can not also go to shared folders using the path "\\vmware-host\Shared records" (for example, only by typing in the address bar in a window of the Explorer). It is a problem, because I need a path that I can put scripts to refer to things in the shared folder.

    Also, if I access network in Explorer, vmware-host is there but trying to open it gives me the error "Windows cannot access \\vmware-host."

    I'm running 6 Fusion on OS X Mavericks, and the guest is Windows 8.1. My .vmx file contains the following lines which I think are related to shared folders:

    insulation. Tools.hgfs.Disable = "FALSE".

    hgfs.mapRootShare = 'TRUE '.

    hgfs.linkRootShare = 'TRUE '.

    sharedFolder0.present = 'TRUE '.

    sharedFolder0.enabled = 'TRUE '.

    sharedFolder0.readAccess = 'TRUE '.

    sharedFolder0.writeAccess = 'TRUE '.

    sharedFolder0.hostPath = ' / users/buck/projects.

    sharedFolder0.guestName = 'projects '.

    sharedFolder0.expiration = "never".

    sharedFolder.maxNum = '1 '.

    For me, the weirdest thing is that I can get for shared folders by using the shortcut on the desktop, but by typing the exact path and the shortcut points to in an Explorer window does not work!

    If anyone has any suggestions on how I could get this works normally, I would be very grateful - thank you!

    Hi Buck,

    Welcome to the community.

    Have you tried to re - install vmware tools in your windows 8.1?

    ARBuck wrote:

    Also, if I access network in Explorer, vmware-host is there but trying to open it gives me the error "Windows cannot access \\vmware-host."

    I think you should activate windows network discovery if you want to browse vmware host in the network.

    You can enable this by

    Control Panel-> network and Internet-> Network and Sharing Center-> the advanced sharing settings

  • After using a third party partition manager program left to extend my Windows 8 partition, the system of Windows 8 start to a black screen and Windows 8 partition of the drive letter has changed

    Original title: problems of Windows 8

    I have Windows 7 (32 bit) and Windows 8 (64-bit) is installed in a dual boot. I tried to extend the partition of Windows 8 with a third party partition manager. Subsequently, I restarted after having learned so much.

    Later, the first thing I saw was that the locked screen image is replaced by a blue color. Photos of the user are also missing. Once connected, it took a long time for windows everything ready, and I'm stuck in a black screen with the mouse pointer.

    I entered in Safe Mode and found that the drive for Windows 8 letter has been changed (C: = Windows 7;) D: = recovery partition; E: = Windows 8, new drive letter; F: = Windows 8, old drive letter), I tried to change the drive letter, but it does not work.

    Partition of Windows 7 works well (it is what I currently use to put this problem), and I can access the data in the partition of Windows 8. I tried the methods of different repair without result (such as chkdsk and sfc/scannow).

    Can someone help me with this please? Any help would be appreciated.

    Hello

    I understand that you have a problem of black screen with Windows 8 and the drive letter for the partition of Windows 8 is also changed. This problem is due to the use of the third party partition manager program because it affects the registry files and causes the instability of the system.

    Try to run auto repair from the Windows recovery environment and check if that helps.

    Method 1: start the recovery environment with installation of Windows 8 media.

    It is another way to boot the PC and launch recovery tools when something goes wrong with the operating system.

    Please follow the steps below. Insert the DVD to install Windows 8 on DVD-ROM and restart your computer.

    (a) once you start your computer by using the Windows DVD or the system repair disc, a black screen is displayed with the gray text "Press any key to boot from CD or DVD". Press a button on any.

    (b) select the good time and the type of keyboard .

    (c) click on repair your computer in the lower left corner.

    (d) select Troubleshooting to Choose an option screen.

    (e) click on advanced options in Troubleshooting screen.

    (f) click Auto repair of Advanced Options screen.

    (g) following, choose the operating system by clicking on its button.

    (h) Windows 8 will be looking for problems on the hard drives and verify that all required files are intact.


    Method 2: Run the restoration of the system of the Advanced Options screen.

    System Restore to restore your computer to a previous state, quickly and easily without losing any of your files and personal settings. Sometimes when you install programs or drivers, they can affect some system settings and prevent other programs to function properly. You can use system restore to restore these settings to their previous state

    Follow these steps:

    (a) once you start your computer by using the Windows DVD or the system repair disc, a black screen is displayed with the gray text "Press any key to boot from CD or DVD". Press a button on any.

    (b) select the good time and the type of keyboard .

    (c) click on repair your computer in the lower left corner.

    (d) select Troubleshooting from the Choose an option screen.

    (e) click on advanced options in Troubleshooting screen.

    (f) select System restore.

    After the system restore your documents and files will always remain to their previous state.

    If you do not install Windows 8 media, I suggest you connect to any other computer and create a floppy disk to install Windows 8. Using this disk, you can run the troubleshooting provided methods.

    How to create the installation media for a PC refresh or reset:

    http://Windows.Microsoft.com/en-us/Windows-8/create-reset-refresh-media

    You can also try the same steps using the bootable USB key. You must select USB as the first boot to the BIOS device.

    Note: Microsoft don't recommend any third-party partition manager program because it corrupts the registry files and cause the instability of the system.

    Write to us if you're still having problems. We will help you.

    Kind regards

  • You need to set the drive letter to the USB Ports front before any device has been inserted - that won't change when the device is connected. I have Windows XP Professional with Visual Studio 6 installed

    You need to set the drive letter to the USB Ports front before any device has been inserted - that won't change when the device is connected. I have Windows XP Professional with Visual Studio 6 installed. Thanks for your help

    diana73,

    First of all, make sure that you're connected Administrators account to do.

    How to change a drive letter to change an existing drive letter on a drive, on a partition, or a volume, follow these steps:

    1. Sign in as an administrator or as a member of the Administrators group.
    2. Click Start , click run and type compmgmt.msc .
    3. In the left pane, and then click disk management .
    4. Right click on the drive, the partition, the logical drive or volume that you want to assign a drive letter to and then click change drive letter and paths .
    5. Click change .
    6. Click assign the following drive letter if it is not already selected, click the drive letter that you want to use, and then click OK .
    7. Click Yes when you are prompted to confirm the drive letter change.

    The letter of the drive, partition, or volume that you specified is changed, and the new drive letter is displayed in the appropriate drive, partition, or volume in the disk management tool.

    Good luck! Please rate me upward if you find my post helpful. Thank you!

  • The strange thing is that, when you go and try to remap the drive, it shows that the drive letter is mapped to a different drive used to be shared on the server?

    I am running Windows 7 Pro 64-bit in a dish netwrok with no announcement. I can map drives on the server without any problems and everything seems fine. Then after a few hours it seems to lose the mapping on the drive. There are two mapping drives and he loses a. It will show in my computer as being mapped, but you cannot access it. You can connect to the mapped drive on bringing the command run and typing in the UNC path in.

    The strange thing is that, when you go and try to remap the drive, it shows that the drive letter is mapped to a different drive used to be shared on the server? Once you tell to remap things in car are fine for a few hours.

    My question is where and why it does this?

    Thoughts?

    Thank you

    Tom

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en/category/w7itpro/

    Hope this information is useful.

  • How can I change the drive letter of the cd/DVD/BD in windows 8

    The only thing that appears under device management is hard drives.  Optical drives do not arise as they did under XP or 7.

    In Windows 8, the optical drives are listed in the Device Manager under CD/DVD-ROM drives.

    In windows 8, the drive letter assignments are made in the disk management snap-in in.

    Access

    Control Panel\All Control Panel Items\Administrative tools

    Computer management

    Disk management

    Highlight the device in the list, click the icon to the left of the list on the right left

    In the context menu, select change drive letter and path.

    Follow the on-screen prompts.

    If the devices are not listed, shut down the computer to the power off. Wait a minute. Restart and check again.

    Tom Ferguson

  • I have an Epson Perfection 1640SU. My operating system is Windows 7 Ultimate 64 bit. Epson does not a driver for 64-bit. If I install Windows XP mode, I will be able to download the driver of Epson XP and use this scanner?

    I have an Epson Perfection 1640SU. My operating system is Windows 7 Ultimate 64 bit. Epson does not a driver for 64-bit. If I install Windows XP mode, I will be able to download the driver of Epson XP and use this scanner?

    Best way for you is to use Vuescan. I use it in conjunction with a Canon Lide 30 and it works very well...

    http://www.Hamrick.com/

    There is a trial version... Mike Hall MVP - Windows Desktop Experience http://msmvps.com/blogs/mikehall/

  • Change the drive letter for the recovery partition

    The recovery partition is, by default, the value to D: which means that if I create a data partition, it is automatically in letters f: while this is not unacceptable, it is inconvenient.  I would like to change the drive letter of the partition data on D: and set the recovery as f partition: if I do this, it will automatically disable the ability to recover?  I am running Windows 7 Professional, which is an originally installed Windows 7 Home Premium upgrade.

    Hello Richard9, if you change the Recovery D: HP restore partition to another letter, the recovery procedure would not work if you ever need.

    If you have files HP Recovery discs, you could delete this partition and recover the capacity of hard drive D: and use the set of diskettes to restore HP recovery to reintall the original software and the partitions of the hard drive, all as they were when shipped from HP.

  • Every three months or more, the drive letter for the backup drives jumps from one to another

    I posted it here because there is no whole final forum for the Windows OS line.  It is a problem that has been around since Microsoft made Windows XP and, frankly, I'm tired of it.

    I have some backup players; one that I'm pretty much every day, whenever I have the machine and another every two weeks of use.  I make sure they are always attached to a specific USB port so that the computer does not change in response.  But still, every three months or so, the drive letter handling these jumps from one to the other.  I run a Web site today and use a p2p Manager to transfer files to my machine, but most of them depend on the drive, so I could really do without what is happening every three months... all because your company won't repair it or provide an intuitive, ToolPart beginners' of the Windows operating system, forcing to keep a disk permanently assigned to the same letter.

    I know that this is part of basic programming because it is something that Microsoft has simply been unwilling to identify and correct.  I know also there are millions of people like me who suffer from this problem.  For the love of God, please make this tool a priority for Windows 8 and build one for Windows 7/Vista!
    * original title - your drive letter management is (Windows, all versions) *.

    I don't think that the USB ports are wired so that the computer OS is informed of the port which has been consulted.

    I also doubt that you will get Microsoft to change at this point.  As a solution, I give my readers a volume name, and so I don't know which drive is no matter which drive letter that has.

    Steve

  • UNABLE to get the drive letter of the disk 0 Partition 1

    Hello world.

    Well, yesterday I tried to install Ubuntu netbook edition 10.10. Well, in the middle of something was wrong and it corrupted the Windows partition. Linux is installed, but Windows is damaged.
    I'm on a Gateway laptop, and I have a recovery disk. The thing is when I try to boot from the disc, it says Windows is loading files... and then it opens with an error message saying fail to get the drive letter of the Partition 1 of disk 0. When I turn on the computer, I present a selection of software Ubuntu and Windows Vista loader option. If I choose that, it would open a window of system repair and th other options. I passed by them and tried to recover my pc from the recovery disc. However, none of them worked. I chose the option to Scan drive for errors, and you are prompted to restart my pc. I did, but now, if I select the Windows Vista loader it comes with a long error message.
    In the Linux file browser, C:\ is now called PQSERVICE, but he's not normal Windows OS files.
    The thing I would ask is; How I completely erase my hard drive, reset the partitions and reinstall windows from my recovery disc? I have no special programs or documents that I need to backup, I all recorded them on a portable hard drive. Also, I can reinstall Linux (rightly) with no dramas.
    PS. I have a drive to upgrade Vista to Windows 7. I have not yet tried, but if I inserted that and tried to boot my computer from that, would that work?
    Thanks for your time.

    Hello

    1. can you give us the long error message?

    The recovery disc can be used to restore the computer to factory settings and I suggest you best computer manufacturer contact to get help for the same.

    Also, we cannot use a Windows 7 upgrade disk to perform a clean installation.

    Method 1: I suggest to check the following link and check if it helps:

    Information on the recovery of the system:

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

    Method 2: Try the following steps to upgrade from Windows Vista to Windows 7 from the link below:

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7

    Hope this information is useful.

  • Change the drive letter of the Partition Recovery

    After previous bad experiences in trying to separate the data files program, I took the habit on my previous computer under Windows to create another partition on my hard drive to store the data files. Out of habit I still do on my desktop PC with Windows XP (great program) rather than use the My Documents folder.

    I want to do the same thing on my new DV6-3142, I use to work and create a separate partition for my data files. I understand how to create a new partition on the HDD and reassign the drive letters for the existing partitions, but I want to use the letter D for her. However, it is the letter of the drive that is used for the recovery partition.

    Can I change the drive letter of the recovery partition to, say R without affecting the operation of the recovery process, or should I leave as D for the recovery of the system to work properly that I should never need her?

    Hello:

    You leave the name of the recovery partition and drive letter unchanged and your C drive: of the same name.

    If you change these, when you press the F11 key to start the recovery process, the program know what to do.

    I am a firm believer of it also have a set of factory recovery disks. For me, it is worth less than the investment of $20.  If your HARD drive fails after the warranty period, (or if you want to upgrade your HARD drive), your recovery partition doesn't help anyway.

    Contact HP customer support to see if they have a game for your laptop:

    http://support.HP.com/us-en/document/c00810334

    Paul

  • How to change the drive letter with installed applications?

    My window is installed on the C: drive, and the application is installed on the D: drive,

    I just buy a new HARD drive and put it into drive E:, everything is copied from drive D: to E: drive and want to switch between the letter D: and E:.

    I tried to put in DISKPART, but when I restart my XP, the drive letter remains the same,

    If I change the drive letter directly in XP, it cannot be changed, because the applications are running.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Make sure any DVD/CD or USB keys are not connected or set F assignments or beyond (MY DVD is S & T).

    Shut down the computer; power off. Disconnect the old drive (now D). Connect the new drive (now a copy of the old D). Power and boot to the desktop. Go into disk management and make sure the drive that contains Windows, the original C drive is always c. assign the new drive as D. Reboot the desktop. Check operation.

    Shut down the computer; power off. Plug the old drive. Restart the desktop computer. Enter Disk Management and assign it to E.

    Restart, then check the operation.

    Tom Ferguson

  • What could cause my computer to rendomly change the drive letter assigned to a mapped network drive?

    I use a Windows XP Pro SP3 System. We have dipped sharing network and one of them began to change the drive letter assigned periodically through the week that makes a problem in access to frequently used files. No reason as to why he would do this?

    Hi KyleMiller,

    ·         How you map the network drive?

    Try to re-mapping the network drive and check if it helps. Follow this link to do this.

    How to connect and disconnect a network drive in Windows XP

  • Change the drive letter of recovery drive (vista home 64)

    I can change it from d to z: I need d: for another purpose.

    Thank you

    Peter

    PeterK514,

    It is safe to change the drive letter as long as no other program or service is dependent on growing location. The recovery discs, usually access you their data outside of the windows environment and the recovery console (by pressing a button of keyboard during startup), and so it would be prudent change the assigned letter. However if your recovery for you program manufacturer, or any other software that relies on this drive, run from Vista, it can interfere with its ability to operate properly. Consult your OEM for more details on their dependencies of the program.

    <><><><><><><><><><><><>

    Please use the community support for Microsoft Vista.

    Rami
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can not download images to Flash the drive/USB stick Windows Photo Gallery.

    When I right click on the photo or photos, there isn't a line SEND to indicate the flash player is in usb port. Hope that makes sense.

    If you go directly to your folder of images to transfer the
    When you click right thumbs selected the menu of files...
    will be an option to "send to" and you can choose the
    the Flash drive's drive letter. It does not work in WLPG.

    More info...

    When it is inserted into a USB port... If the Flash drive
    be recognized at... Start / computer with a drive letter.

    Possible example:

    Removable disk (: F)

    In Windows Live Photo Gallery... right click a thumbnail
    or a selected thumbnail and in the menu group...
    choose... Copy.

    Then go to... Start / computer... right click on the drive letter
    that represents your Flash Drive, then in the menu...
    choose... 'Stick '.

Maybe you are looking for