Report to the size of the list of snapshots that are used by a virtual machine

I'm looking for to add to my report to the size of all the snapshots that are currently used by each virtual machine.  For example, I'm already reporting on space put into service and used space - but how much space are using snapshots?   Is there a way to get this data using powerCLI?

Thank you!

Get-Cluster-name NOMCLUSTER | Get - VM | Select

Name, MemoryMB NumCpu, Description, PowerState, ProvisionedSpaceGB, UsedSpaceGB, Version, VMHost, ResourcePool,

@{N = "HDsizeKB"; E={($_. Hard drives | Measure-Object-CapacityKB property-sum). Sum}} folder,.

@{N = "Datastore"; E={($_ | Get - Datastore). Name}},@{N="#snapshots '; E={($_ | Get - Snapshot). County}},

@{N = 'Name of the OS'; E={$_. Guest.OSFullName}} | Export-Csv "C:\report.csv" - NoTypeInformation

The cmdlet Get-SNapshot in PowerCLI 4.1 returns an incorrect value. See the size snapshot by Dimitar and Vitali.

And they display a script, called getsnapshotsize - 1.ps1 that returns the correct value.

You can use this script to your script as follows:

(1) download the script and save it in the directory where your other scripts

(2) call the script of the post in your script and use the size of return value

Something like that

Get-Cluster -Name clustername | Get-VM | select Name,MemoryMB,NumCpu,Description,PowerState,ProvisionedSpaceGB,
     UsedSpaceGB,Version,VMHost,ResourcePool,
     @{N="HDsizeKB";E={($_.Harddisks | Measure-Object -Property CapacityKB -Sum).Sum}},Folder,
     @{N="Datastore";E={($_ | Get-Datastore).Name}},@{N="#Snapshots";E={($_ | Get-Snapshot).Count}},
     @{N="OS Name";E={$_.Guest.OSFullName}},
     @{N="Snapshot size MB";E={(.\getsnapshotsize-1.ps1 $_ | Measure-Object -Property SizeMB -Sum).Sum}}     |`
     Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture

____________

Blog: LucD notes

Twitter: lucd22

Tags: VMware

Similar Questions

  • How can I see the list of programs that are allowed through the firewall?

    How can I see the list of programs that are allowed through the firewall?  I can't find the list.

    Open Windows Firewall and select 'allow a program or feature through Windows Firewall. You can then view or modify programs all allowed.

    Jim

  • What is the list of updates that are needed to transform to SP3?

    What is the list of these KB upgrades that are needed to transform to Service Pack 3. I want to install them manually.
    I currently have:
    KB942288
    KB940157

    And want the whole list. If you don't know then you can go to: Control Panel > Add / Remove Programs if you are on the Service Pack 3 update...

    To 'turn' to SP 3, you must actually install SP3. There is no list that "transforms".

  • What is 'Quickactionbox' appliction? He is constantly provide in the list of applications that are running in the Task Manager on several occasions.

    Here you can see the problem. What is this thing?

    Hi Benjamin,

    Thanks for posting your query on the Microsoft Community.

    According to the description of the problem some application named QuickActionBox is running and showing in the Task Manager.

    If you think that this application is not known to you and you think that's not important, then you can uninstall it in the list of programs. But before you uninstall this application, I recommend to create a system restore point and try to uninstall the application so that if this application is important, then you can come back to this point again.

    To create restore point, you can see the article mentioned below.

    A restore point is a representation of a stored state of your computer's system files. You can use a restore point to restore system files from your computer to an earlier point in time. Restore points are created automatically by the restore of the system each week and when System Restore detects the beginning of a change to your computer, for example when you install a program or a driver.

    Create a restore point

    You can uninstall a program from your computer if you no longer use, or if you want to free up space on your hard drive. You can use the programs and features to uninstall programs or to change the configuration of the program by adding or removing certain options.

    Uninstall or change a program

    Hope it would help. If problem persists always post back with the current state of your computer and the result of the proposed suggestion, we will be happy to help you.

    Kind regards

  • Command to list all the hard files that are attached to a virtual machine

    Hi people,

    I am documenting our infrastructure. I would like to a command that lists all the vmdk files and the virtual machine, they are attached. I'm sure that I've done it before, but I don't remember the command. Thank you

    in advance.

    Paul

    You could use Powershell and make a request to Virtual Center, if they are available:

    A basic example:

    SE connect-VIserver

    Get - vm | Select Name, @{Name = "VMDK disks"; {Expression = {$_ | get-harddisk | select filename}}

    / Rubeck

  • applications in the list of downloads that are not (2.1)

    When I look at an application downloaded with

    Settings > Applications > manage Applications

    I see two who do not belong (the filter is set on downloaded): com.android.gallery and com.android.inputmethod.latin

    If I go the market app and view the downloaded applications do they not appear. I know that they are part of the android os, but it's annoying to have in the list of downloaded applications. Is it possible to get them off the coast of this list? I tried to reboot the device. And it happened when I got the 2.1 update.

    IM willing to bet that they are older applications which replaced with the update. I uninstalled both on my phone and have not had a problem. I think it's the old Gallery and an old file entry for the keyboard or maybe text-to-speech or something. Whatever it is, I uninstalled them and haven't seen any problems based on my Droid, or any of my applications. I hope this helps.

  • How can I get a list of jobs that are planned for the days of the future

    How can I get a list of jobs that are planned for the days of the future?

    In a previous article, I found a query that lists the scheduled tasks that are already running. Can I get a similar request for the future days which is compiled?

    Hi sreedevir,

    SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, jobrun.*

    FROM jobrun JOIN jobmst ON jobmst.jobmst_id = jobrun.jobmst_id -joining tables jobmst and jobrun

    WHERE jobrun_proddt > = dateadd (dd, 1, datediff (dd, getdate())) 0, -future dates

    AND jobmst.jobmst_type = 2 -given jobs (and not groups)

    ORDER BY 1, 2 -Sort by name of the parent, then by task name

    Feel free to make any changes to your reporting needs

    ARO

    The Derrick

  • I need a copy of Visual Studio 2008 while I have the same version of Crystal Reports that are used by one of my clients.

    Buy Visual Studio 2008

    I need a copy of Visual Studio 2008 while I have the same version of Crystal Reports that are used by one of my clients.

    Can I buy Visual Studio 2010 with MSDN Essentials and then download and use Visual Studio 2008

    Hello

    Welcome to Microsoft Windows 7 answers Forum!

    Thank you for visiting the Microsoft answers Forum.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums

    I hope this helps.

  • How do access you the list of programs that start when you start your computer?

    How do access you the list of programs that start when you start your computer?

    Saturday, January 19, 2013 19:48:16 + 0000, Psylly wrote:

    How do access you the list of programs that start when you start your computer?

    First of all, note that you should be concerned all the programs
    starts automatically, not only those who enter in the system tray.
    Not all the programs auto-start manifesting by an icon in the
    Status bar.

    On each program, you don't want to automatically start, check its
    Options to see if he has the choice of not start (make sure you)
    Indeed choose not to run, not just a "don't show icon.
    Optional). Many can easily and better be arrested like that. If that is not
    work, run MSCONFIG from the start. Run the line, and then click the Startup tab.
    Uncheck the programs that you do not want to automatically start.

    However, if I were you, I wouldn't do it just for the application of
    the minimum number of running programs. Despite what many people say
    You should be concerned, not with the way that a lot of these programs
    you run, but who. Some of them can degrade performance severely, but
    others have no effect on performance.

    Don't stop all programs to run willy-nilly. What you need to do
    is to determine what each program is, what its value is up to you which
    the performance cost is its running all the time. You can try
    Internet search and ask questions about the details here.

    Once you have this information, you can make a smart informed
    decision on what you want to keep and what you want to get rid of.
    Ken Blake, Microsoft MVP

  • Web sites appear in the form of lists of hyperlinks that are not interactive.

    I can't use certain websites, such as Charter.net and company store because they appear as a mishmash of lists of hyperlinks and pictures.  It happened all of a sudden this week.  Besides the change to Mozilla or another browser, what can I do to fix this?

    Hi Keverh,

    Welcome to the Microsoft community. According to the description of the problem sites appear in the form of lists of hyperlinks that are not interactive. Provide the following information:

    ·         Did you do changes on the computer before the show?

    ·         You get the error message?

    ·         You use Internet Explorer? If so, what version are you using?

    I'll help you with this problem. I suggest you follow these methods.

    Method 1: Follow the steps in the article.

    Can't access some Web sites in Internet Explorer

    Method 2: Perform an optimization of Internet Explorer.

    How to optimize Internet Explorer

    Note: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    You can also read these articles for more information:

    Why a few blank pages or incorrectly displayed in Internet Explorer?

    Why can't I view some websites?

    I hope this helps. Let us know if you need help with Windows.

  • Algorithm to the list of snapshots

    Hello

    When I analyze the file VMSD (containing info on snapshots) of a virtual machine, he mentions several deleted old clichés...

    However, when I use the command "vmrun listSnapshots VMFILENAME", it gives me only real snapshots available, i.e. those available via the snapshot GUI, not the complete list manager listed in the VMSD file.

    My conclusion is that the algorithm to calculate the list of snapshots takes first all snapshots in the VMSD file and for each one he performs certain kinds of check... If the check fails, this snapshot is removed from the final list of snapshot.

    Everyone knows what is this review?

    PS: I am currently using VMWare Workstation 5.5.3, but do not hesitate to post your results on the other versions as well.

    Thank you

    This algorithm is NOT supported (i.e. we can change at any time), but it also has not changed in a long time...

    The details of your algorithm is missing is the pair key/value "snapshot.numSnapshots = N".  Valid snapshots are written as snapshot0... snapshot(N-1); anything snapshotN and above is given outdated.

  • Running game - this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program

    I'm having the same problem that is described in this topic: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/f15edea1-f88f-492e-bb42-4db2b06fdf05

    My error message is: "this version of the file is not compatible with the version of Windows you are using. Check your computer's system information to see whether you need a x 86 (32 bit) or an x 64 (64-bit) version of the program and then contact the software publisher. »

    I tried to run the program in question (Castle of the winds) in each mode of compatibility that is on the list and it is giving me this error message every time. Other people have managed to get the program to work, so I don't know, it does not work on Windows 7, but I can't make it work for me.

    Help?

    Hi autohaptic,

    (a) on the computer what Edition\Version of Windows 7 operating system do you use? What type of system? 32-bit or 64-bit

    If you are running Windows 7 64-bit operating system, you can install the 64-bit computer game program.

    (b) on the computer which the castle of the winds game version are you running?

    I want to clarify, if you try to install the program or trying to run.

    Step 1: Put the computer in a clean boot, and then try to run the game

    Follow step 1 in the link below,

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

    http://support.Microsoft.com/kb/929135

    Important: n ' forget not the computer to start normal follow step 7 in the link.

    You can consider the right version of the game for your computer relocation program.

    Make older programs in this version of Windows

    http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Copy of the virtual disk for use by another virtual machine

    Hi all! How can I copy a virtual disk file to a location for future use by another virtual machine? I tried to just copy the hard, but it did not work for me - the copy is about 1 KB size and I can not add it as a hard drive on another virtual machine. Can someone help me?

    OK, so this client web vSphere that you use, in this case browse datastore doesn't show you the two files.

    Please follow the steps below

    Please go to Cluster & host inventory

    Select your ESXi host

    go to the tab 'Manage'-> settings-> Security-> Service Profile, and then click the button CHANGE

    Start the SSH service.

    If please use WinSCP to connect to your Esxi host and navigate to the folder of the virtual machine as in the screenshot to the suite, I navigated to a folder that is my VM name: Win10A

    and it has a virtual disk, if I want to take the virtual disk of this virtual machine to a different VM, I need to copy the two files that are highlighted.

    the two are to train your virtual disk.

    Download these two files and download them to another folder where you second VM resides, then try to tie it with this virtual machine.

  • I just want to know the real web linking to the homepage of firefox that I use comodo dragon of ice which is based firefox and I want to use firefox by default in

    I just want to know the real web linking to the homepage of firefox that I use comodo dragon of ice which is based firefox and I want to use firefox by default in

    I see you put the tag b well in there, too. It was a mistake on my part I've already edited my original post. I tried to put about: fat home using HTML tags and I went too fast. Try Subject: House. It should come with zefa logo and below that will be a Yahoo! Search box.

    My first answer as marking and re-polished solution.

  • During the installation of Microsoft Flight Simulator 2004, the following error occurs: the version of this file is not compatible with the version of Windows you are using.

    Former title: Microsoft Flight Simulator will not install on Windows 7

    I have Windows 7 Home Premium 64-bit.  I try to install MFS 2004.  The first 3 discs work fine, but when I insert disk 4 to complete the installation, I get the following error message:

    "The version of this file is not compatible with the version of Windows you are using.  Check your computer's system information to see if yo need a x 86 (32 bit) or x 64 (64-bit) version of the program and then contact the software publisher. »

    I have a Dell Studio 1558

    Intel i5 - 520 M

    ATI Mobility Radeon HD 5470 graphics card

    8 GB RAM DDR3

    What can I do?

    Hello

    1. which edition of Windows are you using? Is - this edition is 32-bit or 64-bit?
     
     
    Given that the game is compatible with Windows 7, I suspect that the conflict can be 32-bit or 64-bit architecture.
    The link below shows the compatibility of this game with Windows 7.
     
     
    Method 1.
    We must ensure that the edition of the game must correspond with the operating system.
    If you use 64-bit in this game, you need the 64-bit Windows to install it.
    Method 2.
    If the above information matching I you recommend to start the computer in clean condition and then try to install the game.
    See the article below for instructions on how to start your computer in a clean boot state.
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • Where is my Firefox button? I tried to turn off the menu bar, but nothing helped. Win 7, FF 29

    Also curious to see how these things change on my computer without my wink. I realized there are necessary basic changes and other changes my mind of systems of operation and applications, but time to my characteristics are changed with no explanatio

  • K1 abandoned? Anyone know?

    I try to get a new K1, the motherboard has been replaced and now it does the same thing again, circles of Lenovo and Nvidia Tegra display green, allows to switch between the two logos. I am told the K1 is interrupted and the retailer will not get mor

  • VISA does not recognize the remote system max

    I tried to configure the instrument cards in a chassis SMU, and I'm unable to get a VISA to recognize.  Reading some other posts related to names of resources VISA, I found that you should be able to drag and drop devices Max NOR in a Labview diagram

  • How to create a start button

    Every time I run the VI and the VISA resource is not set correctly it automatically throws and error "Error 1073807346 occurred when opening VISA to Agilent 34401.lvlib:Initialize.vi-> 34401 DMM Monitor.vi" My intention of the 'Measure' button is to

  • T420s Windows 8 Unknown device

    I installed Windows 8 x 64 recently and installed all the drivers. I was pretty sure that all devices have been installed. I had a problem of power management of hardware before installing Windows 8 I was hoping was a software problem that reinstalli