Can I change Windows Settings, Default Programms in Powershell?


  1. Posts : 7
    Windows 10 Home
       #1

    Can I change Windows Settings, Default Programms in Powershell?


    Good Morning everyone
    I'm currently working on a WDS and I would like to automate as much as possible. I created a customize Userprofile (sysprep it and saved it on WDS-Server) thanks to a Tutorial on this Website and many of the changes I made were saved . I would like to realize a Powershell-Script that solves the settings that weren't kept by Windows during sysprep. Of course I can change this all by hand (that would be done in a few minutes , but a Script would be nice, if even possible.

    What I coun't solve so far are:
    • How to change Default Browser change to IE
    • How to change the Default Programm for PDF
    • Change Windows Setting (see picture of German Setting of Data Protection)
    • Change the Starting Page in Windows Edge

    So far I searched for several hours tried out many things, but couldn't find a real solution.
    Can you help me?
    Thank you in advanced Can I change Windows Settings, Default Programms in Powershell?-funk.png
      My Computer

  2. Try3's Avatar
    Posts : 7,379
    Windows 10 Home x64 Version 20H2 Build 19042.868
       #2

    You could use NirSoft RegFromApp to monitor the Registry entries that change as you set up these properties manually then run a Reg command within PowerShell to replicate the changes.

    Undo all your manual changes before testing the Reg command then check the Settings entries & related behaviour afterwards.
    - Whilst many changes to the Registry set the required behaviour there are also many that have no effect unless the change is made using the expected UI.
    - So, just for example, you can set Registry entries for Indexing options using Reg but they will have no effect on indexing because only changes effected by the Indexing options applet cause the desired changes.

    Denis
      My Computer


  3. Posts : 7
    Windows 10 Home
    Thread Starter
       #3

    Thanks for the tip


    Try3 said:
    You could use NirSoft RegFromApp to monitor the Registry entries that change as you set up these properties manually then run a Reg command within PowerShell to replicate the changes.

    Undo all your manual changes before testing the Reg command then check the Settings entries & related behaviour afterwards.
    - Whilst many changes to the Registry set the required behaviour there are also many that have no effect unless the change is made using the expected UI.
    - So, just for example, you can set Registry entries for Indexing options using Reg but they will have no effect on indexing because only changes effected by the Indexing options applet cause the desired changes.

    Denis
    I will try that
      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 21:17.
Find Us




Windows 10 Forums