Need help for reporting the total capacity of the DS in service?

I got this LucD script some time ago and I would like to know if it is possible to modify this script to display the capacity total datastore provisioned in multiple VCenter in different sites in view data warehouse | Summary tab. GroupBox ability ?

$report = @()
foreach($cluster in Get-Cluster){
    Get-Datastore -VMHost (Get-VMHost -Location $cluster | Select -First 1) | `
    Sort-Object -Property Name | ForEach-Object {
        $row = "" | Select-Object -Property Cluster, Datastore,CapacityGB,FreeSpaceGB
        $row.Cluster = $cluster.Name
        $row.Datastore = $_.Name
        $row.CapacityGB = [Math]::Round($_.CapacityMB/1KB,0)
        $row.FreeSpaceGB = [Math]::Round($_.FreeSpaceMB/1KB,0)
        $Report += $row
    }
}
$report | ft -AutoSize

Any help would be greatly appreciated.

Thank you.

Of course, try this

$report = @()
foreach($cluster in Get-Cluster){
    Get-Datastore -VMHost (Get-VMHost -Location $cluster | Select -First 1) |     Sort-Object -Property Name | ForEach-Object {
        $row = "" | Select-Object -Property Cluster, Datastore,CapacityGB,FreeSpaceGB,ProvisionedGB
        $row.Cluster = $cluster.Name
        $row.Datastore = $_.Name
        $row.CapacityGB = [Math]::Round($_.CapacityMB/1KB,0)
        $row.FreeSpaceGB = [Math]::Round($_.FreeSpaceMB/1KB,0)
        $row.ProvisionedGB = [Math]::Round(($_.ExtensionData.Summary.Capacity - $_.Extensiondata.Summary.FreeSpace + $_.Extensiondata.Summary.Uncommitted)/1GB,0)
        $Report += $row    }
}
$report | ft -AutoSize

Tags: VMware

Similar Questions

  • Hello, I need help for cancel the payment on my adobe account.

    Hello, I need help for cancel the payment on my adobe account. I'm from Peru, Im paying a monthly fee as a student. Help, please...

    Cancel your membership creative cloud

  • Tecra R840 - need help for installing the SSD

    Hello

    Sorry, again, but I really need help with that?
    My new ssd (arriving in a few days) is a Plextor M5P which is 7 mm thick! My Tecra R840-16J have a thickness 9.5 mm HDD and what I've seen is no caddy!
    I would be grateful all the tricks for installing the ssd drive in my Tecra!

    Thanks for your time,

    Paulo

    Hello Paulo

    As far as I know that some models are available with drive HARD and some with SSD these models with SSD have small SSD support. SSD is fixed by 4 screws in this medium.

    I put t really know how to help you now. Maybe you should contact the nearest Toshiba service provider and ask for help. I think they can check the part number of this door - or maybe order one for you.

  • NEED HELP FOR CANCEL THE SUBSCRIPTION AS SOON AS POSSIBLE!

    Hi I need help, cancel a subscription to adobe creative cloud, the thing is that I read the terms and how to cancel and he tells me that I am to be charged an additional amount of the subscription, as it exceeded use of 30 days or something, but I am not the user of this subscription as my brother used it for his work for the College , and I was assured by him that there can be no agreement to pay extra fees at the cancellation, surely you can see many hoe of a stress for me because I can afford is more to keep being charged for a subscription that is undesirable, I can't communicate with my brother either as it wandered off and is no longer, we are in contact It's very frustrating because I read the old process even on how to cancel it over a hundred odd times now, and I am amazed how easy ADOBE to subscribe but de-s' subscribe, it seems a bit of a scam too me just to get more money, I do not wish to be charged a residual amount, or whatever it is, all I want is to stop money coming out of my account free of charge! If a member of staff could please support me on that I would be very grateful that I have a lot more important accounts payable and simply cannot continue in this never-ending cycle.

    Thank you.

    Sam, here's what you can try: phone support | Orders, returns of trade

  • Need help for installing the drivers on Satellite A80

    Hello
    I just reinstalled windows xp and have some problems to install my windows drivers. I lost my original cd and downloaded the drivers from your site. I followed the instructions but when I tried to find the driver for example the controller drivers network, windows can't find them. I placed them on my desk, so that shouldn't be the problem.

    I have a toshiba Satellite A80, with an nvidia card. If you would like more information just ask and i´ll try to give them, thank you for your effort
    Greetz Mex

    Hello

    The compatible network driver is placed on the page of Toshiba. I know, I checked the page.
    More like in the post above suggested, you must decompress the folder of the driver first before you start the installation of the driver.

    What you should also know, is that the proper installation order is necessary. Installation instructions, you will find on the Toshiba site. Download this document and follow the guide line.

  • I need help for cancel the subscription.

    I can't cancel the subscription and I do not use the product, I need it to stop hitting my credit card (that I can't delete either)

    Help please!

    Cancel http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html

    -or by phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • I need help to get the window Vista Service Pack 2

    Can someone help me how can I install Windows vista Service Pack 2 on my computer... where?

    Free unlimited installation and compatibility support is available for issues related to Windows Vista Service Packs. Availability of support chat or messaging differs depending on your location. Some questions may require more support for which it has advanced a charge: http://support.microsoft.com/oas/default.aspx?prid=13014&gprid=582034 ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I need help for the upgrade of my current system.

    I need help for the upgrade of my current system.

    I have SBS 2008 with (Exch 2007, SQL 2005, Sharepoint, backupexec 2010 for sbs) licenses.

    I want to make the larger environment using the following:

    (1) apply Virtualization

    (2) apply to the failover process (clustering)

    "(3) the environment must support adding server terminal server, ERP server, exchange server, domain controller, backup manager.

    Storage 4) that supports Raid (1 and 5)

    UTM excellent 6) that supports (SSL VPN, VPN Global)

    suitable backup solution 7)

    (8) good antivirus for clients

    my questions:

    (1) can you provide me with a good design for this environment

    (2) should I choose what operating system:

    Microsoft datacenter or company

    I know datacenter provide us the unlimited VM but needs per processor license

    so if I have two Grouped servers I want to buy 4 licenses

    and just 4 VMs per company license... to say that we have two servers and maintain 8 vms so wat happened if 1 goes down... How can I migrate the 4 virtual machines on the server failed to another server group... ? should I buy enterprise license?

    (3) if I get the SAN storage for data... How can I save this storage... should I get another SAN?

    (4) how can I upgrade SBS stad single server (windows standrad) without losing the licenses as Exch 2007, SQL 2005, sharepoint.is it a must to buy an edition full std server or there is a way to upgrade (license wise, I mean)?

    (5) what about win2k8 license for VM:

    lets say we have physical that has windows license so that enough to have windows for VM or should I buy windows for VM licenses?

    (6) can I use backExec license for SBS with windows 2008 standard

    (7) who better to virtualization AMD or INTEL

    (8) hyper V or VMware?

    (9) what of Microsoft data protection Manager... is this good?

    (10) what virtual machine manager? What are the benefites keys

    Thanks in advance

    Hello AnasAI,

    You can find the Server forums on TechNet support, please create a new post at the following link:

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

  • I need help for activation of the real administrator account.

    I have a problem with Adobe reader 9 standard, Adobe customer service asked the unhide real administrator account before you can continue to help me.

    I need help for that.

    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    http://www.howtogeek.com/HOWTO/Windows-Vista/enable-the-hidden-administrator-account-on-Windows-Vista/

    Read the above info.

    See you soon. Mick Murphy - Microsoft partner

  • Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hello, need help for Adobe Reader DC playing animation files that are specified in the pdf output by script Latex Beamer. My Adobe Reader DC refuse to open any format that I gave him.  Thank you very much

    Hey ihorl18351266,

    Please note that you can open PDF files using only the CD player. Any other format will not be supported by the software.

    Kind regards

    Ana Maria

  • Need help to diagnose the regular system analysis on iMac - processors maxed out

    I need help to identify the cause of a problem that occurs at least 2 - 3 times per day using my iMac (27-inch, mid 2010) running 10.11.5.

    I will use my iMac and then all at once things will start to really trolling. To the point of being completely unusable. Even if I'm able to move my cursor, then click to drag the windows around the screen nothing does really.

    I have iStat menus running so that can see graphics in my menu bar that all 4 cores are completely overfished. Occasionally, I was fast enough to launch the activity monitor to try to see what applications / services are responsible for, the use of % CPU column is completely empty of values, so I can't identify the culprits in a reliable way. I try to keep that column sorted by % CPU use in the hope that he could reveal something and normally it's the kernel_task who is up there.

    I use a Wacom Bamboo dated Tablet (MTE - 450 has) instead of a mouse, and at one point, I was convinced the pilot of PenTabletDrive it is based on was to blame. I contacted Wacom on this subject, and although there is no known issues they pointed out that although the latest drivers will allow me to use the tablet that they no longer support older devices. I was wondering if there was a problem of communication between the device and a driver that is no longer supported. I installed the latest driver supported for my tablet, but the problems persist.

    It may be interesting to note that, when my computer is in this semi-frozen state, I am able to launch the window enough force and quit all open applications leaving me with only the Finder. I guess that means that there are none of my apps running and it is probably one of the services. If I restart the Finder system grinds to a completely enclosed holt.

    I hope someone can let me know what I can find in the Console or elsewhere to help me finally zero in on what is to blame. I can share a log if that helps.

    Thank you in advance!

    Information that might be useful:

    Kept by I tend to be running: Adobe InDesign, Photoshop, Acrobat (all CC 2015), Mail, Safari with several tabs & Dropbox sync constantly.

    Download and run EtreCheck, created by one of his own assistants here in CSA. It is a diagnostic tool that is very useful for us to find problems. It will also give us additional specifications on your Mac. After his execution after the logfile here. It will never contain any personal information.

  • Need help to define the best settings of the picture on my TV 32RL938

    I recently bought a Toshiba led TV 32RL938 I need help for my photos, anyone help me put the best images for movies and channels... contrast, brightness, standard, dynamic...

    Each new product is document s user manuals. What you need is described here, so I think that you should not waste your time here but check this in manuals and test it on your TV.

    You must learn how it works.

  • Need help to remove the zeros on the right

    Hello.

    I need help to replace the zeros in the string.

    I have a string which is the output of the network packet. There are a few trailing zeros in the package.

    I don't see them in normal mode, but the size of the string tells me that it's bigger then it looks like.

    When I pass in hexadecimal mode, you can see zeros.

    I tried to use the find/replace function allows you to search for 0 and replace it with an empty string constant. But, for some reason any, that he took no zeros.

    I need to stop the string that follows * 69.

    Show your code.  You won't find and replace with all zeroes.  These 00 in hex mode they are null characters.  (not printable byte with a value of zero).  You need search and replace on that character.  (replace string should look like 00, when it is set to display the hexadecimal code.

  • Need help for optical safety circuit.

    I buy these parts and prototype with real components, but since I multisim, I thought it would be nice to create the circuit and maybe work through issues I can practically.

    I need a circuit that takes 120 VCA, generates 5 VDC and 1.5Vdc power of optical transmitter and receiver.  I actually use a data port because he has great range and is pretty cheap.  Rather than send the binary code well I just send a light stead that is broken or not broken through doors and windows in my house.  Then the receiver sees this as an entry and order a relay.

    I tried several voltage regulators that come with multisim, but I get an error of execution of my circuit.  Really I can't the 120 VAC to power levels necessary for the functioning of the optics.

    Otherwise I might want to run on a system 120Vdc with battery backup, so throw a 120Vdc up to 20 v DC switching power supply - but I have not found a SMP in the library which takes 120 as input and as output 20.

    Basic plan: 120VAC source-> transform to 24Vac-> Full bridge rectifier to ~ 20 v DC-> voltage capacitor filter on the input of two voltage regulators (1 to 5 VDC, 1 to 1.5Vdc) - then circuit since the two power supply of the transmitter and the receiver.

    I just need help for 5V and 1.5V, from there, I know that the real world circuit will work component tests already carried out.  Thanks for reading.

    I didn't Multism so I can't advise you on the compatible models. I ran the model on semiconductors with slight modifications of format on my SPICE simulator based on Berkeley Spice 3f5. I had to change the format of model resistance semiconductors appeal but has not changed any values.

    The output of your power supply circuit 3 (with 5 V, not the 1.5 V regulator regulator) was 4.99995 V.

    There are a few messages about changing templates published for compatibility Multisim woth. You can search those to see if there are any suggestions on what you'll need to fix in the model.

    Lynn

  • Need help in using the ActiveX to retrieve a VARIANT

    Need help in using the ActiveX to retrieve a VARIANT.

    Variant is shown as var {VT_Ul1, 1} in debugging

    By using the following

    HR = CA_VariantGetShort (& var, &value);)

    I get 0 for my answer instead of 1.

    Answered my own question.

    VT_Ul1 is an unsigned char and not a short.

Maybe you are looking for

  • Empty window after starting the Sierra

    After the upgrade to Sierra tonight, a new problem has started to appear.  Every time I have start or restart my computer, an empty window (titled 'Window') is displayed.  It cannot be reduced to a minimum, but can be expanded or closed.  Any thought

  • Update graphics card on Pavilion

    I have a Pavilion P6719 desktop computer.  My son is unable to play games 3D on Steam, and so I was wondering what I should update the graphics card.  I was also told I need upgrade the power supply because it is 250 watts.  No idea how much these im

  • Why internet security avg check my yahoo mail

    Team dear Microsoft Answers Am writing to you today because I'm confused how such a safety concern as this could happen and I think I've seen this more than once. I am getting to the bottom of the mail sent to tell me how the mail had been checked by

  • Problem with fixing XP files permissions

    Hi all I am having some problems with the permissions of the files on my Windows XP laptop. The crux of the problem is that I can't copy/move/delete some files even if ownership and file permissions are all correctly. Even within a directory, some fi

  • Encryption AAA

    Hello Wisht just ask what the default encryption used by ASA during the exchange of name of user and password with a radius (Windows Server) server.  And is it possible to change the encryption (3des, aes-128)? Thank you.