Question about Get-View

Note:

I use () instead of media because this page don't like the media.

Hello

For some reason when I use the following code:

Get - VM | Get-View | % {

$_. CustomFields ("Barcode")

I get a cannot index into a table null error.

But... If I use this code:

$Vms = get - VM

{foreach ($vm to $vms)

$Vm.CustomFields ("Barcode")

}

It takes more time, but it works without error.

Does anyone know why this is? Is there a known issue with the cmdlet Get-view?

Thank you

Looking to 2 things different here.

The Get - Vm cmdlet returns a VirtualMachineImpl object that contains the CustomFields property.

Get - VM | Get-views as you watch a VirtualMachine object that has a property customValue (but no CustomFields property).

Tags: VMware

Similar Questions

  • Question about creating view

    Hi all

    for example, I need to give permission for a user that has select permission on a table, but I need to hide certain columns in the table for that user.

    I know for this application there need create a view and assign the columns needed to this point of view, then give

    access to select this point of view of a user.

    My question is: this view will affect anything if I create? He will take the tablespace volume?

    Or there is no effect and I can create?

    the table to which it is necessary to create point of view is very large.


    A view is nothing else than a stored query, so no, it's not going to take place to create, with the exception of a very trivial amount of space in the data dictionary to store the definition.

  • Question about LogMiner Viewer GUI

    Good evening

    I wanted to start the graphical interface of LogMiner Viewer (which the Concepts book said done in Enterprise Manager).

    I found nothing in Enterprise Manager, who seemed to be the LogMiner Viewer GUI. (might have missed)

    After a little research on Google, I found this:
    oemapp.bat lmviewer
    I've looked everywhere and there is no oemapp.bat anywhere on my machine.

    I searched the area to download Oracle, thinking that maybe it was something that I needed to download. Has not found such a thing. (found a lot of good documentation)

    The question: How can I get the LogMiner Viewer GUI? (I am running Windows XP Pro SP2 - 32-bit Oracle GR 11, 2)

    Thank you for your help,

    John.

    Published by: 440bx - 11 GR 2 on August 9, 2010 18:38 - added "GUI viewer" in the thread title

    John,

    Unfortunately, it's a little confusing. I have check the Concepts guide that asks the person to consult the guide for LogMiner Utlities. But in the guide to public services, they mention this sql interface only one graphical interface is not displayed. In the search for the RTO, all the Log Miner, this brilliant page will appear that except by saying that it is good and can be called through GUI, does not say anything else.
    http://www.Oracle.com/technetwork/database/features/availability/logmineroverview-088844.html

    I tried to find the same in Enterprise Manager help, but he also didn't tell em anything on this subject. But further research has revealed that Arup article that does not explain the flow of Logminer in EM.
    http://www.Oracle.com/technetwork/articles/SQL/11g-transactionmanagement-092065.html

    According to this article, there is no direct link to call the tool, but it happens in action in the backend. I'll give it a try today while I am running 11.2 here in my session as well.

    It will be useful.

    Aman...

  • a question about VMware View

    Hello

    I want to know when we prepare a parent VM and install us one application on which allowed as Kaspersky endpoint security or other, what is happening with this when the composer creates the linked clones? How the linked clones take permit?

    and if the virtual machine is not persistent (I mean whenever a client connects to it, she creates, and every time it disconnects the virtual machine will be deleted) then what happens to software with license? and what about the name of the computer? and what is being added to the Active directory?

    Thank you

    Thank you Mohammed.

    applications there volume licenses? What is the difference between the volume licensing and standard license and how do we get it?

    Thanks again

    My best regards

  • Questions about VMware View

    Hi, I need to provide always on desktops to remote 50 users. I have been using VMware workstation to provide these desktop computers, but it was a temporary solution that is quick and easy.

    I started by installing the free ESXi which works fine except that these virtual machines are running an application that requires DirectX. When reading information VMware views looks like it's maybe the solution I need, but I can't say if she can provide always on workstations or if desktop computers are provided according to the needs. My 2nd concern is cost. I don't mind spending the money for VMware View, but looks like I have to have seen running in AD and that it will require me to install many other products such as VMware infrastructure 3.5. Someone has some good links to install VMware View and the provisioning of desktops?

    When you purchase View 4.5, business or first, you get ESX and vSphere vCenter / I.  If you are supported on this part.  You don't need to buy that separately.

    With respect to reviews, the guides are:

    To start using the doc started get: http://pubs.vmware.com/view45/ol/wwhelp/wwhimpl/js/html/wwhelp.htm#href=get_started/t_getstarted.html

    http://www.VMware.com/files/PDF/VMware-View45-evaluators-Guide.PDF -> is excellent for your POC on VMWare View.

    http://www.vmware.com/pdf/view45_installation_guide.pdf -> installation guide.

    You will need to have Active Directory in your environment.  View is used to automatically configure your desktop to your users.

    If you use clones of link or local mode (the ability to check your workstations), then you will need to Prime Minister, Enterprise edition will be beneficial.

    Hope this helps,

    Larry

  • question about a view that I have created to solve performance problems

    Dear alll;

    I have an interesting problem. I created a view to help solve some performance problems, I've had with my query

    See below
    create or replace view view_test as 
    
    Select trunc(c.close_date, 'YYYY-MM-DD') as close_date, t.names
    from tbl_component c, tbl_joborder t
    where c.t_id = t.p_id
    and c.type = 'C'
    group by trunc(c.close_date, 'YYYY-MM-DD'), t.names
    ;
    and I tried test the view using the following syntax and I get the following errors
    select k.close_date, k.names from view_test k
    where k.names = 'Kay'
    and k.close_date between to_date('2010-01-01', 'YYYY-MM-DD') and to_date('2010-12-31', 'YYYY-MM-DD')
    However, I get the below error messages
    ora-o1898: too many precision specifiers
    I Googled it and tried a lot of things online but I can't solve the problem unfortunately, and I don't know why.



                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    What you trying to accomplish with TRUNC:

    SQL> select trunc(sysdate, 'YYYY-MM-DD') from dual;
    select trunc(sysdate, 'YYYY-MM-DD') from dual
                          *
    ERROR at line 1:
    ORA-01898: too many precision specifiers
    

    I think you meant simply TRUNC (c.close_date)

  • Questions about the views system...

    Hello

    (1) why this 2 queries are not similar?

    Select count (*) from SAMPLE_TABLE;
    Select num_rows from user_all_tables where table_name = 'SAMPLE_TABLE. "

    (2) in the views system, I can learn about primary piece?

    (3) where I can the description of each of the views system and what information it contain?

    Best.

    (a) the statistics in views because _TABLES are only updated when you calculate freshly statistics, while the number of rows in a table established by count (*) is dynamic and always up-to-date.
    (b) what do you know about primary keys? The columns that make up their, for example? USER_CONSTRAINTS where constraint_type = 'P' will tell you what primary key constraints exist and the indexes are used to enforce them. You can then do a query of USER_INDEXES and USER_IND_COLUMNS to work on the columns are part of these indices, where they are stored and so on.
    (c) the official documentation lists each view (see part II of this page, for example: http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/toc.htm)

  • question about get-CDDrive

    I don't see an option under "get-CDDrive | FL' to determine when an ISO was mounted, this funcationality exist?

    We would like to plan a task to cut any ISO mounted for more than a few days.

    Someone at - it something like that?

    Thank you.

    Try something like this to remove all ISOs

    Get - VM | Get-CDDrive. where {$_.} IsoPath} | Game-CDDrive - NoMedia

    If you want to make this person dependent on the time that ISO has been mounted, you can use the events to find the last datetime mount.

  • A small Question about getting the value of an element via a variable.

    Hello

    My database is 11 GR 2, form server 10g.

    I have a canvas named canvas14, there is a multi-onglet inside (tab1, tab2).

    In the "Key-Exit" trigger, I would get the name of the current tab and do something then exit_form.

    To get the name of the tab, I used a function as follows.

    FUNCTION getTabName RETURN varchar2 IS

    tp_nm VARCHAR2 (30);

    tp_ID TAB_PAGE;

    tp_lb VARCHAR2 (30);

    BEGIN

    tp_nm: = GET_CANVAS_PROPERTY ('CANVAS14', topmost_tab_page);

    tp_ID: = FIND_TAB_PAGE (tp_nm);

    tp_lb: = GET_TAB_PAGE_PROPERTY (tp_id, label);

    Return tp_lb;

    END;

    Key-release trigger, my share of the code follows.

    v_Name: = getTabName;

    v_item: = ':'. v_Name |'. the ';

    If v_item is not null then

    clear_form;

    on the other

    exit_form;

    end if;

    v_item is: tab1.des now. I want to get the value of: tab1.des.

    How to get the value of v_item, not the variable itself?

    Thanks in advance.

    Phil

    Use NAME_IN with the itemname without the colon as

    value: = NAME_IN ('tab1.des');

  • Question about a view inline or function within SQL

    Hi all


    I would like to know if using a view inline with a sql query is better or a call of function within the sql query is preferable.

    When I check the plan explained in both cases I see no difference in the cost.

    Appreciate your valuable suggestions on this.


    Thank you
    Maddy K.

    A function of a query will be worse than an inline view, given the context of switching between SQL and PL/SQL engines.

    See http://asktom.oracle.com/pls/apex/f?p=100:11:0:P11_QUESTION_ID:60122715103602
    Bonus http://www.oracle.com/technetwork/database/features/plsql/overview/doing-sql-from-plsql-129775.pdf

  • Questions about student discount for CS6

    I know I want to get the premium Production CS6 from B & H, but just recently that I realized that my class of media production could possibly make me eligible for a discount for students. I have a few questions about get a student discount I've ever gotten before.

    My first question is: should I still pay the rest of the full price? Or, more important still, the student version will stop working after a period of time?

    My second and more important question is about installing on more than 1 PC. I am currently on my beast of a laptop. The iMac to my school with short CS6 smooth like butter, and it's spec lower than my laptop. Despite this, I plan to get a PC in the future office of Monster for my productions and I'm confused about my rights to installation with a copy of the student. I understand very well that I can't install it on the computer of another of Kathy; only on my own computer. He mentions (for teacher I guess) you will need to purchase additional licenses for installation on other computers. This means that when I buy a new computer, I need to buy a new license as well? Or I can use the one provided in the box?

    Any clarification on these questions would be appreciated. Thank you

    Your license does not expire and you never have to pay the price difference. You can install the suite on one type of computer, even if you have 2 activations. A series of PC does not work on Mac and vice versa. Only 2 PC installs will work or 2 Mac ones, respectively. The activations can be managed for in applications or by giving the customer a call to reset, if you their exhausted and forgot to turn it off.

    Mylenium

  • Question about the API

    Dear all,

    I have a question about getting this line of code to the JSF API.
    FacesContext facesCtx = FacesContext.getCurrentInstance();
    Locale defaultLocale = facesCtx.getApplication().getDefaultLocale();
    I don't know what locale will be this line give me?
    My hypothesis is that, this returns the locale of the server in which the application has been deployed?

    Currently, it returns the locale of my current computer. But I would like to know, what happens if I deploy
    This in another computer to another region?
    Can anyone confirm my doubts please? Thank you

    getDefaultLocale returns the locale by default in the form of installation in the config.



  • Question about the cmdlet Get-VIProperty (ideally oriented @ LucD)

    Hello everyone

    Sorry for the title of discussion, but once you read on you will understand where I come from.

    I am reorganizing ALL my scripts powercli, functions, advanced et al. to TRY to become more 'effective' (dare I say) in my script. So to start I thought useful the cmdlet "Get-VIProperty" has been and I wanted to use much more. Did some autour research and found a great download LucD had prepared on his blog of a variety of different VIProperties. Directed practice how they were immediately started to use what he blogged about his position.

    My question is this (and its powershell probably more than PowerCLI "maybe"): when I am trying to add in the VIProperties in my "profile (so they load into a starting window of console PS) I go in the following example:

    New-VIProperty - ObjectType Cluster - name _NumberOfVmotions-value {param ($cluster) $cluster. ExtensionData.Summary.NumVmotions} - Force

    It works when entered in a session of PS, however, when I load the following:

    New-VIProperty-name _NumCPU - ObjectType Cluster - value {$TotalPCPU = 0 $Args [0] |} Get-VMHost | foreach {$TotalPCPU += $_.} {NumCPU} $TotalPCPU}-Force

    However, when I load it as follows:

    New-VIProperty-name _NumCPU - ObjectType Cluster

    -Value {}

    $TotalPCPU = 0

    $Args [0] | Get-VMHost | {foreach}

    $TotalPCPU += $_. NumCPU

    }

    $TotalPCPU

    } - Force

    THIS WORKS.

    I know this may sound pedantic, but I would like to organize my viproperties like below, so they are a little more clear on the page. That is why the requirment to see if the above commands could be executed as 'one-liners ':

    # NumberOfHosts

    New-VIProperty - ObjectType Cluster - name ' _NumberOfHosts

    -The value {param ($cluster) @($cluster.) {Extensiondata.Host). County} - BasedOnExtensionProperty 'To host' - Force

    # NumberOfVMs

    New-VIProperty - ObjectType Cluster - name ' _NumberOfVMs

    -The value {param ($cluster)($cluster.)} Extensiondata.Host | % {Get-view $_} | Measure-object - InputObject {$_.} Vm.Count} - sum). Sum} '

    -BasedONextensionProperty 'host' - Force

    So if it's not possible it's fine - I just wanted to be able to confirm, it's all.

    As usual, thank you very much in advance for help

    Concerning

    Munster99

    If you want to add two other PowerShell/PowerCLI commands on a single line, you must use the semicolon to separate them:

    New-VIProperty-name _NumCPU - ObjectType Cluster - value {$TotalPCPU = 0; $Args [0] |} Get-VMHost | foreach {$TotalPCPU += $_.} NumCPU}; $TotalPCPU} - force

  • I posted a question about the FBI virus. How to get rid of him. I ' v was only one answer. Someone to give here can help me with that. I am 62 and although I use my high tower dyly I'm not a COMPUTER technician.

    I posted a question about the FBI virus. How to get rid of him. I ' v was only one answer. Someone to give here can help me with that. I'm 62, and I'm not a computer genius. I have some [eratly helpgetting need to get rid of the virus of the FBI. MS antivirus and scan not work or identify it.  Help, please! 1

    Emisoft is a desperately slow download, as I just discovered.

    You can simply run Malwarebytes and it...

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    Got a legal question about the installation of Adobe Photoshop Elements.  How to get help from Adobe using a chat session?

    AdobeTomFaith

    If your program is Photoshop Elements, then you have posted in the wrong forum. Some how your son got posted in the Forum Adobe Premiere elements (video editing). Please re-post your thread in the Adobe Photoshop elements Forum.

    Photoshop Elements

    Wherever your son is, please include Adobe Photoshop Elements version and operating system and the description of the installation problem (error messages, stage of failure, etc.)

    Support Adobe seems to be limited to Adobe cat and is classically limited to the current version which is 13. Then, you the best avenue to success is likely to be through the Adobe Photoshop elements Forum. But that shouldn't stop you trying to determine what kind of support you can get from Adobe cat on your question.

    I would offer this link that is specific for Adobe Chat download and installation

    Contact the customer service (this is not the same destination as shown in a previous post in your thread)

    This link is specifically designed for

    Photoshop Elements

    Download, installation, setting up

    Download and installation

    Panel discussion

    (18:00 - Friday 7 pm Sunday)

    Thank you.

    RTA

Maybe you are looking for

  • Error when opening Veristand workspace

    The attached dialog box appears when I open the screen of the workspace in the Project Explorer. When I click 'OK' to open the workspace and there seems not to be a problem, but it's always very disconcerting. Anyone know how to fix this error? Thank

  • P0.0 6516-setting PCI to high causes the voltage drop across the external power supply

    Hello I use a PCI 6516 for 24V output. I have my power supply connected to pin 5 positive cable and the negative to pin 19. When I put the port 0, line 0 (P0.0) high heat, I have a voltage drop on the power supply to about 1.9V. There is no other son

  • Redirect to a site unwanted

    Hello Almost whenever I click on the web search results, I get redirected to the following address, which begins as follows: http://www.bywill.net/?search= and it takes me to an unwanted website. What should I do to fix this? Thank you

  • New drive to move public folders

    I would have all my data stored on an external drive and have managed to get my personal folders moved but not public folders.  Is this possible?  I'm the system administrator, but Vista is new to me.

  • How to read the file audio .wav on lumia 620

    I'm not able to play the audio .wav on lumia 620. I used an online converter and converted this track in mp3 format. But even in this case, there is no sound if I play this. pl advice.