[PowerShell] Windows 10 Sophia Script

Discussion in 'Scripting' started by farag, May 8, 2020.

  1. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
    #81 drew84, Oct 9, 2020
    Last edited: Oct 9, 2020
    09.10.2020

    5.1...5.1.1
    • Added the German localization. Thanks to ERRASoft ;
    • Updated localizations;
    • Added manifest file. So the preset file is now loading Sophia.psd1 instead of Sophia.psm1;
    • EnableWin32LongPaths function wasn't enabled as a default one;
    • Functions updated
      *DisableWindowsErrorReporting;
      • EnableWindowsErrorReporting;
      • DisableScheduledTasks;
      • EnableScheduledTasks.
    • Minor changes.
     
  2. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
     
  3. ERRASoft

    ERRASoft MDL Novice

    Aug 17, 2014
    6
    2
    0
    is it possible to implement this Enable F8 BootMenu
     
  4. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    Sure.

    Code:
    function EnableBootMenu
    {
        Start-Process -FilePath bcdedit -ArgumentList "/set {bootmgr} displaybootmenu yes"
    }
    
    function DisableBootMenu
    {
        Start-Process -FilePath bcdedit -ArgumentList "/set {bootmgr} displaybootmenu no"
    }
     
  5. ivo22

    ivo22 MDL Novice

    Jul 20, 2015
    1
    1
    0
    Someone made a GUI for Sophia

     
  6. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    Exactly, it's not a GUI. It's designed fot configuring a custom preset file without editing the default one. So it is not). We've have been developing our own but the process is slow.:)
     
  7. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
    @farag, finally had a chance to run your latest script on 19042... absolute breeze, terrific work:tankyou:

    .. for anyone using the above for generating a custom preset, please note that in data.txt there is a comma missing after
    Code:
    ShowTrayIcons, HideTrayIcons
    should be
    ShowTrayIcons, HideTrayIcons,
    
    which will likely mess up any generated preset file.. fault does not lie with @farag's script
     
  8. Davidgamerthumbs

    Davidgamerthumbs MDL Novice

    Oct 25, 2020
    27
    40
    0
    #88 Davidgamerthumbs, Oct 25, 2020
    Last edited: Oct 25, 2020
    Sorry about that.

    This is David from BenchTweakGaming.com. I made the wrapper GUI for farag2 Sophia Script seen above.

    I am usually pretty careful about coding.
    Thanks for finding the error.

    Let me know what you guys think of the wrapper program.

    I plan on making a GUI wrapper or something different for other PowerShell Debloat scripts soon. Hopefully more better.
     
  9. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,064
    1,647
    120
    #89 coleoptere2007, Oct 27, 2020
    Last edited: Oct 27, 2020
    Hello I translated sophia.psd1 in fr-FR but cannot get it to work when I launch sophia.ps1 in Powershell only the english language for all the process. Any sugestions to get it working ? Thx
    PS: check your pm :)
     
  10. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  11. cheetoh

    cheetoh MDL Novice

    Nov 24, 2017
    2
    0
    0
    Using your wrapper, I was able to easily reverse some actions of the default Sophia script which I didn't like, e.g. relocating the Temp folder, blocking SMB, and removing MSPaint. Don't get me wrong, the Sophia script is absolutely the best debloat script that I have come across, it's just difficult to reverse individual actions without your conveniently easy-to-use wrapper.
     
  12. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    #92 farag, Nov 11, 2020
    Last edited: Nov 11, 2020
    (OP)
  13. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
  14. Davidgamerthumbs

    Davidgamerthumbs MDL Novice

    Oct 25, 2020
    27
    40
    0
    @farag I will try to see what I can do.

    I think I can update the wrapper to handle arguments
     
  15. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    3,064
    1,647
    120
  16. Davidgamerthumbs

    Davidgamerthumbs MDL Novice

    Oct 25, 2020
    27
    40
    0
    @farag

    Half way done.
    I hope to finish radiobuttons and defaults preset today. I am on the defaults preset

    Tool tips will be later.

    And I will test it after
     
  17. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    5,323
    6,395
    180
    ^
    looking forward to here :D:p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Davidgamerthumbs

    Davidgamerthumbs MDL Novice

    Oct 25, 2020
    27
    40
    0
  19. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  20. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
    @farag I must be going mad.. OP shows (my end) as not being edited since Sep 24th 2020
    Still has this information
    ----------------------------------------------------------
    Latest versions Windows 10 Sophia Script
    2004: v5.0 (module)

    Latest versions Windows 10 Setup Script
    2004: v4.6
    1903 — 1909: v4.5
    LTSC: v4.5
    ----------------------------------------------------------
    above copied and pasted directly from OP, ... and no link, as mentioned above.

    .. mentioning this as, your post and an earlier post #82 (which seemed critical of my post immediately before) dated Oct 9th,
    would suggest you were clearly updating the OP, or am I mistakenly looking in the wrong place, would be grateful for clarification.