Can we list on "Configuration Parameters" on a virtual machine?

Hello

Is there a PowerCLI script that can list the contents of the "Configuration settings found in the general - Options - settings on the Virtual Machine?

that is: -.

$44B9BD34A67435A2.jpg

It's compliance / audit verification.

Specifically, we want to check that the following is defined:

1.jpg

Thank you

Darren

Try this

Get-VM MyVM | %{
    $_.ExtensionData.Config.ExtraConfig
}

Tags: VMware

Similar Questions

  • a configuration file not valid virtual machine

    Team,


    I have Windows 7 on my PC, running VMWARE PLAYER 3.1.6 build-744570.  I can no longer boot my session, I get "could not open the virtual machine:!" \CentOS6.4!. ". VMX "is not a valid virtual machine configuration file" error.


    Note: This problem occurs due to the space in my drive


    Have attached the log! VMware.zip 94.4 KB


    ! ! Help me!!


    Thank you

    Ganesh

    Here you are.

  • vROPs - you can create a report to show when a virtual machine has changed and what has changed?

    I can't currently developing a report/view that can show me what I'm looking for.  I thought since it's related capabilities vROPs can keep track.  Is there a way to see the when a virtual machine has changed and what has changed?  Looking mainly vdisk, vCPU or vRAM.

    Thanks for help or suggestions.

    Hi newbski1,

    There are few things you can try to help him with this.

    1. the events view shows you changes in resources, it is not terribly detailed, but it will help

    2. depending on your version, you can also view in Configuration Manager that is part of the vRO suite that will show you the changes to configurations.

    See you soon

    @iiToby

  • Keyboard not configured by the new virtual machine

    Hi Experts,

    I am very new to VMWare stuffs. Recently, I've converted a physical machine (windows XP) machine virtual with VMware Converter v3.0.0 by using the Import of machine function and then configured using the configure machine button. I don't change any customization of the virtual computer. Now I have a VM (virtual machine workstation 5.x) of the PC. So I closed the physical computer and starting the virtual machine on a different computer using VMware Workstation v6.5.1. When you start the virtual machine appears "your guest operating system is Windows XP and you have one or more virtual SCSI peripheral isntalled in your virtual machine. Please be aware that XP does not support the BusLogic SCSI adapter that VMware workstation is currently using for virtual peripherals... Download the driver... ». I press OK to continue.

    Now, VM, boots and to connect, I press altcltinsert but VM is not recognizing this command. Only the mouse running inside the virtual machine as I can drag the message autour window, but not any command of the keyboard. So, I am struck at the login page of the virtual computer window.

    A tip for the login and the keypad?

    Thank you.

    Stop VM, between in his option material vitual to version 4 (used in Workstation 6.x) and re-install VMTools.

    StarWind Software R & D

  • Configure HA to exclude Virtual Machines

    I wonder if you can configure HA to exclude specific virtual machines. When you set up the HA, I get a message about lack of resources. I have a red triangle on the icon of the cluster but not the icon of the host server. I don't need all my Virtual Machines to failover so I was hoping to preserve resources, I can configure certain VM to simply close? Is this possible?

    Thank you

    Scott

    Please Ref this thread

    http://communities.VMware.com/message/967891;JSESSIONID=0C8C2215FE1BF1EF1A23681AFCF37085

    http://communities.VMware.com/thread/185256

    Shan

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

  • Can I use the same windows on my virtual machine?

    I had windows pre-installed in my dell laptop (Latitude E6420). I did not have the cd key but I extracted using a program called Magical jelly bean key finder. Now, I have the following information on my windows installation

    Windows 7 Professional Service Pack 1
    Product no.: XXXXXXXX
    Installed from media "OEM."
    Product ID: XXXXX-OEM-XXXXXXXX
    CD Key: XXXXXXXXXXXXXXXXXXXXXXXX
    Computer name: XXXXX
    Registered owner: XXXXX
    Registered organization: Microsoft
    Now, I want to install linux on my machine and use the current windows in a virtual machine inside the linux host. Is is possible if I completely uninstall this windows of my computer and reinstall the virtual machine with the same key?
    I'm not very familiar with this also can someone guide me what are the steps I have to take if this is possible.

    Hi Andre,

    Thank you for your answer, but this does not completely answer my question. I also read that OEM installation does not install the same windows on another machine (virtual machine is like different machine even if I do this on the same machine) and installation of the mine is OEM type.

    More important still, how install windows in the virtual environment? If I format the computer and install linux, in addition to this install virualbox and install inside windows that use the cd - key and it will work. ? I doubt it because the windows is already activated in this machine.

    The extract of the contract (EULA) for Windows 7 and applies to the retail and OEM of Windows 7 versions. So, Yes, you can reinstall it in a Virtual Machine.

    Yes, you will need to format the machine under Linux, then reinstall Windows 7 in a computer program virtual suitable as Oracle Virtual Box 4.2, VMWare Player 5.0 or VMWare Workstation. You can then use the product key located on the COA sticker to reactivate the license.

  • How can I get the version of VMware to virtual machines with powercli officer?

    How can I get the version of VMware View Agent running on a virtual machine with powercli or view Powercli?

    As much as I know there is no cmdlet PowerCLI for this, but you can use the Invoke-VMScript cmdlet and interrogate the Win32_Product class.

    By running the following. You can add a Where clause to return only the Agent of the view

    Get-WmiObject-class Win32_Product | Select the name, Version

  • List RDM LUN ID for a virtual machine

    Hi all

    I'm not able to get the LUN ID of the ROW of the virtual machine through Powercli

    Since the script below, I am able to get the following details, but not the ID. The RDM LUN are implored them to EMC VNX and assigned to virtual machines.

    Get - VM vm1. Get-hard drive - DiskType "RawPhysical", "RawVirtual" | Select name, DiskType, ScsiCanonicalName, DeviceName, Parent, CapacityGB | FL

    Output:

    Parent: vm1
    Name: Hard drive 3
    DiskType: RawPhysical

    ScsiCanonicalName: naa.6000144000000010706334e594fc67d8

    DeviceName: vml.02001700006000144000000010706334e594fc67d8496e76697378
    CapacityGB: 200

    GUI, I see the ID LUN 23, change the VM setting > select RDM > manage paths > where I can see the LUN ID of the RDM. I would like to retrieve the ID of the LUN of Powercli.

    Help, please.

    -Malfoy

    There you go

    @"
    ===============================================================================
    Title: rdm.ps1
    Description: get all VMs with RDM.
    Usage: .\rdm.ps1
    Date: 10/20/2104
    Author: Sascha Tetzel
    Output:
    VMName        : ntsv2.xxx.local
    VMHost        : psvi08.xxx.local
    HDDeviceName  : vml.02001c00006001438005de7f650000700002ed0000485356343530
    HDName        : Harddisk 7
    HDFileName    : [prod02] ntsv2.xxx.local/ntsv2_6.vmdk
    HDMode        : physicalMode
    HDsize        : 1024
    HDDisplayName : naa.6001438005de7f650000700002ed0000
    LUN           : 28
    
    VMName        : pvsdb03.xxx.local
    VMHost        : psvi10.xxx.local
    HDDeviceName  : vml.02001d0000600508b40010735100011000023e0000485356343530
    HDName        : Harddisk 2
    HDFileName    : [prod02] pvsdb03.xxx.local/pvsdb03_1.vmdk
    HDMode        : virtualMode
    HDsize        : 260
    HDDisplayName : naa.600508b40010735100011000023e0000
    LUN           : 29
    ===============================================================================
    "@
    add-pssnapin VMware.VimAutomation.Core
    Connect-VIServer -Server vcenter
    $report = @()
    $vms = Get-VM | Get-View
    foreach($vm in $vms) {
        foreach($dev in $vm.Config.Hardware.Device){
            if(($dev.gettype()).Name -eq "VirtualDisk"){
                if(($dev.Backing.CompatibilityMode -eq "physicalMode") -or ($dev.Backing.CompatibilityMode -eq "virtualMode")){
                    $row = "" | select VMName, VMHost, HDDeviceName, HDName, HDFileName, HDMode, HDsize, HDDisplayName, LUN
                    $row.VMName = $vm.Name
                    $esx = Get-View $vm.Runtime.Host
                    $row.VMHost = ($esx).Name
                    $row.HDDeviceName = $dev.Backing.DeviceName
                    $row.HDName = $dev.DeviceInfo.Label
                    $row.HDFileName = $dev.Backing.FileName
                    $row.HDMode = $dev.Backing.CompatibilityMode
                    $row.HDSize = [system.math]::Round($dev.CapacityInKB / 1048576)
                    $row.HDDisplayName = ($esx.Config.StorageDevice.ScsiLun | where {$_.Uuid -eq $dev.Backing.LunUuid}).CanonicalName
                    $lun = Get-ScsiLun -VmHost $row.VMHost -CanonicalName $row.HDDisplayName
                    $row.LUN = $lun.RuntimeName.SubString($lun.RuntimeName.LastIndexof("L")+1)
                    $report += $row
                }
             }
        }
    }
    $report
    
  • How im can extract the value of the persistence of virtual machine disk?

    Dear friends

    How im can extract the value of the value of the persistence of disks of virtual machines?

    IM using the bellows of the order, I have a if to check if the disks are independent or not

    but im only want values of the persistence of the column to use in my script

    Get-disk hard - vm machine01

    CapacityGB persistence Filename

    ----------      -----------                                                    --------

    10 000 persistent [LUN2] RJ7469SR039/RJ7469SR039.vmdk

    8 000 persistent [rate2] RJ7469SR039/RJ7469SR039_1.vmdk

    Thank you

    Almir

    In your example, you just use Select-Object

    Get-disk hard - vm machine01 | Select the Parent, persistence

    The parent is the name of the virtual machine

  • Lists the names of all the virtual machines

    I want to display a list for the name of all the virtual machines.

    Get - VM export to much information, how to filter the info I need?

    With the Select-Object cmdlet, like this

    Get - VM | Select name

    The Get - VM product objects that you pass through the pipeline ('|) ') to the Select-Object cmdlet.

    The Select-Object cmdlet allows you to select one or more of the properties of the objects it receives.

  • Can I print screen a window inside a virtual machine?

    Hello:

    I tried to open a .vsd on my MacBook Pro.

    Unfortunately, I don't have a version of Visio on my Mac.

    So, when I opened the file, he opened my WIndows 7 Virtual Machine.

    Can I do a printscreen of this window in Visio in a VM?

    If so, how?

    If not, can I cut and paste of my Windows 7 window into a file in Word or PDF on my Mac?

    If so, how?

    Thanks in advance

    I do this all the time...

    1. prepare the area you want to capture visible

    2. click on a space empty on your desktop to Finder the active application on your Mac.

    3. Press Cmd + Shift + 4 and the area you want to a drag-and-release screenshot

    A new PNG file with the screenshot will be on your Mac desktop.

    Of course, you can also get a print screen for Windows utility, but I prefer to keep as little on my Windows VMs as possible.

  • How can I change the names of directory of virtual machine in VMWare ESXi data storage?

    I've always used host names, but I have changed several times, since the structure is bigger and I now 25 virtual machines. I started renaming to v, s, w - and then their hostname.

    For now, the data store directory is a real mess without the new structure and it bothers me. Is it possible to rename directories? Perhaps using vcenter? I would like to see a beautiful tree as: DWT-win2003, centos5 tpl, tpl-debian6, s-server01, server02-s, w-exchange01, w-mssql01, just as I renamed it to VMS. I tried the migration option, but it only allows for migration between host data warehouses and not to rename the directory that hosts the virtual machine.

    How can I change the my data store directory structure? I have considered changing the paths and edit vmx files to correct the paths, and then add servers to be inventoried. But I don't really know if this can be done without penalty or if there is a better solution.

    the easiest way, continuously needs storage vMotion of the guest.  It renames the folder and the underlying file for the same as the name of object of vCenter. If you don't have much storage vMotion, then turn off the prompt and do a cold migration.

  • How can I assign a static ip for each virtual machine

    I have the NIC 2 and 3 vm on my vm server.

    I did find documentation how to assign an ip for each virtual computer fix.

    pleas help me... but probably easy...

    Assuming you have the management and the virtual machines on the same network, attach both rising/NIC bindings to the vSwitch0, configure the management network and tie each VM to the port "VM Network" group. As DSTAVERT mentioned, the IP of the virtual machine configuration is done in the VM themselves, as if they were physical systems.

    sample:

    If you have different subnets for the management and the virtual machines, you must either create multiple vSwitches or work with the VLAN.

    André

  • CLI can be used to assign AD accounts to virtual machines

    Hi, I am interested in the possibility to use the CLI to assign accounts Active Directory for VMs. currently there are 10 virtual machines created from a template and there are 22:00. 1 AD account is assigned to each of the virtual machines. They are used for training purposes. Virtual machines are then removed and repeat the procedure. Is it possible that I can attribute the AD account name to a particular virtual machine using the command line?

    Thank you

    You can use the new-vipermission to assign permissions to a virtual machine.

    new-vipermission -entity (get-vm SQL04) -principal "Mishchenko\dave.mishchenko" -Role "Admin"
    

    Dave

    VMware communities user moderator

    Now available - vSphere Quick Start Guide

    You have a system or a PCI with VMDirectPath?  Submit your specifications to Officieux VMDirectPath HCL.

  • PowerCLI can not change the IP address of the virtual machine

    I am relatively new to Powershell and PowerCLI (as in 1 week ago relatively new) and I'm falling through the procurement process about 12 VMS on a recurring basis for one class.  I can deploy VM template very well, however I would attribute a specific IP addresses the VM once they are done sysprep'ing.  I use Powershell 1.0 and PowerCLI 4.0.1 Windows 2003 VM (also vcenter in this box).  The virtual machine, I am the deployment is also Windows 2003 and sysprep very well.  This is the section in my script that I use to set the IP address:

    $net1 = 'LAN '.

    game-vmguestnetworkinterface - VmGuestNetworkInterface $net1 - vm P2V_student06 - hostuser root - hostpass * guestuser - administrator - guestpass * - static - ippolicy - netmask 255.255.255.0 - Gateway 192.168.20.1 ip 192.168.20.126

    Here is the output of get-vmguestnetworkinterface for this virtual machine:

    VMId: VirtualMachine-vm-578

    Subnet mask: 255.255.255.0

    NicId: VirtualMachine-vm-578/4000

    Name: LAN

    IPPolicy: Dhcp

    IP: 192.168.20.188

    DNS: {192.168.20.2}

    Passerelle_par_defaut: 192.168.20.1

    Description: Intel(r) PRO/1000 MT Network Connection

    Mac: 00-50-56-B7-36-45

    RouteInterfaceId:

    DnsPolicy: Dhcp

    WinsPolicy: Dhcp

    Victories:

    When I run the script it gives the following result:

    Name                                        Port                                        User

    -


    -


    -


    192.168.20.35 443 administrator

    Game-VMGuestNetworkInterface: cannot bind parameter 'VmGuestNetworkInterface '. Cannot convert value 'LAN' type 'VMware.VimAutomation.Types.VMGuestNetworkInterface '. Error: "Invalid typecast"System.String"'VMware.VimAutomation.Types.VMGuestNetworkInterface'."

    At C:\powercli_scripts\test_setup_vsphere_4.0_class.ps1:6 char: 53

    + set-vmguestnetworkinterface - VmGuestNetworkInterface & lt; & lt; & lt; & lt; LAN - vm P2V_student06 - hostuser root - hostpass * guestuser - administrator - guestpass * - static - ippolicy - netmask 255.255.255.0 - Gateway 192.168.20.1 ip 192.168.20.126

    The virtual machine was originally the standard 'connection to the Local network' for the name of the network adapter.  I thought that there might be problems with spaces so I renamed it 'LAN' and it still error.  Can anyone think what I am doing wrong?  This almost seems to be a bug any.

    Thanks in advance for any help you can offer.  I am pulling my hair being so closely how it makes me NUTS!

    Best regards

    Eric Steed

    Instead of filling the variable followed by setting the network card by specifying the variable can you just try the interface and piped to the set command?  I have repro had your problem, but got it to work in this way:

    Get-VMHost MY_ESX_HOST | Get - vm MY_VM | Get-VMGuestNetworkInterface |? {$_.name - eq 'Connect to the Local network'} | Game-VMGuestNetworkInterface - static IPPolicy - gateway 192.168.1.1 - Netmask 255.255.255.0 - Ip 192.168.1.5 - Verbose

    To meet the "necessary powershell in the prompt is", the answer is no.  You use the powercli command creates a file of commands, uses vix, or the equivalent of copy-vmguestfile or vmscript-invoke to call the file of orders for the customer... that's a CMD file on the guest.

    Now, there is a problem where vmguestnetworkinterface controls were assuming that was the name of the interface "Local Area Connection *" so naming anything other than that would break the script.  Not sure if this is yet, but I can check a little later.

    Hope this helps,

    Alex.

