Running Powershell for setting default programs


  1. Posts : 45
    Windows 10 Pro
       #1

    Running Powershell for setting default programs


    In the past I have had to go around to each computer and set the default programs. Is there a way to create a batch file to set default programs silently for each user that signs on? Like we would like to have Adobe Reader DC, Internet Explorer, and VLC player be the default programs.
      My Computer


  2. Posts : 42,985
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi this may be of interest:
    Default App Associations - Export and Import for New Users in Windows - Windows 10 Forums

    Always worth looking through the tutorials section..
      My Computers


  3. Posts : 45
    Windows 10 Pro
    Thread Starter
       #3

    Thank you! Worked like a charm!
      My Computer


  4. Posts : 2
    Win 10 x64 1803
       #4

    This worked. How would you setup the dism command to be used in an MDT task sequence step?
    Or is there a way to convert this to Powershell and run in an MDT task sequence.
    I would like to have defaults set as part of the imaging process for new machines.
      My Computer


  5. Posts : 17,661
    Windows 10 Pro
       #5

    mose said:
    I would like to have defaults set as part of the imaging process for new machines.
    Why don't you set default apps when customizing the image? I mean, install Windows 10 on reference machine, boot to Audit Mode and customize it installing all required software. When done, open Settings app and set default apps as you wish.

    When you then sysprep with COPYPROFILE=TRUE in answer file, all those defaults will be copied to default profile, the base used to create all user profiles. Capture the image, deploy. Any user created will then have those defaults you set in Audit Mode.

    You can also edit registry in Audit Mode, before sysprepping, to set defaults.

    Kari
      My Computer


  6. Posts : 2
    Win 10 x64 1803
       #6

    If I setup a reference image then I have to constantly open the image to update either the software installed or the OS. If I have it built on the fly then I just replace the OS file (When Microsoft has a new version) and change the files for each software installer as well. Everything as separate steps in MDT, each item can be updated as needed and this will give a more updated installation when I have to wipe and load a computer. I work for a school district with 13 buildings and over 4000 computers. We are constantly having to reimage machines throughout the year for one issue or another.
      My Computer


  7. Posts : 17,661
    Windows 10 Pro
       #7

    Thanks for clarifying this. You are right, solution I told would not work for you, in addition to not being practical in your scenario.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:45.
Find Us




Windows 10 Forums