How to get the VM with or without thin disk in VC Server

I need to get my Vm list all in my server VC who have the fine disc and one of them is not a thin disk.

I do not understand it can be done in CLI power and I have Vmware Vsphere CLI installed power. I also find some scripts on the net, but I don't know how to use them

Please suggest step by step how to run these scripts and where console as well?

Thank you

Deepak

If you have the names of these servers in a CSV file with this provision.

Name
server1
server2
....

You can use a script like this

$report = @()
Import-Csv "C:\My-Csv-file.csv" | %{
     $vm = Get-VM $_.Name
     $vm | Get-HardDisk | %{
          $row = "" | Select VMname, Folder, HDname, HDformat
          $row.VMname = $vm.Name
          $row.Folder = (Get-View $vm.FolderId).Name
          $row.HDname = $_.Name
          $row.HDformat = $_.StorageFormat
          $report += $row
     }
}
$report | Export-Csv "C:\VM-disk.csv" -NoTypeInformation -UseCulture

____________

Blog: LucD notes

Twitter: lucd22

Tags: VMware

Similar Questions

  • How to get the query execution time without running...?

    Hello

    I had one condition... as follows...
    I had 3 sql statements. I need to run only sql what runtime is very less.

    Can someone help me, how to get the time query and run this query without using explain plan... ?

    Thank you
    Rajesh

    I can't think in any way at all to get the query execution time without running the query.

    You might get an estimate ( approximation ) If you are using explain plan.

    But you have governed to explain plan for a reason, so I can't help you.
    Why you do not want to use don't explain plan?

  • How to get the value with DBSequence in EL links

    Hello

    I have a DBSequence type id and check if the value is null or positive

    #{bindings. Id.inputValue! = null and links. Id.inputValue > 0? {"Edit": "Create"} does not work because the links. Id.inputValue returns a DBSequence and cannot convert Long

    How to get the value?

    JDev 11.1.1.6

    You can try this:

    #{bindings. Id.inputValue.sequenceNumber.value! = null and links. Id.inputValue.sequenceNumber.value > 0? {'Edit': 'Create'}

    Jean Lou

  • How to get the Installation of Vista from Toshiba disk?

    I work with Microsoft technical support to solve a security problem on my Satellite Pro A210 and were now required to use a Vista installation disc.

    Microsoft says that I am entitled to an installation of the original provider of my kit disc - Toshiba. But we're not happened with my laptop - only a recovery disc has been provided.

    How can I go on the acquisition of an installation of Vista from Toshiba disk?

    Kind regards

    Kevin C.

    With Toshiba laptop, you'll get the Toshiba CD/DVD facilities only.
    This recovery media is designed for your laptop only.

    Installations from Microsoft Vista disc is not given and there is no way to get it from Toshiba.

    Microsoft can offer that you support if you only use Microsoft installations CD. Using this disk, you can install and repair Vista on each portable office/computer option. Unfortunately with the restore disc it will not work.

  • How to get the real serial number of hard disk in a form

    Dear all,

    Can I get the serial number of the disk hard real in a form?

    Help, please


    Thank you

    It seems that HOST() set some environment variables, then the path to the wmic.exe is not found. The following works for me:

    host('cmd /c "c:\windows\system32\wbem\wmic path win32_physicalmedia get serialnumber"'||' > '||'c:\AA.TXT',NO_SCREEN);
    

    François

  • How to get the OS on labtop without recovery or software CD?

    Hard drive of my labtop came out and supposed to be the backup OS was disk a hard artificial created on the main hard drive.  I was not allowed to do recovery CD.  I have the COA on the labtop but I just need to know my next course of action.  Is it possible to get it from the hard drive or not?  If it helps my labtop is a Compaq Presario V2610 with AMD Mobile Sempron 3000 + 1.8 Ghz if that helps.

    Thank you
    Gabe

    Hello Gabriel,

    Here, your best bet is to contact the manufacturer on this issue and see if you can get a recovery of their own media.

    Best regards

    Matthew_Ha

  • How to get the chat with BBM feature after third party app integration.

    Hello

    I downloaded SDK1.3 BBM and added to my application. I used following code to integrate BBM to my request.

    Bridge of BBMBridge = BBMBridge.getInstance ();
    BBMPlatformContext platformContext = bridge.getBBMPlatformContext ();
    Configure the listeners for the context
    ContextListener MyBBMPlatformContextListener = new MyBBMPlatformContextListener();
    platformContext.setListener (contextListener);

    here how to invite chat feature, sponsored... etc, as all the features BBM. After that BBM successfully verified, if I click the same button to reopen anything open. What I have to write something more. Please help me in this regard. If could provide all related code for this process would be appreciated.

    Please give me detailed explanations.

    Screen Muncher does not actually all contacts.  It makes a request to BBM and provides data to share.  The screen select the contacts that you see does not work inside Screen Muncher it's BBM code provided.  Then Screen Muncher does not get access to contacts that appear on the screen.

    You can see the same kind of thing when test you the SDK BBM.

    "I want to get all BBM contacts available in the machine. '" But I could not contact unless the contact who has my application installed.

    What you see is correct.

  • How to get the record with a tank of extra space

    Hi I have a value which have several entries with the same value but some record have more space, how to know which record


    Ex:


    'abc1234 '.

    'abc1234 '.

    'abc1234 '.


    I want to know 'abc1234' record


    in this table, I have more than 50 million records.

    Maybe this:

    SELECT s FROM T WHERE s LIKE '% '.

  • How to configure the screensaver with password without needing the password to connect?

    Under 'control userpasswords2', I didn't put no password required to connect, and I'd like to set password for the screen saver if computer 30 minutes of inactivity.

    Anyone have any suggestions on how to do it?
    Thanks in advance for your suggestions

    If you want a CV of login password for your screen saver, you must create a user account that is password protected.

    That's what you have asked us how to do here?

    See you soon.

  • How to get the folio on iPad without going through the Adobe servers?

    Hello

    Is there a way to create a folio in InDesign and transfer manually on the Viewer Adobe app on an iPad?

    Reason being that download the folio on Folio producer seems to take forever and is far too unreliable given the urgency of dealing with creative projects.

    Thank you

    REDA

    Mac only:

    Attach the iPad to the computer via the USB cable and open Adobe Content Viewer. In the Folio Builder Panel, select the folio and then choose Preview > Preview on "device name".

    There is no way to do it on Windows.

  • How to use the recovery with a new ssd disk after the death of original hard drive

    I thought I had a simple fix/upgrade for my dv5 - 2077cl.

    decided to replace the defective hard drive with an SSD. couldn't afford a 240 GB size but it's big enough for my needs.

    I installed the new drive easily and cycled through my 4 recovery disc reinstall the minimum overlap. After you delete the last record, the screen goes gray and there is a cursor in the top left corner for more than 10 hours.

    I finally it turned off and tried again two times the same results. I removed the DDI and run disk management on it from my other laptop and an external cable to remove the partiion and create a single partition. Tried to install windows xp on a disk that I own this isn't an update or restore disc thinking I might switch to windows 7 32 bit because I own and upgrade the disks also. even if it is a 64-bit system, but I do not have any disk 64-bit except the recovery disks that didn't seem to work.

    When I ran the xp it seemed to work but then I got the blue screen that said there is no drivers for the SDS (the error is as follows stop0x0000007B (0xF78D2524, 0XC0000034, 0x00000000, 0x00000000))

    So I guess I need to have a windows 7 install disk rather than the recovery discs?

    the SSD is a Silicon Power S70 240 GB.

    any suggestions?

    Recovery discs usually require a hard drive of equal or greater capacity. XP doesn't have SATA drivers Sockets.

    If you can read the Microsoft Windows 7 of 25-character license key, you can download a Windows 7 ISO file to burn to a DVD or USB flash drive. The version must match that's installed on your PC as shown on the sticker COST Microsoft fixed on the bottom of the laptop. Like Windows Home Premium.

    Links to downloads of Windows 7 ISO files:
  • Re: Lost - recovery disc how to recover the satellite A100-649 without a disk?

    Can Hi, please someone help? We have lost the disk and need to retrieve Windows on laptop Satellite A100-649.

    Thank you!
    Maggie

    Ilay is right; recovery for A100 disk can be more pronounced due to the age of s for laptop.

    Do as described by Ilay. use a Microsoft disc to install Windows System. The drivers are available for download from the Toshiba driver page.

  • HOW TO GET THE LOGIC OF A LINUX HOST DISKS, TO CREATE RULE

    I need to create a rule to monitor some logic to a linux host, not all discs.

    Thank you!!!

    You can use a scope query something like this:

    LogicalDisk where name = '/ etc '.

    or

    LogicalDisk name in {' / ', '/ etc', "foglight"}

    or

    LogicalDisk where name match '. * tc.*'

    or

    LogicalDisk where name like '% tc % '.

    You can extend this to only certain hosts with something like this:

    LogicalDisk where name = '/ etc' and monitoredHost.name = 'abcdef1234.domain.com. '

  • How to configure the mode of kiosh for thin clients on windows server 2008

    I have an eight Thin Clients who will use RDP to access (Terminal Server Services) Remote Desktop Services on a Microsoft Windows Server 2008 R2 Standard. I would like to set up a group of users for these Thin Clients to be in a mode Kiosh so that they have very limited capabilities, can not download and run anything, unable to save anything in the computer except on the desktop and when they log off and back on everything, they had disappeared because the mandatory profile is loaded again.

    I'll have another group that more access is needed.

    Kiosk.

    Post in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • How to get the Western Digital screen to appear without having seen the image of office as well.

    Original title: WD1TB MY book was installed with Windows XP and the deskyop "bleeds" through parts of the WD Menu. How can I get the WD screen appears without the office showing?

    WD1TB MY Book was installed with Windows XP and office "bleeds" through parts of the WD Menu. How can I get the WD screen appears without the office showing?  I can't read the instructions when this screen appears partially gray with the news of WD and the desktop showing through the other box of WD.

    Hello

    You can try to connect the WD 1 TB My Book on another computer running Windows XP and see if the problem still occurs.

    You can also get in touch with support from WD for assistance on the issue.

    Contact us Support WD

    http://support.wdc.com/contact/index.asp?wdc_lang=en#us

    WD community

    http://community.wdc.com/T5/my-book-for-PC/BD-p/BoardExample

Maybe you are looking for