VM inventory with special requests

Hello

I'm struggeling with creating a PowerCli script to get a report that looks like this:

VMName NumCpu, MemoryMB, number of network cards, the VMDK file names

Output might look like this

Name NumCpu MemoryMB NIC VMDK1 VMDK2 VMDK3

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

MyVM01 2 4096 1 myvm01.vmdk myvm01_1.vmdk

MyVM02 1 2048 2 myvm02.vmdk

...

My VMnn 1 2048 2 myvmnn.vmdk

I got the simple stuff in place, but need help with those more complicated...

Get - vm | Select-object Name, NumCpu, MemoryMB | Export-CSV c:\temp\special_vm_inventory.csv

I appreciate your help

Try it like this

Get-VM | Select Name,NumCpu,MemoryMB,
    @{N="NICS";E={$_.NetworkAdapters.Count}},
    @{N="VMDK1";E={$_.HardDisks[0].FileName}},
    @{N="VMDK2";E={$_.HardDisks[1].FileName}},
    @{N="VMDK3";E={$_.HardDisks[2].FileName}} |
Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture

Tags: VMware

Similar Questions

  • Problem of L50 - B satellite with special characters in country

    I recently bought the laptop SATELLITE L50 - B - 17 c and have a problem with special characters from countries in windows 7.

    In Polish, key key programmer combination right alt and the keys 'z', 'x', and 'c' should give the Polish special characters.

    Unfortunately this does not work for these three keys, however works other keys in Polish characters as 'l', 'n', 'a', a ' or 'e '. I suspect that this may be linked to the special key Fn,.

    However turning or disable in the BIOS did not help. Maybe there should be a driver of special keyboard for windows 7, but I have not found it :(

    {quote} I recently bought the laptop SATELLITE L50 - B - 17 c and have a problem with special characters from countries in windows 7. {quote}

    The laptop has been presintalled and configured with the Win 8.1 System.
    Have you noticed this problem with installation of Win 7 8.1 or after the victory?

    If you have an external USB keyboard, I recommend you to check if the same problem would appear using the USB keyboard. In case the external USB keyboard would work correctly, the problem could be related to a defective internal keyboard

  • My safari has locked up with a request for verification of the property query.  What can be done to fix this?

    My safari has locked up with a request for verification of the property query.  What can be done to fix this?

    This is the shit that came.

    Force Quit Safari (cmd-option-esc) then restart Safari by holding down the SHIFT key.

    Sorry, wrong forum... question thought it was an OS X. In any case don't give them any info.

  • Effective rate using ni6143 with the request based on aiex2.cpp method

    Dear engineers experienced,

    I had a problem with the request method based on the file "aiex2.cpp", available on the site by using ni6143. It comes to the actual sampling rate. On the datasheet, it is said that the ni6143 could have the ability to data acquisition with speed of 250 kHz per channel, which means that each data could be acquired in 4th-6 second. So here's my question: if I use all 8 channels (each to 250 kHz), this means that I have to use 8 [channels] * 4th-6 [seconds] = [seconds] to get a data set (one for each channel), 32nd-6 or I can use only 4-6 [seconds] to get? I use the method of application based on aiex2.cpp for the experience of the trial. Inorder to check exactly what is the sampling rate, I/o digital set up a signal in the maximum power before gain on demand and set low during data acquisition is complete. It shows the oscillograph than the actual time for the acquisition of a set of data (one for each channel) when I use 8 channels (each to 250 kHz) is about 32-6 [seconds], which means that the device acquires data by a channel channel, not at the same time. I want to know if there is any setting that I have to settle with the registers, or request method could not acquire data with 8 channels simultaneously. My code is exactly the same with the file "aiex2.cpp".

    Thanks for help.

    Hello Licry,

    Yes, the example only shows how to acquire a number fixed samples.  Among the function calls that implements the acquisition will allow you to make the material constantly acquire...

    aiNumberOfSamples (theSTC, numberOfSamples, kFalse); for finite, false for continuous

    If you can set it to kTrue to acquire continuous.  So that the task to continue to work, your application must be able to access the FIFO data fast enough so that it does not overflow.

    Second, every continuous acquisition must end someday.  When your loop has acquired all data affecting the application, he must issue commands to stop the acquisition.  The manual of the STC in detail the steps that can be taken to stop a continuous acquisition.

    http://www.NI.com/PDF/manuals/340934b.PDF (see section 2.4.3.3)

    Steven T.

  • label with special charecters

    Hi, how to create a text label with special charecters like H2O, cm, Fº, etc.?

    Thanks in advance for the help.

    Roberto

    You can also get special symbols by using Word.  Just copy and paste on.

  • an address incompatible with the requested protocol was used

    After I have upgrade of windows 7 starter edition to windows 7 Home Edition premium, I can't do a bluetooth file transfer and the following message appears: an address incompatible with the requested protocol was used.

    Hello
    How do you transfer the file?

    Method 1:
    Try to perform the audit and the clean boot if this can help,
    Here is the link: http://support.microsoft.com/kb/929135
    Note: When you're done to diagnose, follow step 7 in the article to start the normal start

    Method 2:
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link.
    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry
     
    You can try the steps and check.
    (a) click Start and then click Run.
    (b) type regedit and then click OK.
    (c) locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}
    (d) right click on the folder, click on delete.
    (e) exit and restart
     
    Method 3:
    Change settings for a Bluetooth compatible device
    http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-device

  • Windows could not transfer files. An address incompatible with the requested protocol was used.

    Microsoft. It's so hard to get where you want to go on the site.

    I wish they still had the cat where you enter just a few things, and for free, it instantly opens a window of instant messaging to chat with microsoft.

    Well, I have a dongle bt USB and when I right click and click send a file, it gives an error

    Windows could not transfer files. An address incompatible with the requested protocol was used.

    With windows xp, I plug it and he can move 2 drivers, "microsoft bluetooth enumerator" and "generic bluetooth radio".

    in windows 7, it installs the same 2 drivers

    I pair the device from the phone and it didn't work. while I was looking for the computer and it does not even, but file transfer

    It works totally fine XP and with the same drivers! just different os versions.

    I went to Device Manager, click on set to update driver and he know that later is installed

    BTW, it's a generic radio bt, and it was $10 do9ller micro dongle.

    However, there is no brand name.

    but it works under windows xp? but not 7?

    Windows xp and windows 7 are duel boot, so it's the same material, b/c windows xp and windows 7 is on the same hardware

    If I use the VM vmware, I can transfer files

    Microsoft sucks... I mean except xp. He is old, but it's the best version of windows there, Runnin' on minimum 16 MB of ram and 400 mhz cpu... I luv xp, no more errors

    Hello

    Check if the same device works fine on another computer with Windows 7 installed. Also, try to send files from the phone to the PC and check what is happening.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following link. http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    You can try the steps below and check if that helps get the Bluetooth dongle to work.

    (a) click Start and then click Run.

    (b) type regedit and then click OK.

    (c) locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}

    (d) right click on the folder, click on delete.

    (e) exit and restart

    Now, try to find your device and send the file. It should work.

    Hope this information is useful.

    Amrita M

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

  • Failed to perform recovery of factory setting - error 0x8007045D Code / product key error - "ERROR!" We encountered a problem with the request for approval.

    Original title: product key error

    Hi all...

    I have ' tried to download the disc Image of Windows 7 (ISO file), but when I insert my product key, the system cannot check it.
    I use the laptop Sony Vaio VPC EG35EG with preinstalled Windows 7 Home Basic 64 bit inside.
    Now, after that there is error (I cannot yet perform plant pose recovery; always finished with error 0x8007045D Code), I need to install clean my laptop with the USB or DVD Installer key. But then, when I try to download it, my product key (I found it on the sticker at the bottom of the laptop) are not validated by microsoft. It is said:

    "ERROR!" We encountered a problem with the request for approval.

    What should I do now? Y does it can someone help me?
    Thank you.

    Consider the following text:

    How to: What are my options for Windows 7 reinstall media?

    Make sure you scroll down and read the section:

    What to do if you cannot get your manufacturer recovery media, refuse to use or to buy it or the Microsoft Software Recovery Website does not work?

    also check:

    https://techingiteasy.WordPress.com/2012/04/13/how-to-activate-Windows-7-OEM-license-using-a-retail-disc/

  • Hi, I've been a user of Club Photo Dollar. I accepted the proposal to continue with 10 dollars a month for 10 photos with this request: AD006115173PT, but still no response. Can help you pls?

    Hi, I've been a user of Club Photo Dollar. I accepted the proposal to continue with 10 dollars a month for 10 photos with this request: AD006115173PT, but still no response. Can help you pls?

    Hi Luis

    I understand that your initial order for the promotion of CPD Stock has failed and you are looking for re - order.

    I'm looking into that for you and will let you know when we have a solution.

    Kind regards

    Bev

  • DBMS_LOB. FileExists returns 0 for BFILE with special characters in their names

    Hello.

    As part of a migration, I'm trying to load these binaries (mostly PDFs) in a column of type blob of a table (oracle 11 g).

    Before loading the file, I get the positioner with bfilename and search for fileexists.

    The problem is that I found several false negatives for dbms_lob.fileexists, all files with special characters in their names, like a e i o u, for example.

    Any sugestion to work around?

    I have change the message to add nls info, as it is migth play an important role

    The database is in AMERICAN AMERICA WE8MSWIN1252

    (Don't know why)

    and my session is in SPANISH SPAIN

    After a lot of tryal and error, I found the answer. Here it is:

    src_loc: = bfilename ('MYDIR', Convert (l_filename, 'AL32UTF8'));

    Now, plsql block "sees" the file.

  • empty data file with special characters in the name

    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    Since it is empty, it would be possible to create the data file void anothr
    using the:
    ALTER database create datafile ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'
    as ' / oracle/PRD/spdata2/r3i_8/r3i.data8';

    and then recover datafile 'fully_qualified_file_name ';
    ALTER database datafile 'fully_qualified_file_name' online;

    How orders oracle faced with special characters?

    Thanks for your advice

    user6737818 wrote:
    Hi all

    I'm having a problem with an empty data file which is in recovery mode.

    Before the following has been a success:
    ALTER database create datafile 'fully_qualified_file_name' as 'fully_qualified_file_name ';
    recover data file "fully_qualified_file_name";
    ALTER database datafile 'fully_qualified_file_name' online;

    But this time it does not work as I get an error:
    ORA-01516: file nonexistent journal, data file, or temporary file
    Using the file id does not work either.

    When I created a record of control file I see the data file has special characters in the name:
    ' / oracle/PRD/112_64/dbs/PSPR3I ^? ^?'

    It should work using a file as the definition of source file number and a new name for the new file. Works for me:

    orcl> alter database create datafile 7 as 'c:\tmp\newname.dbf';
    
    Database altered.
    
    orcl>
    
  • problem with special characters

    I have a problem with special characters. When I save a project or for export.

    & yacute;  figure like & Yacute;

    & uacute;   is shown as & Uacute;

    & aacute;  figure like & Aacute;

    & iacute; figure as & Iacute;

    & oacute;   is shown as & Oacute;

    & eacute;   appears under the name & Eacute;

    Hi Stephan,

    This has been fixed in the latest version of reflow; Please install the latest version.

    Thank you

    -irina

  • Oracle Text, text search with special characters

    Hi all

    My s/n: 11.2.03

    I have ctxsys.context of index on a column.

    "Now, I would like to find a text like ' 891-000-33-01" (without ").

    The problem is that I can't find row propely when I write *'891 000 33 01'*,.
    and no result of lines when writing normal *'' 891-000-33-01 *.

    How to build an index, or what I do the text you enter in text typed with special characters, looked for and did not like google search (* when you write in google "cat - animal", serach engine returns the result of no animal cat *)

    Concerning

    The character 'less' is a special character and must be escaped if you don't want to do a subtraction.

    You can use "891\-000\-33\-01" or "{891-000-33-01}.

    Note that by default "-" is a newline character, so each set of numbers will be indexed as a separate token. If you want the "-" to be indexed as part of a single token, you will need to set it as a character PRINTJOINS. You will still need to escape in the query.

  • A wild-Card does not work in the MODEL - what is wong with my request?

    Hi gurus,

    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    CREATE TABLE "SALES" 
       (     "COUNTRY" VARCHAR2(5 BYTE), 
         "PRODUCT" VARCHAR2(5 BYTE), 
         "YEAR" NUMBER, 
         "SALES" NUMBER
       ) ;
    
    insert into sales values('A','prod1',2000,10);
    When I pass the name of the product in the model calsue I get the expected result
    select *
    from sales
    model
     PARTITION BY (country) 
     dimension by (product,year)
     measures(sales s)
     rules  upsert
     (
     s['prod1',2001]=s['prod1',2000]*2
     );
    
    COUNTRY PRODUCT YEAR S
    ------- ------- ---- -
    A       prod1   2000 10 
    A       prod1   2001 20 
    but when I use, IT is, I do not get the result. What is the problem with my request?
    select *
    from sales
    model
     PARTITION BY (country) 
     dimension by (product,year)
     measures(sales s)
     rules  upsert
     (
     s[ANY,2001]=s[cv(product),2000]*2
     );
    
    
    COUNTRY PRODUCT YEAR S
    ------- ------- ---- -
    A       prod1   2000 10 
    Thanks in advance.

    Published by: 884476 on October 29, 2012 12:51 AM
    Please do not hesitate to ask for more details...

    Use ONE with UPSERT produce all lines not existing OR cells instead you can use UPSERT ALL if you want to use predicates.

    Try with below,

    select *
    from sales
    model
     PARTITION BY (country)
     dimension by (product,year)
     measures(sales s)
     rules  upsert all
     (
     s[ANY,2001]=s[cv(product),2000]*2
     );
    

    Maybe it works,

  • Can someone help with this request please

    I have a table something like below

    Things_t
    Characteristic of things float value
    Element 1 red color
    1 packaging
    Point 2 square shape
    Point 2 brand Spunk

    Now I want to reterive an element with any of its tank as Null values. Using the query 'select distinct things from things_t, where there is no char value' fetch element 1 also with point 2. I want to retrieve a record of the thing for which none of the tank, the values are Null as point 2. Can you please help me with this request.

    Try this:

    WITH t AS
    (SELECT 1 item_id, 17436 chr_id, 14225034 chr_val_id FROM dual UNION
     SELECT 1 item_id, 39 chr_id, 14276173 chr_val_id FROM dual UNION
     SELECT 1 item_id, 17774 chr_id, NULL chr_val_id FROM dual UNION
     SELECT 1 item_id, 265 chr_id, 20502978 chr_val_id FROM dual UNION
     SELECT 1 item_id, 16978 chr_id, 797233 chr_val_id FROM dual UNION
     SELECT 1 item_id, 13092 chr_id, 5666917 chr_val_id FROM dual UNION
     SELECT 1 item_id, 15228 chr_id, 1209758 chr_val_id FROM dual UNION
     SELECT 2 item_id, 112 chr_id,  12705342 chr_val_id FROM dual UNION
     SELECT 2 item_id, 6945 chr_id, NULL chr_val_id FROM dual UNION
     SELECT 2 item_id, 70 chr_id, 12597376 chr_val_id FROM dual UNION
     SELECT 2 item_id, 16832 chr_id, NULL chr_val_id FROM dual UNION
     SELECT 2 item_id, 7886 chr_id, 9588619 chr_val_id FROM dual UNION
     SELECT 2 item_id, 6986 chr_id, 2659351 chr_val_id FROM dual UNION
     SELECT 3 item_id, 9531 chr_id, 8910943 chr_val_id FROM dual UNION
     SELECT 3 item_id, 9798 chr_id, 8717531 chr_val_id FROM dual UNION
     SELECT 3 item_id, 17446 chr_id, 12266441 chr_val_id FROM dual UNION
     SELECT 3 item_id, 4830 chr_id, 13683090 chr_val_id FROM dual UNION
     SELECT 3 item_id, 9518 chr_id, 834772 chr_val_id FROM dual UNION
     SELECT 3 item_id, 11031 chr_id, 20233753 chr_val_id FROM dual UNION
     SELECT 3 item_id, 12564 chr_id, 2282478 chr_val_id FROM dual)
    SELECT DISTINCT item_id
    FROM   t
    MINUS
    SELECT DISTINCT item_id
    FROM   t
    WHERE  chr_val_id IS NULL
    

    Or this:

    SELECT item_id
    FROM  (SELECT   item_id,
                    MIN(NVL(chr_val_id, -1)) min_chr_val_id
           FROM     t
           GROUP BY item_id)
    WHERE  min_chr_val_id != -1
    

    Published by: lee200 on October 15, 2012 09:22

Maybe you are looking for

  • iOS 9 bluetooth flashing icon

    iPhone 6 s, Apple Watch paired, occasionally use Plantronics BT headset or speaker Sony BT. The Bluetooth icon at the top of the home screen flashes all the time, a double pulse. It is very distracting. If I disable the BT, I can't use my watch. Anyo

  • How can I enable password protect notes in iPhone IOS 9.3.1

    How can I activate the passwordprotection for notes on ios 9.3.1?

  • IX4 - 300 d always restart

    My ix4 storage - 300 d cannot start - its not always goes to reboot. The display shows the logo, then the window with stick and 3 windows for a minute and after the restart with the same plan. Tried to do, hold RESET button with 1 min. (with hard dri

  • Looking for my SP on my system

    Could someone please tell me how to find the service pack on my system and how to upgrade? Please... Thank you!

  • Run an older application on 10 Simulator

    Hello I have a few questions about 10 simulator. I have an app running OS 6 and 7. Can I run this application on Simulator 10? If so how can I use it? I have the 10 Simulator is open (development mode is 'on' and I have the ip address) If not what sh