Powershell script to find Office version on multiple PC's not working- Please Help?

Hello!
I am about to go mad with this script. Can you help?
I am trying to search the PC’s on my domain for what office version they are running. (I am looking for any PC’s that still have Office 2003 installed).
Here is my script:
foreach ($computer in (Get-Content
PClist.txt)) {
  $version = 0
  $reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $computer)
  $reg.OpenSubKey('software\Microsoft\Office').GetSubKeyNames()
|% {
    if ($_ -match '(\d+)\.')
      if ([int]$matches[1] -gt $version)
        $version = $matches[1] 
  if ($version)
      "$computer
: found $version" 
    else {
      "Could
not find version for $computer" 
It runs, but returns bad results. PC’s I know to have 2003, say they have version 13 (2007), and PC’s I know to have 2010 are showing up with version 11 (2003). Some PC’s report correctly.
Also, some PC's from PClist.txt are not even turned on, but are returning info. Weird.
Do you have any idea what I am doing wrong?
ANY help would be really appreciated.
Thanks in advance for any help you can give!

That is easy.  YOu cannot deteermine the installed verion that way.  THe key will have keys for all versions that have ever been installed.  I f you have installed a viewer that is newer then the newest key will be there.
Try this and ytou will see waht I mean
Get-Content PClist.txt |
    ForEach-Object{
        $reg=[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $_)
        $reg.OpenSubKey('software\Microsoft\Office').GetSubKeyNames() |% {$_}
jv

Similar Messages

  • Update Firefox to version 17 (the newest version) - Green button link does not work, please help

    Hello,
    I currently have Firefox version 16.0.2 installed on my laptop with Windows 7.
    Every time I attempt to go to the update site (http://www.mozilla.org/en-US/firefox/new/) and click on the green update button, I am sent to the 'Thank you' page, and no download begins.
    After that page, it attempts to redirect, I am assuming to the download; URL is https://download.mozilla.org/?product=firefox-17.0.1&os=win&lang=en-US
    I receive the following error: Unable to connect - Firefox can't establish a connection to the server at download.mozilla.org.
    Please let me know how I can update my Firefox to the latest version.
    Many thanks.
    J. Ng

    12/07/2012
    Good day,
    Same problem until I cleared the 67MB cached web content under:
    Tools>Options>Network
    It immediately took care of it without a browser restart.
    Cheers!

  • Hi. My 2013 MacBook Air has suddenly reverted to a previous Excel spreadsheet (from May). I use the same spreadsheet several times a day and hit cmd 's' every 5-10 minutes. How can I find the version I was using yesterday?? Please help. Thanks

    Hi. My 2013 MacBook Air has suddenly reverted to a previous Excel spreadsheet (from May). I use the same spreadsheet several times a day and hit cmd 's' every 5-10 minutes. How can I find the version I was using yesterday?? Please help. Thanks

    Might be something for you here > Automatically save and recover files - mac excel

  • While updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me

    while updating 4.0 version to 5 version system shows sim card is not valid. My iphone is not working .Please help me

    I would imagine your iPhone was hacked to make it work on your local carrier.
    Updating the iOs to 5.xx will lock it back to the original carrier .The carrier holding the lock are the only
    entity able to authorise the unlock .You will have to contact them and see if they unlock and the terms the apply

  • Multiple photos per page not working :( Please help

    I see the option for multiple photos per page. It was available 5 minutes ago but now is grayed out and I can not get it back. This is very annoying. Can someone tell me why iPhoto won't let me print multiple photos on the same sheet?
    Thanks

    Remember that we know nothing except what you tell us - that it is not working is not much
    The most common reason that print multiple photos per page is grayed out is that you either have a photo size/paper size combination that will not fit multiple photos (ie trying to print 2 8x10 photos on an 8 1/2 x 11 paper) or you have not selected but one photo
    If these do not help please give us some more detail on what you are doing
    :LN

  • HT201252 I cannot get into my IPhone to disable Find My IPhone as the display will not work. Help?

    I have an IPhone 5c; the screen and buttons are not working and the display is just black. If i charge it it does nothing except buzz repeatedly. There is so water damage nor have i dropped it. Help?

    You go to www.cloud.com, log in with the same Apple ID & password that you used for iCloud/Find My iPhone on the device, go to the Find My iPhone section, and remove it from the account.

  • BDM 6 using Office 2010 on Windows 64 Bit Not Working Need Help...?

    I've installed BDM6 on my 64bit Windows 7 environment and have found that Desktop Manager cannot find a trace of Office 2010  
    I then checked the Technical spec and found out that a 64bit system is unsupported... Which I find amusing....
    Does anybody have a work around solution so I can synchronize my data?  

    Don't bother trying to downgrade to 32 bits windows 7 or to 32 bits Office 2010.
    I can confirm ... as can 113 participants in a thread higher up this blog, that DM6 is a totally UNWORKABLE release full of fatal bugs.
    DM6 was announced as the solution for people running Office 2010 32 bits ... well it is entirely useless... so best you change phone or keep an eye on this  FORUM to see when the other two streams are likely to be "closed" out with solution!
    The two threads are :  "Desktop Manager version 6.0 Crashing" and "Updated to DM6, cannot Synchronise"....  if you have any spare time,browse through these ... makes for a good read and lots of suggestions but no solutions in sight!
    And yes RIM initially announced that they would not both about office 64bit until 2011!

  • Zoom on multiple images don´t work, please help!

    When I have selected multiple images and click ”z” command in multi-view mode Aperture automatic deselects all images except the first and last ones and zooms in on just this two. This appear on RAW files from Canon EOS 1DmII and 10D.
    Is there anyone else having this problem?
    Is it a bug or a feature?
    Best regards / Jerker

    Interesting thread, as I never knew you could zoom in on multiple images, so I gave it a try...
    I was able to select 6 RAW (Nikon D100 NEF's) images, and then hit "z" to zoom in on them with no problem. I then hit "f" for full screen mode, and that showed all images as well. It was great to be able to use my mighty mouse to then simply hover over each picture and pan (using the track ball) around each image in that mode.
    So, at least for my system (quad 2.5 G5, 5G RAM, 7800GT) I was able to see all of the images.
    -Tom
    Powermac Quad   Mac OS X (10.4.8)  

  • Skype Problem - Latest version not working, Please help

    Skype is telling me I need to download the new app - fine but when I download the file it does not install skype - qhen I run the Skype setup file I get asked if I am happy for skype to make changes to my hard drive - say Yes - but nothing happens!

    Try to install the currently latest Skype 7.7.0.103 version using this installer: http://download.skype.com/msi/SkypeSetup_7.7.0.103.msi Make note of any error message received when installing.

  • Backing up iTunes on version 10 is not working, please help!!

    Hi, I downloaded itunes ten in the middle of my itunes music update and now it wont let me back up my files. please help!, Hi, I downloaded itunes ten in the middle of my itunes music update and now it wont let me back up my files. please help!

    you have to have itunes installed but check out http://support.apple.com/kb/ht4623.

  • PowerShell script to find a string of characters in office documents in Doc Libraries and List Item attachments?

    Hi there,
    For SharePoint 2010 site - Does someone have the PowerShell script to find a string of characters in Office/Word/Excel/PDF documents in document libraries or the ones attached to List Items?
    Thanks so much in advance.

    Hi,
    According to your description, my understanding is that you want to find some specific string character in list items using PowerShell Command.
    $w = Get-SPWeb "http://devmy131"
    $l = $w.GetList("http://devmy131/lists/fieldslist");
    $i = $l.Items[0]["Title"].ToString();
    if ($i -like '*document*')
    Write-Host "Title contains document character" $i;
    More information:
    PowerShell -contains -like
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • HT3669 HP ENVY 4500 e-All-in-One Version 3.2.1 does not work on iMac 20-inch, Mid 2007. Only recognizes scanner not USB printer.

    HP ENVY 4500 e-All-in-One Version 3.2.1 does not work on iMac 20-inch, Mid 2007. Only recognizes scanner not USB printer.
    I would like to print via the USB connection instead of wireless (the wireless does work, and the scanner works via USB).
    I tried connecting the printer directly (via USB) to my MacBook Pro laptop and it worked just fine.
    How can I make this printer work on my iMac?
    I spent 4 hours on the phone with HP and we did every combination of installation of drivers ad nausum and their bottom line is that it is a Mac problem.
    Any help would be appreciated. Will be sending this printer back to Amazon if I can't make it work on the USB.
    I am open to questions or suggestions
    Thanks,
    Chet

    After 4 hours on the phone with HP and another hour with Apple (Mavericks support) no real solution other than check everything (removed everything from Login Items, removed all HP software anywhere in the system reboot, reinstall printer) then when nothing worked for the 4500, did an OS Reinstall (boot with CMD+R).
    The Mavericks support group did open an incident (# 542875311) and I will update it when I figure out how to find it on the system.
    My feel is that the base problem is that somewhere between the HP-Inkjet-SW-OSX-Mavericks_v12.34.49-2 package and the Apple HP Printer software in the Library (version 2.16.1) the app for printing via the USP Port just does not get installed for the mid 2007 20 inch iMac. The scanner is recognized on the USB Port and the Printer works fine on Wi-Fi. I have too many devices to burden my home network with anothe device. Also, every time I put any HP Printer on Wi-Fi, my router (Netgear N600 WNDR3400 running 12 to 20 devices depending on who is home) gets wonky (but that's anothe story...).
    Additionally, when I attach the HP Envy 4500 to my MacBook Pro (2010) it works perfect - print and scan via the USB prot and both functions show in the System Preferences - Printers and Scanners just as expected and just as the 3050 does.
    Chet

  • My keynote has frozen and wont open but the saved version wont open either. if i restart my laptop i am afraid that it will erase my work. please help me

    my keynote has frozen and wont open but the saved version wont open either. if i restart my laptop i am afraid that it will erase my work. please help me

    Try this repair for Keynote 6.2,  ensure you complete all the tasks and in the order shown:

    delete all the iWork applications if you have them, not just Keynote, using Appcleaner from Mac Update, its a freeware application

    empty the trash:  Finder > Empty Trash

    Shut down your Mac, wait 30 seconds, then power on the Mac, immediately after the start chime, hold down the Shift key
    When you see the grey Apple symbol and progress indicator (a spinning gear), release the Shift key.
    If you are prompted to log in, type your password, then hold down the Shift key again as you click Log in. 
    Let the Mac fully boot up, it will take longer as the OS is repairing the drive
    4
    when fully booted, go to Applications > Utilities > Disc Utility; click on the boot drive then First Aid tab and click  repair disc permissions
    5
    when complete, restart the Mac normally, Apple menu > Restart

    install Keynote from the Mac App Store
    let us know if this helped

  • Hi, we just bought a Macbook air and we can't find the 'reminders' app in the applications or through the spotlight search. Is there a link to download the app? I can't find it online or through the app store. Please help!

    Hi, we just bought a Macbook air and we can't find the 'reminders' app in the applications or through the spotlight search. Is there a link to download the app? I can't find it online or through the app store. Please help!

    Reminders is automatically installed with 10.8 or above. A new Mac should have 10.9; it's possible that, with a third-party vendor, you have an earlier OS. Check under the Apple menu in the top left and click About This Mac. That will tell you what version of OS X you have.
    Matt

  • Group Chat feature in Office Communications Server 2007 R2 does not work in Windows Server 2008 R2 domains

       Hello to all, there are two confliting articles about this topic:
       1-
    http://technet.microsoft.com/en-us/library/upgrade-domain-controllers-to-windows-server-2008-r2(v=ws.10).aspx#BKMK_Whatsnew : this one says that it does not work "The Group Chat feature in Office Communications Server 2007 R2 does not work in Windows
    Server 2008 R2 domains". This article was updated in 2013.
       2-
    http://technet.microsoft.com/en-us/library/ee692314(office.13).aspx: this other article says that it will function "Office Communications Server 2007 R2 Group Chat will function in a Windows Server 2008 R2 forest". This article was updated in
    2010 and was refered by the first one.
       What is the correct support position for Group Chat feature in Office Communications Server 2007 R2 and Windows Server 2008 R2 domains?
       Regards, EEOC.

    Hi,
    I notice the following sentence in the link below “Office Communications Server 2007 R2, Group Chat will not function in a Windows Server 2008 R2 forest or when Group Chat member servers are joined to a Windows Server 2008 R2 domain.
    We know of an issue with changes in Windows 2008 R2 that requires a Group Chat Client and Group Chat Admin Tools hotfix. The Group Chat Client and Group Chat Admin Tools hotfixes are currently scheduled for mid-April 2010.”
    http://blogs.technet.com/b/nexthop/archive/2010/11/06/supportability-for-office-communications-server-2007-r2-and-windows-server-2008-r2.aspx
    So in my opinion, if you update to the latest version of Windows Server 2008 R2, OCS Server 2007 R2 and Group Chat Client, Group Chat Admin Tools to the latest version, it should work.
    However, the best method for you is make a lab to test the problem firstly.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for

  • Returning to normal voice from Voice affects.

    I just updated my Skype account after not using it for awhile. I was prompted to check my video feed and voice quality. I changed from normal voice to another voice to see how it was. I made a call and talked. It worked. However, I now want to return

  • Not matching purchased songs in iTunes match

    I purched a sampler of sons from iTunes, but when I signed up for iTunes Match it did not match this sampler album.

  • How to use VMRC SDK to open VM console

    Hi, I'm looking for some help to setup a custom solution that opens a console of a VM from a corporate intranet site. I'm new to the whole VMWare SDK world, but I've been able to easily use vCloud Suite SDK for .NET to expose some details on my User

  • BAPI help required

    hi, The data in excel contains g/l account number,order,cost center,hotel rent-a-car travel. user enters g/l account number & all this data gets uploaded from excel into transaction f-02 grid which is shown at the bottom  & is then saved. how could t

  • RfcAFBean

    Dear Guys I am using a RFC function STFC_CONNECTION to test RFC connection to XI from System A (4.7). I created a TCP/IP type destincation having gateway name sapgw00 and ip address of XI. Also registered a program with name XI in J2ee engine. Connec