Getting the software unistall DisplayName from registry

We are doing software housekeeping on our Windows 2003 servers in preparation to migrate to higher release
I need to retrieve the installed software from these boxes.
Instead of the if statement below, I would like to use an array as follows. Thank you in advance.
$OmitSoft = @("", "\(KB", "McAfee ", "HP ", "Service Pack", "IBM ", "Internet Explorer", .......,"VMware ")
$UninstallKey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"
    ForEach ($key in $SubKeys) {
        $thisKey = $UninstallKey+"\\"+$key
        $thisSubKey = $reg.OpenSubKey($thisKey)
        $DisplayName = $($thisSubKey.GetValue("DisplayName")).Trim()
        if (-not ($DisplayName -match "\(KB") -and ($DisplayName -ne "") -and ($DisplayName -match "McAfee") -and `
                 ($DisplayName -notmatch "HP ") -and ($DisplayName -notmatch "Internet Explorer")) {
            $ObjData = New-Object PsObject -Property  ([ordered]@{
               "ServerName"  = $ComputerName
               "Virtual"     = $Virtual
               "OSName"      = $DisplayName
               "OSVersion"   = $($thisSubKey.GetValue("DisplayVersion"))
               "Description" = $($thisSubKey.GetValue("Publisher"))
            Export-Csv -InputObject $ObjData -NoTypeInformation $CsvFile -Force -Append
Learning PowerShell scripting

While I agree with Bill and suggest you just use his script, here's an example you can build from:
$skipMe = @(1,4,7)
$numbers = 0..9
foreach ($number in $numbers) {
If (!($skipMe -contains $number)) {
$number
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing)

Similar Messages

  • I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)

    I've recently been given a macbook pro from uni, with lots of adobe software on. I want to pair it with my iMac which has music etc and is it possible to get the software to the imac and the files to the macbook?Giving me the best of both :-)

    You would need the original installation disks or files for the Adobe software to get it onto your iMac, and having it on two computers may not be allowed by your university's licensing. Talk to whoever issued the MacBook.
    As to the music, just copy it over to the MacBook, either via Home Sharing, file sharing, or an external storage medium (hard drive, USB flash drive, etc.).
    Regards.

  • Can't get the software to work with Audigy 2

    Hi, I have had my Audigy 2 ZS going on a year now and haven't had any problems. I recently made a clean install of Windows XP and upgraded to SP2 and all that. Now, I can get sound out of the card but can't get the software to work at all; cannot get the volume slider bar to appear when I click the icon (it appears in the task bar though and I get a small gray square where the slider should appear), the surround mixer does not show when I double click the volume icon, EAX conxole is a no go, get an empty error box when I try to start the Equaliser.
    I have tried everything from simple re-install to clean sweep to praying to the pagan gods. I have alsoo tried updating the drivers of course.
    I run XP on an Intel MoBo (on-boeard sound deactivated), 52RAM, ATI 9700 ALL-IN-WONDER.
    DOES THE CREATIVE SOFTWARE DEPEND ON ANY WEIRD LITTLE WINDOWS SERVICE OR SETTING THAT I MIGHT HAVE CHANGED DURING SETUP?
    This is quite infuriating as any idea I come up with takes up a lot of time in installation, uninstallation and clean up. It worked before, why not now?
    Thanks in advance. dentore

    Ok I got it to work. This is the reply I got from Creative but I didn't remove the program from the add/remove option on the PC b/c that didn't work at first. I inserted the installation CD and remove it from that wizard. Rebooted and the PC found new hardware. I then installed the driver and software from the CD and now it works.
    For Mediasource. It appears something was corrupted in Mediasource or there is a conflict within the system.Please uninstall all software and drivers for the soundcard, from add/remove programs. Once this is done, shut down the system and changePCI slots for the soundcard, then turn the system back on, cancel the found new hardware wizard, disable all background applications (especially virus scanner, firewall, and any other background applications running in the bottom right hand corner of the system), andthen perform a full reinstallation of the drivers and software from the soundcard installation cd.
    CAT I hope you fix your sound card. Good luck.

  • I am getting the msg "data corrupted" from windows installer, attempting to install photoshop elements 12

    I am getting the msg "data corrupted" from windows installer, attempting to install photoshop elements 12. have wiped drive of file and redownloaded but get same results. have run regedit and removed Photoshop elements 12 also with no luck. Went back and installed photoshop elements 10 and prerimer and installed good, I have also installed prerimer elements 12 and the install was ok. I also ran trial version of photoshop 13 without any issues. I am at a lost to what is causing this issue. Any suggestions please.

    You can download the trial version of the software thru the page linked below and sidestep the download assistant.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site and have cookies enabled in your browser or else the download will not work properly.
    Photoshop/Premiere Elements 12: http://prodesigntools.com/photoshop-elements-12-direct-download-links-premiere.html

  • Hi, I had Adobe Acrobat Professional 10 64bit on my laptop which crashed, and I had to start fresh.  Where do I get the software to install again?  Thanks.

    Hi, I had Adobe Acrobat Professional 10 64bit on my laptop which crashed, and I had to start fresh.  Where do I get the software to install again?  Thanks.

    Hi Jerry,
    Thank you for posting on the Adobe Forums, Acrobat is a 32 bit application.
    You can download it from the below mentioned URL
    Download Acrobat products | Standard, Pro | XI, X
    Thanks,
    Vikrantt Singh

  • Is there a place to get the software that came on the cd

    I was given an Ipod Shuffle and I was wondering if there was was a place that I can get the Software that can on the CD provided with the Ipod when it was originally puchased.

    That software was iTunes, which can be downloaded from Apple's website. 
    B-rock

  • I need help getting the software updates

    i was constantly disconnecting from the internet when playing online games on the mac side of my hard drive until i got a software update, but i dont think the update carried over to my windows xp partition, so i still frequently disconnect when playing games on windows, anybody know what the problem is or how i can get the software updates on the windows side?

    i dont think the update carried over to my windows xp partition
    Of course it didn't. Mac updates don't affect windows, and vice versa.

  • HT201210 Do i have to have service on my iphone 4 to be able to get the software updates?

    Do i have to have service on my iphone 4 to be able to get the software updates?

    Hi The iPhone 4 cannot be updated to ios 8.1.2 Only iPhones from 4S upwards can run ios 8.1.2 If you can sell and buy iPhone 5s 32 G Cheers Brian

  • As part of my Photoshop and Lightroom subscription I understand I get the software for 2 devices activated at a time. Is the mobile version for my iPad in addition to this or would it be one of the 2 devices?

    As part of my Photoshop and Lightroom subscription I understand I get the software for 2 devices activated at a time. Is the mobile version for my iPad in addition to this or would it be one of the 2 devices?

    Hi rebecca,
    You can download Acrobat from: Download Acrobat products | Standard, Pro | XI, X
    and use the purchased serial number to activate the software.
    Regards,
    Rave

  • If I take my original iPad to the store can I get the software updated?

    If I take my original iPad to the store can I get the software updated?  My home computer does not have room for the backup.

    Well, you can do that, but your iPad will be totally erased and you will have to start from scratch. You need to backup your iPad and sync with iTunes before you install the update, because the updating process will erase the iPad completely. The reason that you should use your own computer is so that you can restore from the back and then sync all of your content back to the iPad.
    You might want to think about the bigger picture and do something to move some of your files off of your home computer because if the hard drive is full, you are going to have computers problems as well, down the road. There are many inexpensive external hard drives available and you might want to take a look at one.

  • HELP! Where do I get the software development kit 1.3 for windows 98?

    HELP! Where do I get the software development kit 1.3 for windows 98? I got this java book and it tells me "http://java.sun.com". I guess it expects me to find it myself. I aint no good at finding stuff on the internet. Can someone give me like the exact address to download it or something? (Also, it wants me to get the java software development kit installation instructions and documentation... I have no idea what all that stuff is, or where to find it. I'm completely lost... Can someone tell me where to get that stuff?)

    Actually, the latest version is now jsdk 1.4.1
    From java.sun.com, you can click on "Downloads" at the left
    Then, you click on "java 2 platform, standard edition"
    Then, you can click on "J2SE 1.4.1"
    This leads to a page with the URL http://java.sun.com/j2se/1.4.1/download.html (you could use this URL wight now, in fact)
    That page has a table.. look for the row entitled "Windows (all languages, including English)", and in the column headed "SDK", you'll see a link "DOWNLOAD". Click on it (make sure you click on the right one!)
    You will then have to read the terms and conditions, and at the bottom, click the button labeled "ACCEPT"
    This will show a page with a link "Download j2sdk-1_4_1-windows-i586.exe"
    You click on that link, and the download will start. The file you are downloading is the installer for the J2sdk version 1.4.1
    Hope that helps!!
    Once you have downloaded it, you'll need to set it up. That's not very difficult, but if you need advice on that, I'll be watching this thread.
    Yours, Mike H...

  • How to get the list of materials from Sap r/3

    Hi Experts,
    I have one doubt, here iam implementing
    HTTP TO RFC scenario.
    My doubts are------
    1. Should we create DT MT MI and all (OR) not
    2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
    3.Or the second thing is how to get the list of materials start with some alphabate.
    Please reply me for each and every questions mentioned above. Please clarify me.
    Helpful answers wil be rewarded.
    Reagards
    khanna

    Hi Khanna,
    <i> 1. Should we create DT MT MI and all (OR) not</i>
        Yes U need to create for HTTP site...for RFC U need to import..
    <i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
        You create your own structres for Request and respoce.. and Map it with RFC..
    <i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
        I think it will come with acending order....
      for more help go through this link
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
    regards,
    Ansar.

  • I have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    i have about 800 more songs on my nano than itunes, due to a crash. How can I get the songs onto itunes from the ipod, or at least get the new music ive gotten since the crash onto my ipod without deleting all the other songs when it syncs?

    It has always been very basic to always maintain a backup copy of your computer for just such an occasion.  Use your backup copy to put everything back.
    If you have failed to bakup, then you can transfer itunes purchases from an ipod: File>Transfer Purchases

  • While my friend was setting up his iphone, i used my icloud. So now, when i send him a message i get the exact same message from myself. How do i fix this?

    While my friend was setting up his iphone because i had recently updated it for him he needed a itunes account to use for "bump" so i could transfer his contacts back. So i used my itunes and icloud account to sign in so he could download that because he didnt have any of those accounts. So when i logged in he was basically me, my name was his phones name aswell. Well i used "bump" his name was the same as mine. I got the contacts to work but now every time i send him a text message, (imessage) i get the exact same message from myself. How to i unverify him off of my icloud so i can be the only one using it?

    The fact that the problem only occurs when iphones are texting you leads me to think that iMessage may be the culprit. The fact that it is only iphones using SPRINT however is weird. Try turning imessage off on both yours and your sons phones to see if the problem persists. If it does, it may be a carrier problem.

  • I'm new to Mac. I have an iPhone and a Mac Mini.  My original iTunes was on a Windows computer that crashed.  So, all of my iTunes Music and Movies are gone.  How do I get the movies and music from my iPhone to the new Mac Mini?

    I'm new to Mac. I have an iPhone and a Mac Mini.  My original iTunes was on a Windows computer that crashed.  So, all of my iTunes Music and Movies are gone.  How do I get the movies and music from my iPhone to the new Mac Mini?

    If you still have the crashed Win computer, you may be able to recover your music and movies from the hard drive. If you have a friend with a hard drive USB connection kit and a PC, they should be able to help.  Otherwise, check locally for computer services that might do that for you (I think Best Buy Geek Squad may be able to help). If the drive itself is in good shape, it shouldn't be too expensive. 

Maybe you are looking for

  • Discount in payments

    hi experts well i have cut a invoice of 100 rs now i have 2 give 100% discount in payment as customer is not paying me any thing how i will manage that

  • Can't paste address in mac mail

    Hi All, I have just recently moved across to Mac. I am running Lion on a Macbook Pro. I can't paste to the "To" or "Cc" from the magic mouse. I can paste anywhere else and use the command V to paste to the "To". I have searched this issue and noticed

  • Can one put XP image on the second disk with "img"?

    Hi all, We have a requirement to put in two IDE disks in the same machine and image the machines with different XP systems, each hard disk hosting one operating system. I was wondering whether Zen "img" utility allows for putting images on more then

  • Create a foreign key from a field that is part of a mulitple primary key

    Hi, i had a table named T_A, with a double primary key : (A,B) Then i created a table named T_B with a field : C. I want this field T_B.C to take only values that already exist in field T_A.A. So i tried to create a foreign key on my field T_B.C, poi

  • Can't send anymore so

    Hi i have a creative muvo v200 gb, and i am having a problem with sending more songs , i have 35 songs and still have 300MB left on the mp3, all the songs work and are mp3 format so there is no problem there, i have upgraded the firmware so i can't s