Loading display names in array

Hi,
I would like comparing registry display names before and after a software installation.
So the function below is :
1. loading display names
2. Then I create manually a registry display names
3. I load again the display names
4. And I am running a comparison between previous and after installation.
The display names, I created is Vcredist2005. So the comparison should return Vcredist2005.
But I get only the last value of the arrays. Why??
Function Get-DisplayName {
Begin {
[string[]]$regKeyApplications = 'HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
'HKLM:SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
Process {
[psobject[]]$installedApplication = @()
ForEach ($regKey in $regKeyApplications) {
$installedApplication += Get-ChildItem $regKey | foreach { Get-ItemProperty $_.PSPath } `
| select DisplayName `
| Where {$_.DisplayName -ne $null}| Sort-Object DisplayName
$installedApplication=$installedApplication | Sort-Object DisplayName
Write-Output $installedApplication
End {
$a=Get-DisplayName
$a.Count
#Add a false display name in the registry before continuing running.
#I added Vcredist2005
pause
$b=Get-DisplayName
$b.Count
Compare-Object -ReferenceObject $B -DifferenceObject $A
Thanks,

When you're using compare-object to compare objects you should specify the property you want to compare:
Try this:
Compare-Object -ReferenceObject $B -DifferenceObject $A -Property DisplayName
Inspired by Carlsberg.

Similar Messages

  • How to show users display name and email address in open social widget?

    Hello experts,
    Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
    Best regards,
    Ville

    Hi Ville,
    in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
    If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
    Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
    The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
    Look at this - SAP HANA Cloud Platform SDK >
    Package com.sap.security.um.user
    Interface:
    User
    This interface provides read access to user data and is an extension of Principal.
    UserAttribute
    The interface represents abstraction over a user general attribute, such as an e-mail address.
    UserProvider
    This interface represents the service interface which provides read access to a user implementation.
    Inbal 

  • Tomcat web.xml "display-name" using flex.messaging.MessageBrokerServlet

           Hello,
    When my web application starts with the BlazeDS servlet flex.messaging.MessageBrokerServlet defined in the web.xml we have an error because in the display-name defined at top level in web.xml we have some text containing character ':'. The error is traced to inside the function
             flex.management.BaseControl.getObjectName()
    Which gets the object name, and this function calls
       BaseControl.getApplicationId()
    which finally calls
    ServletConfig.getServletContext().getServletContextName()
    This will return or display-name from the web.xml with all  it's text. This text contains among other characters the character ':'.  We use this tag for the display in the Tomcat Manager to see version  number and other of deployed project.
    After retrieving this name it is appended in the getObjectName() function to a buffer, this StringBuffer that already contains flex.runtime. and  now this name is appended (still with all that we are using for Tomcat  Manager with ':' character and other). After the name, other things are  appended. Our problem is that, after constructing this StringBuffer an instance of javax.management.ObjectName is created. In it's constructor it takes a String name  as input. This String is parsed in base of characters ':', '*', '?',  '\n' and so on, and since we have some of these characters in our  display-name it all goes wrong.
       My question is, if this is a bug, a limitation or if it is documented that using flex.messaging.MessageBrokerServlet we can not use certain characters in the display-name of the web.xml?
       Greetings, Tim
       We are using
    Tomcat 5.5.23
    Jdk 1.5.0_14
    blazeds-src-4.0.1.17657
    part of web.xml
         <display-name>
             Version: 1.10.0.3 (01/02/2011), Environment development, AGP:  10.220.6.8:1557/AGPSVI, AGP_STAGE: host 10.220.6.8:1557/AGPSVI
         </display-name>
         <description>IMPRESA progetto con undergroung</description>
         <listener>
             <listener-class>flex.messaging.HttpFlexSession</listener-class>
         </listener>
         <servlet>
             <servlet-name>MessageBrokerServlet</servlet-name>
             <display-name>MessageBrokerServlet</display-name>
             <servlet-class>flex.messaging.MessageBrokerServlet</servlet-class>
             <init-param>
                 <param-name>services.configuration.file</param-name>
                 <param-value>/WEB-INF/flex/services-config.xml</param-value>
            </init-param>
             <load-on-startup>1</load-on-startup>
         </servlet>

    I have found that this is a bug and there is an issue open at the "Adobe Bug and Issue Management System", BLZ-617. I don't know if work is in progress, but when that issue is closed the problem will be solved.
      Greetings, Tim

  • Need to set "Title", "Display Name" and "Name" fields to custom string property "RMA Number" for each instance of custom work item

    Hi,
    We have a custom Work Item we use to track RMA's. I've created a string property called RMA Number which is also used as a key.
    RMAs do not have titles or any other identifying properties other than the unique RMA number (think incident number).
    I was wondering what the best approach would be to set these other fields ("Title", "Display Name" and "Name") to the RMA Number value (RMAXXX), as I'm currently investigating using a powershell script via a workflow.
    Thanks,
    Pietro

    Hi Marcel,
    I've come up with the following:
    # Load the SMlets module
    Import-Module SMlets
    # Get the RMA Class
    $RMAClass = Get-SCSMObject -Class (Get-SCSMClass -Name MyWorkItem$)
    foreach ($RMA in $RMAClass)
    $RMANumber = $RMA.RMANumber
    $RMA | Set-SCSMObject -PropertyHashtable @{"DisplayName" = $RMANumber; “Title” = $RMANumber; ”Description” = $RMANumber; }
    Is it possible to make it aware of which RMA work item executed it, and only update that one? Updating all the records each time a new one is created will cause some problems in the future.
    Thanks,
    Pietro

  • Could not load display preference pane Yosemite

    I had went into my Display window in System Preferences to change the rotation of my screen, upon trying to re-open the Display window, I get the error Could not load display preference pane. Now my screen is stuck upside down and I cannot fix it to save my life. I tried deleting com.apple.systempreferences and the desktop.db and restarting but it doesn't work.
    Please please please help me.
    Yosemite 10.10.2

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Click the Clear Display icon in the toolbar. Then try to open the preference pane. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name or email address, may appear in the log. Anonymize before posting.

  • Using alternative display names on one email alias

    Sometimes I'd like send email using one display name (ie "Mr. Happy") and sometimes with another ("Mr. and Mrs. Very Happy"), both using the same email account. Is there a way to set that up without creating a duplicate account? Thought I'd seen a reference, but can't find it now...

    Thank you. This is great help-it's got me looking in the right direction.
    I have not been managing aliases, so I'm wondering how to load the db and edit it. This is my first mail server and my first email setup for osx so I'm a newbie.
    I've found the following resources:
    http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/postalia s.1.html
    and
    http://developer.apple.com/documentation/Darwin/Reference/Manpages/man5/aliases. 5.html#//apple_ref/doc/man/5/aliases
    But I'm a little lost as to how to edit the configuration file, and I'm a bit lost on where it is. I've found a file titled "aliases.db" within the /etc folder that I have opened with a text editor. It lists some of the email addresses in my company, but there's also some garbled information in it. So I believe this is the file I would need to edit, but I'm not sure.
    Can you please give me a little more help as to how to edit this file and reload it? I really appreciate it.
    -John

  • There are multiple users with the same display name

    Hi,
    We have a user and when she get an item assigned to her she sees the following alert:
    "There are multiple users with the same display name USERNAME and at least one of them does not have read permissions to some of the files"
    Now I looked in the database and when I run the following query with the username:
     SELECT     
         [ProviderDisplayName]  
        ,[DisplayName]  
        ,[HasDisplayName]  
        ,[Domain]  
        ,[AccountName]  
        ,[UniqueUserId]  
        ,[LastSync]  
      FROM [Tfs_Configuration].[dbo].[tbl_Identity] where displayname like '%USERNAME%'  
    Then I get 2 same usernames back, How can I get rid of one of them ? When I access TFS trough the portal I only find 1 occurence of this user.
    We use VS2013 and TFS2013 update 4
    Best regards

    Hi DSW,  
    Thanks for your post.
    In your query result, please check if these two users have the same Account Name. if they are two different Account Name in result, it indicate there’s two users have the same display name in your AD, please check that two users’ information in
    your AD. We suggest change one user’s display name in AD.  
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to change web-app display name within EAR file?

    Currently we are deploying an EAR file (which contains a web-app and an EJB) per
    BEA recommendations. The web-app shows up on the admin console with '/' as the
    name. Is there anyway to change this to the name I want?
    thx,
    Matt

    FYI - here is the entire content of applicaiton.xml in the EAR file we deploy:
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application
    1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>
    <application>
    <display-name>RVApp</display-name>
    <module>
    <ejb>RVTrackingBean</ejb>
    </module>
    <module>
    <web>
    <web-uri>RVWebApp</web-uri>
    <context-root>/</context-root>
    </web>
    </module>
    </application>
    "Erik Johnson" <[email protected]> wrote:
    >
    No, you can't change that in the console. It's defined in the application's
    application.xml
    descriptor file.
    erik
    "Matt Savino" <[email protected]> wrote:
    Currently we are deploying an EAR file (which contains a web-app and
    an EJB) per
    BEA recommendations. The web-app shows up on the admin console with'/'
    as the
    name. Is there anyway to change this to the name I want?
    thx,
    Matt

  • Exchange Online Management cmdlets return Display Name instead of Identity

    Hello,
    We've got an issue when managing our Exchange Online environment using remote PowerShell.
    We use Exchange management cmdlets to manage Exchange Online mailboxes. When we run, for example, the
    Get-MailboxPermission or Get-RecipientPermission
    cmdlets, it returns Display Names of the users with mailbox rights. Previously, when we initially tested remote PowerShell with Exchange Online, the cmdlets returned the
    Identity property, which is unique and worked well for us. However, currently the cmdlets return the
    Display Name, which is not unique and causes us issues. For example, in our environment there can exist two or more users with the same Display Name (see highlighted on the screenshot):
    In cases when only one of the users is granted a permission, we cannot distinguish programmatically, which of the 2 users this is. Also, we cannot run cmdlets, such as
    Get-SecurityPrincipal, to get more info about the principals who are granted the permission.
    Is it possible to get the old behavior of the cmdlets back so that they return the unique
    Identity instead of the non-unique Display Name? Or how do we workaround this?

    Hello,
    Can anyone update on this? The issue causes us HUGE problems :(

  • SMS Text Display name

    If I go into options on my BB 8530 and into the SMS Text and change my display name and then save it keeps it for a short period of time.  As soon as I do a reboot by the alt, caps, del keys it goes back to the first name I put in.  Is there a service book that keeps that stored somewhere?  How do I get it to keep the display name that I want?  Thanks

    sgesualdi wrote:
    Any suggestions on what to do? Is there a service book that maybe can be replaced? I see a WapPushConfig (SMS). Will deleting that maybe fix it or will that cause more issues? Thanks for the help.
    Well, quite honestly, the SMS is not enabled by service book... BUT, there is no harm in deleting that one and resending it.
    Delete that SB entry.
    Reboot (powered on battery pull)
    Resend Service Books.
    Check it is reinstalled, if not do another reboot.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • In portal 9i, removal of folder display name link

    hi all,
    i need to know, how to make the folder display name not a link.
    by default display name comes as a link, which points to the particular content area , the folder uses.
    --archana                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Samer_asn,
    I am trying to do exactly what you did.
    Can you tell me how you could retrieve the word doc from blob and show it in a portlet when a user clicks on a link
    Thanks in advance
    Jay

  • SharePoint 2010 Web Analytics showing user Display Name and Account Name from the same user

    Hi!
    Since July, 16th 2012 the Web Analytics Daily Unique Visitors reports started to show almost the double of visitors we used to have on our Web Application. Here are some of the data (I intentionally deleted the weekend data):
    10/7/2012 2.497
    11/7/2012 2.723
    12/7/2012 2.722
    13/7/2012 2.699
    16/7/2012 5.055
    17/7/2012 4.963
    18/7/2012 4.954
    19/7/2012 4.998
    20/7/2012 4.965
    23/7/2012 5.117
    24/7/2012 5.012
    25/7/2012 5.071
    As you may notice the data jumped from around 2.700 unique visitors to around 5.000 unique visitors. As the number of permissioned users remains constant it is pretty odd. I also checked the Number of Page Views report and see no change on its behavior.
    The number of page views remained constant.
    So I went to look the Top Visitors report and understand why the visitors number almost doubled. The analytics started to count the users Display Name and Account name as two different visitors with a different number of page views. Let me show you an example
    from yesterday (July, 25th) Top Visitors report:
    #     Visitor                  Page Views    %
    1    Cinthia XXXXXXXXXX    359        0,55%
    5    Giselle XXXXXXXXXX     143        0,22%
    7    Aline XXXXXXXXXX       138        0,21%
    15  nt\cmazevedo              111        0,17%
    60  nt\gbsantana                 69        0,11%
    73  nt\aglsiqueira                 65        0,10%
    "Cinthia" and the account "nt\cmazevedo" are the same person. The same is applied to "Giselle" / "nt\gbsantana" and "Aline" / "nt\aglsiqueira".
    As I stated this is an example from July, 25th. If I checked the same report from a period before July, 16th I can only see the users Display Name as "Visitors". No account name is displayed or counted as a different visitor.
    About the environment:
    We have two SharePoint 2010 farms: a "corporate" and a "enterprise". The corporate farm contains four web servers and a central administration servers with publishing services. The enterprise farm contains two servers running User Profile Services, Search
    Services and some others. Our main version is the SP1 with June/2011 Cumulative Update with a few more hotfixes applied.
    This behavior on analytics is affecting all web applications (we have more than 20) installed on this farm and my company Support team said that no change were made on SharePoint on the weekend the problem started.
    Does anyone have any tip about what is going on?
    Thanks in advance!

    Hi, Manas!
    First of all thanks for your interest on this issue but I don't think it is related to the User Profile or the Active Directory.
    I checked both records and there was no change on the Display Names. All the users have "full names" as display names (first + middle + last name) and not logins as SharePoint is displaying on this report.
    But I did a test yesterday and checked the results today confirming that just the access been made using a specific server are causing this. Explaining it better:
    I have four web servers on my farm named from P01 to P04. Then I created this test script:
    Step 1: Change local HOSTS file to point the web application on the server P01.
    Step 2: Access site "A"
    Step 3: Access site "B"
    Step 4: Close the browser.
    Step 1: Change local HOSTS file to point the web application on the server P02.
    Step 2: Access site "C"
    Step 3: Access site "D"
    Step 4: Close the browser.
    Step 1: Change local HOSTS file to point the web application on the server P03.
    Step 2: Access site "E"
    Step 3: Access site "F"
    Step 4: Close the browser.
    Step 1: Change local HOSTS file to point the web application on the server P04.
    Step 2: Access site "G"
    Step 3: Access site "H"
    Step 4: Close the browser.
    I asked three users to execute that script. The results: All access to the sites "C" and "D" were registered on Web Analytics with the user account name such as "nt\cmazevedo". All the other sites registered the user Display Name correctly such as "Cinthia
    XXXXXXXXXX".
    With this test we could isolate the problem just on the server P02. It doesn't occur on the others. Now my support team is trying to find any configuration difference between this server and the other three that could point for the root cause.
    I am also looking for some information regarding the service responsible for this task ("transform the account name into a display name") to understand why it doesn't work on one server and works on the others.
    Thanks!

  • Project Server 2010 - Updated User Profile - Display Name is Old Name

    Similar to question"It shows the Domain\Logon account instead the User Name (up right corner)" but not quite the same. I also checked on the related topics list and could not find a solution.
    We have a Resource in Project Server 2010 whose name changed. This included a change to her loginID as well as her email address. I went in to PWA > Server Settings > Security > Manage Users and changed the
    Name, Email Address, and User Login Account fields accordingly. When the user goes into Project Server or any of the Project Sites, her old User Name is reflected. If she accesses any other SharePoint site (not associated with Project Server) her
    new name shows up in the upper right hand corner of the screen.
    We do not have AD Synchronization turned on.
    How can we edit the name that appears in the upper right corner of the screen?

    Hi,
    Use Display name shown on right hand site is not from PWA, its from SharePoint User profile. When we make change to user display name, sometime SharePoint Still retain the old account and also add new account. To fix the issue we have to remove the user
    profile from PWA root site.
    Open PWA and navigate to following path
    Site Actions>>Site Settings>>People and Groups
    Click on More from left hand site list of groups
    Select appropriate group,   belongs to the user
    Select the user and from Actions tab remove the user. (you may see two entries old and new), Either you can delete both or click on each account to validate correct user ID.
    Once again navigate to PWA>>Server Settings>>Manage User
    Edit affected user and click on Save
    Have user log on to PWA and validate the result.
    Hrishi Deshpande – Senior Consultant DeltaBahn
    Blog | < |
    LinkedIn
    Please click Mark As Answer; if a post solves your problem or Vote As Helpful; if a post has been useful to you.This can be beneficial to other community members reading the thread.

  • Display name not getting generated When creating user thorugh GTC

    We are using GTC flat file as a trusted source. We see that display name not getting generated. And same thing happening when creating a new GTC mapping.
    previously when we ran with few test user got created with display name through GTC flat file , Suddenly we see this issue display name not getting generated through flat file recon.
    Manually user creation has no issues.
    Please let me know if you have any idea about this issue.

    Don't use GTC... GTC is inflexible and buggy technology... Nothing guaranteed... Rather create your own custom trusted recon code...
    For more details
    26 Known Issues of Generic Technology Connectors
    http://docs.oracle.com/cd/E10391_01/doc.910/e10360/issues.htm

  • HT3051 can you change your Change Your Displayed Name if you have multiple devices attached with the same apple id?

    We have both a Iphone 4s and a 4th Generation Ipod Touch both with the latest available IOS software on them. Since the Ipod touch was given to a preteen for Christmas and they aren't old enough to have their own email account or apple id 11 years old going on 12, is it possible to have a different displayed name for each device if they are both signed in with the same apple ID and not interfere with each others device in doing so?

    @pdroth. Displayed name as in when you sign up for a apple id you sign up with email and a screen name(this is your display name). If you are using any apple device as like you do with an android device you have to sign in with either your google acct for android or apple id for a apple product. If one apple product is utilizing that apple id already aka Iphone and you can't set up a account for your child because of his or her age because of age restrictions, both devices will use the same info. So for instance when using things like facetime instead of seeing jane doe calling jane doe(basically making it show name of other person using your account instead of seeing your own name) can you make on jane doe and one john doe using the same apple id just different outgoing display name. Hopefully this helps.

Maybe you are looking for

  • How can I delete a plugin I can't find

    It seems that I have a plugin from Directv that may be causing me to lose wifi in my house.  (not sure of that though).  I have search for it using finder and have searched in libraries.  Any idea where I can find it?  I get the name of it because it

  • Partition in informatica

    I am not able to see partition tab in Informatica sessions, though we have full license of Siebel Analytics 7.8. Do we need to purchase the license separately for partitioning, or is there any option to enable it, that I am missing? Thanks, Ravish

  • RGB vs. CMYK color formats

    I have an HP6600 and want to print in RBG color formating, not sure if default might be CMYK ??  colors are not printing in the proper colorations in pdf files received using RBG formating designs.  Can anyone advise??  Can this be viewed or changed

  • HT2311 I cannot update my current iTunes 10.6.3 to 11.1 as required to sync photos with my iPad. I am trying to download 11.1 on my MacBook which has O

    Can anyone advise how to dowload iTunes 11.1 onto a MacBook which already has 10.6.3? I get the message that 10.6.3 is the latest version when I try updating directly through the iTunes icon/app. When I go online and find and download 11.1 it does no

  • Creative Cloud desktop update fails: error 207

    Hello world, I'd like to update Adobe Creative Cloud Desktop but I'm experiencing problems: When the installation programm downloads, I'm getting an error code 207: [translated by me] Server doesn't react at the moment. Please try again later. This h