PowerCLI

 View Only
  • 1.  Drive Letter to Disk Id?

    Posted Dec 14, 2011 04:12 PM

    Hello,

    How would i go about getting the drive letter, i.e "C:\" from the device ID ($vm | get-harddisk)[0]) so '0' for example could be C:\, I'm trying to get a list of drives labels on a specific VM so i can pick out a driver letter and expand it in the OS and the VMDK

    Thanks,

    Mike



  • 2.  RE: Drive Letter to Disk Id?

    Posted Dec 14, 2011 04:35 PM

    vkmaster wrote:

    Hello,

    How would i go about getting the drive letter, i.e "C:\" from the device ID ($vm | get-harddisk)[0]) so '0' for example could be C:\, I'm trying to get a list of drives labels on a specific VM so i can pick out a driver letter and expand it in the OS and the VMDK

    Thanks,

    Mike

    well no sense getting bogged down with those command line scripts..

    This tool works great:  http://www.robware.net/

    It will identify drives (drive letter to hard disk) for you.. Plus many other extras.. and it's FREE!



  • 3.  RE: Drive Letter to Disk Id?

    Posted Dec 14, 2011 05:10 PM

    This will only work if your guest OS only has 1 partition on 1 vdisk.



  • 4.  RE: Drive Letter to Disk Id?

    Posted Dec 14, 2011 07:13 PM

    We only use 1 partition per disk so would still be good

    And thanks but no thanks RParker, i've already done a 200 line powershell script for a very specific purpose and the software you linked is of no use to me.



  • 5.  RE: Drive Letter to Disk Id?

    Posted Dec 14, 2011 07:30 PM

    vkmaster wrote:

    We only use 1 partition per disk so would still be good

    And thanks but no thanks RParker, i've already done a 200 line powershell script for a very specific purpose and the software you linked is of no use to me.

    If you don't want to use it, that's all you had to say.. having no use isn't the same as you PREFER to use scripts.



  • 6.  RE: Drive Letter to Disk Id?

    Posted Dec 15, 2011 11:12 AM

    RParker... I said it is no use to me because it actually is no use to me, it was in no way derogatory.

    I don't envision using your tool to manage 1000+ production VMs and have it proactively increase the OS disk when it runs low on disk space (without needing a windows reboot).

    Can it increase a windows OS partition and have it see the space without a reboot, I think not. Also, overseer is one word.

    Thanks LucD will look into that.



  • 7.  RE: Drive Letter to Disk Id?

    Posted Dec 14, 2011 10:39 PM

    The best solution to map vdisks to guest OS partitions till now, is the method Arnim describes in his PowerCLI: Match VM and Windows harddisks – Part 2 post.

    He uses WMI calls and SCSI-ids to map the vdisks to the guest OS partitions.

    So there are a few limitations I'm afraid

    • you need to have VMware Tools installed
    • the guest OS needs to be a Windows OS
    • only SCSI disks


  • 8.  RE: Drive Letter to Disk Id?

    Posted Dec 14, 2011 07:28 PM

    LucD wrote:

    This will only work if your guest OS only has 1 partition on 1 vdisk.

    Once AGAIN you fail to realize WHO is using this product, it does NOT work only for 1 disk, just because you are the script king, doesn't mean you are the great and powerful all knowing over seer and maker of all things VM Ware and computers.  just because a program infriges on your personal arena for scripts, doesn't mean you have a monopoly on how to find or do things.  Scripts are great.. for SOME things, but this program is very versatile.  You may not like to use GUI tools and prefer your beloved scripts, that's a preference.  But you can AT LEAST give some credit to the product for doing something just because you believe YOU have a corner on the market, doesn't make it so!

    It works just fine for multiple disks..

    Thanks!