Try to list the VM and their associated records

Hi all

I am trying to list all my vm and all their vmdk files associated.  I am running this:

Get - vm | Tri-objet name. Get-hard drive which returns the following list:

CapacityKB / persistence / file name

What I'm trying to achieve is:

VM name / CapacityKB / file name

Any ideas what I am doing wrong?

Thank you

You use the latest version of PowerCLI?

Do

Get-PowerCLIVersion

Which should return

PowerCLI Version
----------------
VMware vSphere PowerCLI 4.1 build 332441 U1

You can use the Get-Member cmdlet to see the properties of a level 1 object

Get - VM | Get-hard drive | Get-Member

To see the complete object, you could do

Get - VM MyVM | Get-hard drive | Format-Custom - depth 2

Tags: VMware

Similar Questions

  • List virtual machines and their DNS server settings

    I try to list virtual machines and their primary and secondary DNS server addresses.  Are the cmdlets in vmware that can do this, or would I need to use the invoke-script command.  I have the list of virtual machines and I want to list them all with their DNS server addresses.

    I tried to use the wmi objects such as:

    Win32_networkadapterconfiguration get-wmiobject - computername "servername |

    Select name, DNSServerSearchOrder

    It would give me the specific server name and addresses of dns.

    But I need the list of servernames which I would like to list some and their

    DNSserversearchorder settings (DNS settings)

    I tried to put the servernames list in a text file using

    Get - vm | Export-csv C:\computername.txt - notype

    Then I used the get-content command and the pipe in the get-wmiobject

    command like below:

    $servers = get-Content c:\computername.txt

    ForEach ($server in $servers)

    {get-wmiobject Win32_networkadapterconfiguration - computername $server

    | where {$_.} IPEnabled-fits 'True'} | Select-object

    name, DNSServerSearchOrder

    But when I run this command fails with errors such as a pipe empty

    element is not allowed.  I don't know if the above script has all synatx

    error or what is the best way to get a list of servers and their dns server

    Parameters.

    I know the wmiobject maybe out of this range in these newsgroups but there at - it a script in powershell, vmware or windows powershell to get a list of servername (which are mostly VMS) and their DNS server settings.

    Try the following script to get the DNS search order:

    Get-Content c:\computername.txt | `
    ForEach-Object {
      Get-WMIObject Win32_NetworkAdapterConfiguration -Computername $_ | `
        Where-Object {$_.IPEnabled -match "True"} | `
        Select-Object -property DNSHostName,DNSServerSearchOrder
    }
    

    Best regards, Robert

  • How to list the VMs and blue file associated by cluster

    I tried to figure out how to get the list of virtual machines on a particular cluster of ESX and their associated blue records.  I tried to change some of the scripts I found that all virtual machines and their files... but can't seem to get them to identify to a cluster.

    Someone has something that I could try?

    There are indeed a few scripts that give the railways blue folder for virtual machines.

    It is an adapted version of one of my scripts that does state on the virtual machines for a specific cluster.

    $report = @()
    $cluster = 
    
    Get-Cluster $cluster | Get-VM | Get-View | % {
    
         $current = Get-View $_.Parent
         $path = $_.Name
         do {
              $parent = $current
              if($parent.Name -ne "vm"){$path = $parent.Name + "\" + $path}
              $current = Get-View $current.Parent
         } while ($current.Parent -ne $null)
    
         $row = "" | select ClusterName, VMName, Path
         $row.ClusterName = $cluster
         $row.VMName = $_.Name
         $row.Path = $path
         $report += $row
    }
    
    $report
    

    If you want to see the list in the 'blue' folder_name order, you can change the last line

    $report | Sort-Object -Property Path
    
  • Use of the BAT file - how do you completely remove 150 phones and their associated DNs?

    How do you remove completely 150 phones and their associated DNs? All phones are in the same pool of device. I prefer the way bat.

    The CUCM version: 8.6.2

    Type of phones: 7962 phones - associated with the same device pool.

    Other questions: is there a way to remove all phones and their associated DNs with elegance when all phones are associated with the same mass of device? I rather not work with extensions and MAC addresses.

    Thank you

    Hug Lupas

    Hello hug,

    Using the BAT, it will take 2 - passes. 1 for unassigned phones and 1 for "DN". This is well illustrated in the attached doc;

    http://www.Cisco.com/c/en/us/TD/docs/voice_ip_comm/CUCM/bat/8_0_1/bat-80...

    Of course for the DN you could remove through the road map report > unassigned DN > select all > delete

    See you soon!

    SoC

  • To access the controls and their values in different JFrames and forms

    Hi all - is it possible to access controls and their associated information? For example, in my old .NET application, I got a form where users could enter usernames/people with disabilities and also preferences for the launch of other external tools. The user filled in the text boxes and made a few selections on combo boxes etc. - I then recorded in an ini file which is loaded at run time. Then from anywhere in the application I could do something like:

    Dim strUserName As String = frmUserSettings.txtUserName.Text//for username
    Dim optLocalorRemote as String = frmUserSettings.cmbLocalorRemote.SelectedItem.ToString () //for selected item in the drop-down list box
    Dim optSomeOption as Object = frmSomeForm.SomeControl.Value //etc etc...

    You can call any control in any form and obtain its associated variables and also call any method belonging to him in .NET or void. Is it possible to do in the frameworks for Swing? I did some research but can't seem to find the equivalent in Swing

    If it is not possible can then someone point me in the right direction on how to do it? Do I need to define a class and I then have to instantiate each control in the class and have the getters/setters or y at - it an easier way? I essentially have an obligation to access related information across different forms in the application

    I found this:
    http://StackOverflow.com/questions/4958600/get-a-swing-component-by-name
    But this seems to return the control names and no values?

    Thanks in advance for any advice or help - we appreciate it! :)

    Hello Matt,

    for what you do with files .ini, java provides the java.util.Properties class.
    To access the other JFrames and forms (JPanels), you pass a reference to this framework/Panel to the place (class or method) where you want to retrieve information from this framework/Panel.
    Example:

    public class MyFrame extends JFrame {
      JPanel myPanel1= new JPanel(...);
    ...
      MyVeryOwnPanel mvop= new MyVeryOwnPanel(myPanel1,...);
    }
    

    Now within mvop, you can look at what happened to myPanel1.

    HTH

  • When you try to start the programs of their shortcuts, I always get a window MS-DOS pop up

    When you try to start the programs of their shortcuts, I always get a window MS-DOS pop up.  The header says 16-bit subsystem MS_DOS.  For example, when you try to start Microsoft Word, the message says:

    C:\Documents and Settings\All Users\Menu demarrer\programmes\microsoft Office\Microsoft Office Word 2003.lnk program invalid file name, please check your pif file.

    I can start the program by clicking on any document in my documents file, however.  I know that something is messed up in the registry (we had a bad worm (MS Removal Tool).  However, I can't a registry cleaner to open.  I used a WinXP_EXE_Fix.reg to try to fix the missing exe file.  He has set a number of things, but still will not let me run a registry clean.

    Any help?

    Hello

    Try the following steps:

    1. follow the steps from the link below: cannot open files with extensions such as.exe, .com, and.lnk on a Windows XP computer: http://support.microsoft.com/kb/923077

    2. online virus scanner and check if any malware or virus detected on the computer activity. You can run the scan for viruses online from the link below: http://www.microsoft.com/security/scanner/en-us/default.aspx

    NOTE: Make sure that you select the correct version of the operating system before downloading the scanner)

  • Try to install the software and I get an error message saying that the installation cannot continue because a previous installation requires your computer needs to be restarted.

    Original title: .net framework 4.6

    I try to install the software and I get an error message saying

    Setup cannot continue because a previous installation requires your computer must be restarted. Restart your computer and run the Setup again.

    so I restart my pc and run it again and the same message appears

    Try to perform a "clean boot" to start Windows by using a minimal set of drivers and startup programs. This will eliminate software conflicts that occur when you start Windows, install a program or an update or when you run a program in Windows.
    http://support.Microsoft.com/kb/929135

    Perform a clean boot to determine if background programs are interfering with your game or other programs
    http://support.Microsoft.com/kb/331796

    One by one add back an application both in the boot list to find the software application incriminated.

    J W Stuart: http://www.pagestart.com

  • Arrow keys on the keyboard. Try to use the keyboard and mouse.

    New Gateway laptop with windows 7. I play a lot of games online and I can't find anywhere how to change this, or if it's the phone or the operating system. When I try to play a game on IE with the arrows that they automatically stick causing the game almost impossible to play, also when you try to use the keyboard and the touchpad the touchpad locks when the keyboard is in use. Help, please.

    It is a known problem if all goes well with Flash and Internet Explorer.
    Source: http://social.answers.microsoft.com/Forums/en-US/vistagaming/thread/d006871e-4701-4e80-9062-197f28251ac5/

    The only thing you can do is use another browser until what Adobe fixes the problem.

  • I just bought a windows xp disc and try to save the key and it won't let me not also tried by phone, I don't no what to do to get the registerd disc any help would be good

    I just bought a windows xp disc and try to save the key and it won't let me not also tried by phone, I don't no what to do to get the registerd disc any help would be good

    Do you mean "activate"? Registration is optional; Activation is not. You don't have not given us enough information to targeted assistance. What type of XP installation disc are you using? What product key you installed with (please do not post!)? What happened when you talked to the man during telephone activation? If the failure of activation by phone and you did not wait for a human to come on the line, try this once again and wait for the Rep of decision-making supported MS - MVP - Elephant Boy computers - Don ' t Panic!

  • Microsoft Fix Center 0 X 80092003 error message when you try to fix the hardware and drivers, the program does not work

    Microsoft Fix Center 0 X 80092003 error message when you try to fix the hardware and drivers, the program does not work. I use Windows Vista Home top.  Please provide me with a fix for this problem. Thank you

    Hello

    What type of material is actually causing the problem? Is there more information the Fix It center offers you?
    I would have a look at the article I have below the link and go ahead and run a update of Windows on the PC.
    I hope this helps.
  • Try to reinstall the printer and will not install due to not having Admin rights

    original title: Instalation printer

    Try to reinstall the printer and will not install due to not having Admin rights. I am the administrator,

    How can I continue?

    Thank you

    Right click on the printer software setup.exe, etc > run as admin.

    See you soon.

    Mick Murphy - Microsoft partner

  • Try to reactivate the taskbar and window transparency

    Hello, I am running Windows 7 Home Premium on a new laptop Asus UL50A series. This morning I received a message from Microsoft Update 'important' and so I updated my laptop, rebooted and noticed that the borders of my taskbar and window were more transparent. Before the update, everything worked fine, but now it does not work. Everything so far, works great except the issue of transparency. I would like to know how to fix this problem without having to do a system restore, since I already have a lot of important files on my new laptop. Here are some screenshots of Windows 7 settings Customize my not-properly-working:

    http://i607.Photobucket.com/albums/tt156/JamesBrad91/help.PNG

    http://i607.Photobucket.com/albums/tt156/JamesBrad91/Help2.PNG

    Someone knows how to fix this problem, so I can choose my taskbar, the color and opacity settings?

    Was one of these updates for a video driver?  If that were the case, you might want to go back to the previous driver in Device Manager.

    On the same note, ensuring that you have the latest video driver is also important if it wasn't one of the updates.

    Then, you should try to restart the DWM and ensuring that it is auto-start.

    In the search box, type "services".

    When the window appears, select services and check for the Desktop Windows Manager.  Try to restart it.  Then right click on the entry and make sure that it is auto-start.

    MVP - Windows desktop experience

  • Process Explorer error BES when you try to browse the files and folders; and Internet Explore AppHangB1 when you try to attach files to download in Windows 7.

    Hi everyone, auggy,

    I really hope you can help me with a problem I have on a single workstation at my office.  It is an accumulation of 32-bit Windows 7 running MS Office 2010 Standard.  It differs from other generations in our office because it is used by the head of the team of our accounts, and so it has a number of custom pieces of software that she only needs access (payroll software, etc.).

    All the basic features of the computers seem to be well, except the two following, and I would really like to help get to the bottom of it.

    (1) process explorer error when you try to browse the files and folders of BES.

    I can call Windows Explorer absolutely perfect and be sailing away on his machine, and then suddenly the process explore will die, with the following error: -.

    Signature of the problem:

    Problem event name: BEX

    Application name: explorer.exe

    Application version: 6.1.7601.17567

    Application timestamp: 4d6727a7

    Fault Module name: StackHash_0a9e

    Fault Module Version: 0.0.0.0

    Fault Module Timestamp: 00000000

    Exception offset: 03e2f944

    Exception code: c0000005

    Exception data: 00000008

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 2057

    Additional information 1: 0a9e

    More information 2: 0a9e372d3b4ad19135b953a78882e789

    Additional information 3: 0a9e

    Additional information 4: 0a9e372d3b4ad19135b953a78882e789

    Read our privacy statement online:

     http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    I can start windows Explorer, and it will happen again--it's a repetitive event.

    (2) Internet Explorer AppHangB1 when you try to attach files to download

    I think that these two errors may actually be related, like IE (and Chrome as well by the way, this be why I think that the two issues are related) works fine, until I just any type of site where I need to download a file.  This happened in the light, as our Chief of accounts needs to download a flat file in a room online banking software.  What's going to happen (and, again, this can be repeated as needed) is: -.

    (a) you need to click on which will generally be a "Browse" button

    (b) a traditional dialog box opens, but instead which allows you to navigate to the location and select the folder you want, he immediately greys out as if the process explore is falling.

    (c) shortly after, the following error is returned: -.

    Description:

    A problem caused this program blocking interact with Windows.

    Signature of the problem:

    Problem event name: AppHangB1

    Application name: iexplore.exe

    Application version: 11.0.9600.16521

    Application timestamp: 53114399

    Hang Signature: ffae

    Hang Type:                                          513

    OS version: 6.1.7601.2.1.0.256.48

    Locale ID: 2057

    Signing of additional blocking 1: ffaeadd6649c2780023c6d9ea230850d

    Signing of additional blocking 2: e32d

    Signing of additional blocking 3: e32d1064528f9bd1cbe46cdd0db7b0f1

    Signature of blocking additional 4:0498

    Signing of additional blocking 5: 0498e046eb6db4d68a7cd9b11dab2644

    Signing of additional blocking 6: effb

    Signing of additional blocking 7: effb796b5c1ff7f6708d2722fa7c24bd

    Read our privacy statement online:

     http://go.Microsoft.com/fwlink/?LinkId=104288&clcid=0x0409

    If the online privacy statement is not available, please read our offline privacy statement:

    C:\Windows\system32\en-US\erofflps.txt

    On auggy recommendation, I've set up a registry key insert that returns the explorer.exe hangs in a dump file, and I am trying to load two reports on SkyDrive - I'll post the URL in this thread as soon as I finished it.

    Can someone help me please?

    Thank you very much!!

    David.

    Hi auggy, Andy,.

    Well... in a way, I am very disappointed, but we will respond to it.

    Andy, I checked and iCloud, Control Panel has not been installed on its terminal, but thank you very much for suggesting it :)

    auggi, when I got back on my colleague's PC, I thought I would test to see if the feature didn't always before considering saving data dumps etc, and it worked fine!

    I left it overnight with instructions for the lady who uses the PC to test this morning and see if it's all workers, and it is still, it seems that the fix does not immediately solve the problem of browser, but there later - maybe after a second reboot or something... very strange!

    In all case, this matter can now be considered closed, so all that remains for me to say thank you very much for your help, you are amazing :)

    All the best, very, very,.

    David.

  • In photoshop CS5 (bridge) I could select all the images and their size still before turning them into JPEG files. I can't find a way to do it in CC

    In photoshop CS5 (bridge) I could select all the images and their size still before turning them into JPEG files. I can't find a way to do it in CC

    Hi Tanuj.

    I actually understand it. Not the best user friendly system. Where as before (CS5), I just had to go to crop tool and choose the dimensions and the inches now it in the window. Just really complicated for nothing.

    Thanks anyway Tanuj

    Melanie

  • R12 Payables: SQL query for the list of invoices and their status of Validation

    Hi all

    I am looking for a SQL query that gives me the list of all invoices of AP and their Validation status.

    Thank you
    Anil

    Select invoice_id, invoice_num, invoice_amount, invoice_currency_code, AP_INVOICES_V approval_status_lookup_code;

    Prasanna-

Maybe you are looking for