none
Changing default picture viewer via GPO without changing image type and icon (Windows 7)

    Question

  • Hello,

    I am trying to change the default picture viewer for some file extensions (.bmp, .jpeg, .png and .tiff). Actually Windows Photo Viewer is the default viewer and we need to replace it with Microsoft Office Picture Manager.

    I managed to do that change via GPO using the 'open with' preference under User Configuration\ Preferences\Control Panel Settings\Folder Options. So now the files are opened with Microsoft Office Picture Manager (office 2010). The problem is that the image type became 'OIS.EXE' for all the specified file extensions. Moreover the icon is now the same (Microsoft Office 2010).

    When I change manually the associated program for a file extension, the icon change but no the image type... this is different using GPO.

    Is there a solution in order to change the default program but keeping the image type and associated icon ?

    I tried to do that modification using the 'new file type' preference under Computer Configuration\Preferences\Control Panel Settings\Folder Options. I specified the 'open' action for OIS.exe, selected file extension BMP with associated class 'Bitmap Image'. It solves the problem for image type, Microsoft Office Picture Manager opens the files ... but I have to specify the icon file path and icon index and I don't know where I can find the default icons for the file extensions ...

    What is the best solution ? Am I right ? Am I doing something wrong ?

    Thank you in advance !

    Tuesday, July 09, 2013 2:31 PM

All replies

  • So I think I found the correct icons in imageres.dll ...

    For the moment all is working fine, correct opening, correct image type and correct icon...

    I am thinking of a possible rollback ... is there a way to put back Windows Photo Viewer as default picture viewer (Photoviewer is not a .exe but a dll ...)  how to restore the default  association via GPO ???

    Thank you.

    Wednesday, July 10, 2013 7:54 AM
  • Hi,

    As this is a preference settings, so altrough we delete the GPO settings, this configuration will be still there. So to chnage the settings, we should manully change it on the client computer.

    Regards,

    Yan Li 


    Cataleya Li
    TechNet Community Support

    Monday, July 15, 2013 3:31 AM
    Moderator
  • you will need to create the needed association, in a similarly "manual" way.

    GPP doesn't know the default, so, when you deployed the new setting, it simply writes the new setting.

    you can use an un-modified machine, to identify the original/default assocations;
    e.g., use the builtin FTA utilities, like so:

    C:\Users\anyuser>assoc .jpg
    .jpg=jpegfile

    C:\Users\anyuser>ftype jpegfile
    jpegfile=%SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer
    \PhotoViewer.dll", ImageView_Fullscreen %1


    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

    Monday, July 15, 2013 3:59 AM
  • Hello,

    thank you very much for your answers.

    For the rollback, I will reimport the original/default keys for all the image types, this should be ok.

    Here are the problems I have trying to pu Microsoft Office Picture Manager as default picture viewer (I just want  .bmp, .jpg ... files to be opened with Microsoft Office Picture Manager by default).

    1 Using new file type under Computer Configuration\Preferences\Control Panel Settings\folder options. : I define a new file type (BMP for example), associated class Bitmap Image, I configure the icon (imageres.dll,65) and an open action where OIS.EXE is the application used to perform the action.

    Result : Icon is correct, file type is correct, image files are opened with OIS.EXE (correct) ... BUT now Microsoft Office 2010 appears twice in open or open with menu

    2 Using new open with under User configuration\Preferences\Control Panel Settings\Folder Options : new open with preference, action (update or replace same result), file extension BMP, associated program (path to OIS.EXE), i check set as default.

    Result : Office 2010 opens image files (correct) but icon is Office 2010 one and the file type is now 'OIS.EXE' for all image file extensions I have specified ... so it won't be possible to sort the file by image type if I select that method...

    3 Using ftype : OIS.EXE doesn't open the file when I double click on it but Microsoft Office 2010 appears twice in the open or open with list ...

    I am a bit lost ... what is the best method to put Microsoft Office Picture Manager as default picture viewer, keeping the image type (Bitmap image, JPEG image etc) and without having Microsoft Office 2010 twice in the open or open with list ??

    Last question : by default an image file is opened and previewed with Windows Photo viewer and edited with Paint. I would like just to open images with Office 2010 but keep Windows Photo viewer for preview and Paint for edit ... Is it possible ??

    Thank you in advance for any help and support !!

    Monday, July 15, 2013 9:15 AM