Find specific item based on itemproperty

Trying to loop through some items in the registry to find the one that contains an itemproperty with a specific value ("VMware Tools"). I was thinking this would work:
Get-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*" | Where-Object {(Get-ItemProperty -Path $_ -Name DisplayName) -match "VMware Tools"}
But it just loops through with an error for each item saying
Get-ItemProperty : Cannot find path 'C:\_scripts\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{ED98ABF5-B6BF-47ED-92AB-1CDCAB964447}'
because it does not exist.
At line:1 char:95
+ ... Where-Object {(Get-ItemProperty -Path $_ -Name "DisplayName") -match "VMware Too ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\_scripts\HKE...B-1CDCAB964447}:String) [Get-ItemProperty], ItemNotFoundException
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
The guid changes for each error. What am I missing here?

Hi Pat,
I’m writing to just check in to see
if the suggestions were helpful. If you need further help, please feel free to reply this post directly so we will be notified to follow it up.
If you
have any feedback on our support, please click here.
Best Regards,
Anna Wang
TechNet Community Support

Similar Messages

  • Find specific item in a hierarchy

    hi all,
      i have a hierarchy created.i have one input field and one submit button.when i enter the an item(eg.company code) in the input field ,that particular row should be pointed.How can i do that.
      regards
        kukku

    hi,
    Catalog is the .java file from vr i m getting my data for the tree hierarchy.
    i am getting the row id of the given item.if i set the lead selection with that row id,i m getting array index out of bound exception.
    here is the code..
    for (i = 0; i < Catalog.getLength(); i++) {
                   if (booktitle.equalsIgnoreCase(Catalog.getTITLE(i))){
                        msgmgr2.reportSuccess("book id1  " + Catalog.getCATALOGID(i));
                        x = i;
                        break;
              msgmgr3.reportSuccess("row id is" + x);
             wdContext.nodeCatalogEntries().getCatalogEntriesElementAt(x);
             wdContext.setLeadSelection(x);

  • Sharepoint Online: Find an Item box is not finding all items in a list based on keyword search

    I am using SharePoint Online.
    I have a standard SharePoint list with a "Name" field (single line of text) and a "Description" field (multiple lines of text).  The Find n Item search box is present as expected, and works very sporadically.  For example, I
    have an item with the word "white" in the Description field.  Searching for "white" doesn't find the item.  I have a number of items with the word "vending" in the Name field.  Searching for vending returns some
    of the items, but not all of them.  
    I have gone into the list settings (Advanced) and reindexed the list.
    Here are two screenshots that illustrate the issue.  The first is unfiltered. The second shows a filter on the word "vending".  Note that some are found and some are not.
    Filtered
    Any idea what's going on?  

    I am also experiencing an issue with the find. If not the same issue David is having, I suspect it is related, so I will describe it here.
    I created a list based on the Contacts content type and within a standard list view, entering values in the "Find an item" box will match content of some columns, but not others. The four columns that the find misses are Position(renamed from Job Title),
    Email Address, Mobile Phone, and Years Of Service (a Numeric column I added to the list). I too have re-indexed the list and retested after several hours.
    Full Name and Email Address are both native columns of the Contact content type and both are Single line of text. I am able to filter the list by finding partial matches on Full Name, but not Email Address.

  • Assistance SP to restrict OQUT.DocDueDate based on specific Item

    Hello
    I am trying to create a SP which restricts the 'Valid to' date of Quotes which contain a specific Item: (OQUT.DocDueDate)
    --No valid to date later than 30 september for WGR -1-BSPP
    If @object_type = '23' and @transaction_type IN ('A','U')
    BEGIN
    If Exists (Select T0.DocEntry from [dbo].[OQUT] T0 Inner Join QUT1 T1 On T0.DocEntry=T1.DocEntry
    Where T0.DocEntry = @list_of_cols_val_tab_del and T1.ItemCode = 'WGR-1-BSPP' AND T0.DocDueDate > '30.09.2014')
    BEGIN
    Select @error = -1,
    @error_message = 'Adjust valid to date, must be before 30th September'
    End
    End
    The query is executing ok without error but I get following error when trying to add a quote with the part:
    "The conversion of a varchar data type to a datetime data type resulted in an out-of-range value (CINF.)"
    I can see that my understanding of the dating part is wrong - can anyone assist?
    Thanks
    Karen

    Try this:
    --No valid to date later than 30 september for WGR -1-BSPP
    If @object_type = '23' and @transaction_type IN ('A','U')
    BEGIN
    If Exists (Select T0.DocEntry from [dbo].[OQUT] T0 Inner Join QUT1 T1 On T0.DocEntry=T1.DocEntry
    Where T0.DocEntry = @list_of_cols_val_tab_del and T1.ItemCode = 'WGR-1-BSPP' AND T0.DocDueDate > convert(datetime,'20140930',103))
    BEGIN
    Select @error = -1,
    @error_message = 'Adjust valid to date, must be before 30th September'
    End
    End
    Regards,
    JC.

  • OIM - Email notification to a specific user based on a dynamic rule

    Hello, After creation of account in a particular target resource I need to send an email to a specific user based on the location of the user (e.g area admin).
    In the notification tab of process tasks, I see only "Assignee", "Requestor", "User", "User Manager"? How can I achive the above specified requirement?
    Before posting this question, I tried to search the forum for any previous posts related to this. But I couldn't find any. May be I was not searching with right key words.
    Any help is appreciated. Thanks in advance.

    You'll need to custom code an adapter to send the email, then you can send to any user you want. Create a new task and trigger it off the completion response code. You can use the following apis:
    tcEmailNotificationUtil sendMail = new tcEmailNotificationUtil(ioDatabase);
    sendMail.setBody("Type your body here or use a string variable");
    sendMail.setSubject("Type your subject here or use a string variable");
    sendMail.setFromAddress("[email protected]");
    sendMail.sendEmail("[email protected]");
    Just populate the above pieces with the information needed.
    -Kevin

  • How do I use the find method to find multiple items in a single paragraph?

    I am desigining a script to find any instances where ctrl+b and ctrl+i are applied to body text and then replace those character format overrides with Italic or Bold chartag.  Here's what the script is supposed to do:
    put the find method in a while loop that searches for character format overrides.
    If a character format override is found, pass the text range returned by the find method and the CharPropsChange flag to the GetTextForRange method.
    Use a boolean compare between the idata of the text item to the character angle and character weight constants.
    Whichever boolean evaluates to true, then use the SetTextProp method to set properties of the text range to the properties of the italic or bold character tag.
    This script does work on the first character format override found however it ignores any other overrides in the same paragraph. The cause of this is that the while loop updates the text loc that the find method uses to the next paragraph in flow. I suspect that i need to add an inner loop that goes through all the text in a single paragraph, where at teach iteration the text loc used by the find method is based on the same paragraph but the offset is modified. I am just not sure how to do that.
    function removeOverrides (pDoc)
        var vDocStart = pDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;
        var vBoldFmt=getCharFmt (pDoc, 'Bold')
        var vItalicFmt=getCharFmt (pDoc, 'Italic')
        initFA_errno ();
        while (FA_errno==Constants.FE_Success)
            var vTextLoc = new TextLoc(vDocStart,0);
            var vFindParams=findOverrideParams (pDoc);
            var vTextRange=pDoc.Find(vTextLoc,vFindParams);
            if (vTextRange.beg.obj.ObjectValid())
                var vTextItems=pDoc.GetTextForRange (vTextRange, Constants.FTI_CharPropsChange)
                if (vTextItems.length==!0 )
                    if (vTextItems[0].idata==Constants.FTF_WEIGHT)
                       pDoc.SetTextProps (vTextRange, vBoldFmt.GetProps())
                    if (vTextItems[0].idata==Constants.FTF_ANGLE)
                       pDoc.SetTextProps (vTextRange, vItalicFmt.GetProps())
                    } else (Log (vLogFileName, '\nERROR: No items were found in the text format array but format override was found: '+pDoc.Name))
            vDocStart=vDocStart.NextPgfInFlow;
    function findOverrideParams (pDoc)
        var vFindParams = AllocatePropVals(1);
        vFindParams[0].propIdent.num = Constants.FS_FindObject;
        vFindParams[0].propVal.valType = Constants.FT_Integer;
        vFindParams[0].propVal.ival = Constants.FV_FindCharacterFormatOverride;
       return vFindParams;

    Hi Rick,
    Well, following up on the previous posting, I actually did figure out how to make it work but it seems rather inefficient. I can insert a new paragraph right after the paragraph that has the table anchor but when i cut the table, i also cut the paragraph i just created. So to get around that, I create two paragraphs, so that there will be one paragraph left after i do the cut and that is the paragraph that I paste the table into. Once the table is pasted into the new paragraph, I delete the other paragraph that I created.
    Here's the updated code from the for loop:
    var vTbl = vDoc.GetUniqueObject(Constants.FO_Tbl, vTextItems[i].obj.Unique);                 
    var vAnchorPgf=vDoc.NewSeriesPgf (vTbl.TextLoc.obj)      
    var vAnchorPgf2=vDoc.NewSeriesPgf (vAnchorPgf);        
    var vAnchorTextLoc=new TextLoc (vAnchorPgf2, 0);             
    var vTblTextRange=new TextRange ();        
    vTblTextRange.beg.obj=vTbl.TextLoc.obj;       
    vTblTextRange.beg.offset = vTbl.TextLoc.offset;        
    vTblTextRange.end.obj=vTbl.TextLoc.obj;        
    vTblTextRange.end.offset = Constants.FV_OBJ_END_OFFSET                 
    vDoc.TextSelection=vTblTextRange;        
    vDoc.Cut (0);                
    vTblTextRange.beg.obj=vAnchorTextLoc.obj;        
    vTblTextRange.beg.offset = 0;              
    vTblTextRange.end.obj=vAnchorTextLoc.obj;       
    vTblTextRange.end.offset =0;                 
    vDoc.TextSelection=vTblTextRange;       
    vDoc.Paste (0);                   
    vAnchorPgf2.Delete();        

  • How to render web items based on the authorisation profile of the user

    Hello,
    Is there any way to render web items based on the authorisation profile of the user. The only way i can think of is:
    - Write ABAP to look up into the security mapping tables.
    - Convert the ABAP report into RFC-Enabled FM. The selection variables will be part of the import/export parameters of FM and table can be used to display the result.
    - Create HTML template using WAD, write Java Script to call the FM and map the import/export parameter. Display the result in Table.
    But i don't know How to use the Java Script to call Function Module (FM) and get back the authorization through parameter.
    Is anyone know about it or is there any other method to do it? I can't find any solution and it is very critical for me.
    Any help is highly appreciated.
    Rajat

    Hi Rajat,
    Do you mean that you want certain users to be able to use only certain web items? I think you can use the libraries for that and assign them to roles:
    http://help.sap.com/saphelp_nw04/helpdata/en/4e/0f813b420ce60ee10000000a114084/content.htm
    Hope this helps...

  • Could not find selected item matching value "New" warning message in ADF

    Hi,
    I have a selectOneChoice1 for a field which has the following fixed values in it. And while creating it, I selected the 'SelctionRequired' option so that this field will always have a value.
    New
    Pending
    Completed.
    While navigating to this page, I am trying to set the value to 'New' (Retrieved from the DB) in the backing bean. But when the page is rendered, the above field is empty with the above options in the list and jdev has the follwing error message in its log.
    WARNING: Could not find selected item matching value "New" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=selectOneChoice1]
    Can any one help me with this issue?
    Thanks,
    Priya

    The value of a list binding is the zero-based integer position in the list that is selected, not the actual underlying value.
    The simplest way to set the value of an attribute is to use an attribute binding (which can be bound to the same attribute as the list binding). When you set the value of an attribute binding, it sets the value as you supply it. Otherwise, you'd need to set the list binding's value to the numerical "slot" number of the one you want to change the value to.

  • Setting value of items based on a radio group selection

    Hi,
    I have a radio group with 3 values (let's say A, B, C)... at the moment I have dynamic actions set to hide and unhide items based on the selection from the radio group...
    e.g when value A is selected then only item_1 and item_2 are displayed, when value B is selected then only item_3 and item_4 are displayed... and so on...
    idea was to let users to only enter information related to specific selection... but with what I currently have, users can select option A from the radio group and can enter information in item_1 and item_2 and then they can change there minds and select option B and start entering information in item_3 and item_4 and when they save the form they potentially could have information in all items (item_1 to item_4 and so on)...
    Is there a way I can set the value of certain items to null based on the selection from the radio group... e.g when user select option A, then values of item_3 and item_4 be set to null and if they select option B, then values of item_1 and item2 be set to null...
    Please advice how to approach it the best... I would appreciate a step by step solution as I am a new bee...
    Thanks in advance

    Hi,
    You can hide and disable other items.
    Disabled items values are not submitted.
    And you can create after submit computation that set NULL to item session state according your radio group state
    Regards,
    Jari

  • How to find open item in bsik table

    anyone can tell me how to find open items for vendor in bsik table or it will store only open item.
    i debug the tcode fbl1n to see . but not able to find
    Kumar

    Hi
    There is no specific field name for open item in the table BSIK.Yes BSIK include a structure named ABSIK_PSO and which is a "IS-PS: Data appendix of open items vendors".
    Yes there is a field name
    BUZEI - Line Item
    EBELP - Item
    You check with your requirement again and try to use these fields,if you still facing some probs than write back to me,i will try to give the appropriate solutions.
    Thanks
    Mrutyunjaya Tripathy

  • Workflow to grant access to each List item based on a column value

    Hi,
    I have 2 lists Risks and RisksLookup.
    In Risks, I have Title, Description, service impacted and status columns.
    In RisksLookup, I have service impacted, AD1, AD2, AD3, AD4 and AD5.
    I have a requirement where in I have to write a Workflow to provide access to each List item based on the value of service impacted. i.e. If service impacted in Risks List is Client A, I have to lookup what all AD groups are present for Client A in RisksLookup
    List and provide access to only those groups for that item.
    Regards, Shreyas R S

    Hi
    another approach
    create 5 more lists, dedicated to each impacted service. for  Each one these lists apply needeed right ( based onAD groups )Keep you main list where first level will add new items . Attach a workflow to this main list, which will start when an item
    is added and which will add specific item's value to his new list ( based on impacted service value )
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Get the index of a specific item in a Datagrid

    Is their an easy way to get the index of specific item in a datagrid.  So say my DG holds ten items of type foo.  I need to find the index of foo #8. Remember the foo's may not be in orde 1-8 because of sorting or something. 
    Do I just need to run iterate through the rows and find, which matches the object I am looking for?

    Thats it thanks. DG is getting refreshed so old objects don't match up to new objects so have to do it manually.
    Thx.

  • New PO from specific item of old PO doc

    Hello ,
    I have one qeustion about PO.
    when I can not find PO on the left pane (PO overview )
    I have to find that...(it is ok ) but when i try to copy specific item(lines) of PO
    document.. to New PO
    I coundn't.
    Could you pls kindly let me know?

    Hi,
    Your requirement is possible to adopted for the particular PO line item copied to new purchase order using T-code ME21N document overview option are as follows.
    Step 1 -  Type ME21N - Create Purchase order
    Step 2  - Select PO document type, Vendor & PO date.
    Step 3  -  Click Document Overview button and open new window menu in PO screen left side
    Step 4 -  Click Selection Variant button in the left side window menu and then select Purchase Order option.
    Step 5 -  Now next screen open and give OLD Purchase Order document number in Purchasing Document ______ input field &
                  other input data filed is empty.
    Step 6 -  Now Execute the screen and shown old PO number with 5 times ( if old PO 5 line items are available) 
    Step 7 -  In the OLD PO first 3 line items to create new PO, Select 1st line using mouse and then adopt button click   
                  (Selection variant next button), 2nd line select & adopted and finally 3rd line select and then adopted.  After adopted 3
                   lines are come to new purchase order line item.
    Step 8  - Click Document overview button, the left side window menu closed.
    Step 9 -  Adopted 3 line item rate, qty and tax details to be provide and then SAVE as new Purchase Order.
    Hope, the steps are very useful to you.
    Regards,
    K.Rajendran

  • [svn:fx-trunk] 4982: Moving DataGroup from item based lookup to an index based lookup.

    Revision: 4982
    Author: [email protected]
    Date: 2009-02-16 23:31:05 -0800 (Mon, 16 Feb 2009)
    Log Message:
    Moving DataGroup from item based lookup to an index based lookup. Also, we now cleanup old item renderers when the dataProvider changes. This solves some memory leak problems.
    Because of this, we should now be able to deal with duplicate items again.
    We still need to work on data collection changes in the virtual layout case.
    QE Notes: Please add the tests for dup items back in
    Doc Notes: -
    Bugs: SDK-19245, SDK-18043
    Reviewer: Hans
    tests: checkintests, DataGroup and FxList mustella tests (some new ones failed, but are really due to SDK-19287, and these tests should be excluded to that bug now)
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-19245
    http://bugs.adobe.com/jira/browse/SDK-18043
    http://bugs.adobe.com/jira/browse/SDK-19287
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/DataGroup.as

    GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
    cancel).  I only found this out when recreating your workflow on a similar, but much more complex list set.  
    To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace.  I configured it as "Copy from
    Variable: Countries, starting at
    1 (Output to Variable: Countries), which takes care of this issue in those few cases.
    Otherwise, WOW!  AWESOME JOB!  Thanks!  :)

  • OPEN ITEMS based on  GL wise

    Hi Frenz,
    can any body help me in finding the standard BAPI or Function module to fetch the OPEN ITEMS based on General Ledger Acc.
    Thanks,
    Priya

    Please check the below function modules:-
    BAPI_GL_ACC_GETBALANCE         Closing balance of G/L account for chosen year
    BAPI_GL_ACC_GETCURRENTBALANCE  Closing balance of G/L account for current year
    BAPI_GL_ACC_GETPERIODBALANCES  Posting period balances for each G/L account
    Otherwise you can also code your logic in the same way as in BAPI_AR_ACC_GETOPENITEMS function module.
    Regards,
    SDNer