Maybe you are looking for

  • Game is not completely download how can I increase memory "casche?

    There is never a 'full' connection for me on Farmville2. Continued to show the 'connection' while I play and if it stops, the game freezes. It was suggested to the forum of the game to increase the memory "cache". I don't know how to do this and cann

  • DVD ROM drive new satellite 5200-701and

    HelloI bought new toshiba SD-R6472B dvd +/-rw to replace the original dvd CD-ROM drive in my laptop.However this isn't wonna work, I can open/close drawer dvd and that's all. even updated bios with the rest of the upgrades available and still nothing

  • Calibration of pressure sensor

    I have two pressure omegadyne transducers. I tried to calibrate the transducers via linear equations. The problem is that when I put the second slope of line transducer and the y-intercept, the first (slope of the line and intercept) changes automati

  • Styler DVD

    Hello.  I have window 8.1 and have found that I can't make a record.  I want to make dvd and/or cd with audio and video.   Someone suggested that I get a styling dvd to do.  One suggestion is possible as a brand that is easy to use for a newbee IE me

  • How to transfer the Outlook Notes 2013 Onedrive

    I use Outlook 2013 on my PC. I want to be able to transfer all my sticky notes (429 of them) to my OneDrive so I have access to my phone. I import into OneNote, but I am not able to open on my windows phone. I get the following message "you need to i