Maybe you are looking for

  • Oracle R12 installation problem

    Hi, we have installed 12.1.3 in windows xp sp2 machine.installation went fine and login page appeared and everything was fine. when we restart the system the login page doesn't seem to appear its giving " internal server error" we reinstalled the app

  • LIKE Query Optimization

    Hello! I'm building dinamic SQL to query a products table, and i use LIKE '%xxx%' statements to search the table. How can i optimize this? Oracle would not use any index, isn't it? READ ONLY transactions would speed anything? Thanks., ferran

  • Trouble setting up hard drive

    i'm having trouble setting up my hard drive. i have a 40GB with 5 partitions: part1 (primary) - slackware install with boot flag part2 (primary) - /home directory part3 (primary) - 1GB swap part5 (logical) is ~10GB storage part6 (logical) is ~10GB fr

  • CRM 5.0 to CRM 6.0 (2007) - Media Information

    Hello! I am working on upgrading our current CRM 5.0 systems to CRM 6.0 (2007) version and have used the Media List SAP CRM 2007mentioned in https://websmp205.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000704565& to download the software.  I have go

  • No computers are shown on my WSUS console

    Windows 2012. The updates are showing but no computers. I have setup the gpo policies as per instructions. Not using client-side targeting. Initially and before my time there was a WSUS server on 2008 r2 but it would not pickup any WIN 8 workstations