[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
    @farag congratulations... keep up the good work...
     
  2. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  3. ERRASoft

    ERRASoft MDL Novice

    Aug 17, 2014
    6
    2
    0
    Can we tranlate it to german? and if how
    thanks for your work
     
  4. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    Of course it can be. Better wait for the 5.0 version. The tranlations were improved by fleet command
     
  5. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  6. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    #68 farag, Sep 18, 2020
    Last edited: Sep 18, 2020
    (OP)
    @drew84, can you update the changelog again? :)
    @ERRASoft, so you may start with translating every comment in English. As I updated the script, the tranlation became much better and it is already being used in the 5.0 version. Not to mention, in the GUI version, SophiApp. :cool:
     
  7. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
    With pleasure Sir.. Changelog Updated
     
  8. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    #70 farag, Sep 18, 2020
    Last edited: Sep 22, 2020
    (OP)
    The early 5.0 version as a module.:worthy::hug2::band:
     
  9. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  10. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  11. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
    #73 drew84, Sep 24, 2020
    Last edited: Nov 11, 2020
    Windows-10-Sophia-Script

    Windows 10 2004/2009 only

    CHANGELOG: 5.0.0
    to present

    11.11.2020 (Version 5.2.0) *NEW*

    Code:
    Updated
    
        * Code Refactoring.
          Thanks to FrankSinatra & iNNOKENTIY21 ;
          
           Almost all functions were rewritten to accept arguments;
           e.g. DisableTelemetryServices and EnableTelemetryServices are now
    
                 TelemetryService -Disable
                 TelemetryService -Enable
    
        * Updated the preset file Sophia.ps1. Use the new one!;
      
        * Isuues Closed #81 - [VirtualBOx] Install Linux (Ubuntu) new Virtual Machine 
               ''       #83 - Network Environment not working as it should
               ''       #84 - Clarification of some of the selectable settings
               ''       #85 - Request for a 'Default' mode
          Pull Request  #86 - Variable "$PSScriptRoot" added to enable execution from another directory
                              "-FileName Sophia" added to keep the localization function working even if different settings are saved (e.g. Sophia_only_telemetry.ps1)
               ''       #87 - Specify what a "preset file" is
      
        * Updated localizations and added a few more;
      
            Chinese simplified (#79). Thanks to @JonathanChuyan;
            Italian (#80). Thanks to @garf02;
            Turkish (#82). Thanks to @v30xy;
            French. Thanks to coleoptere2007;
            Ukranian. Thanks to lowlif3;
          
            Now available in (Full List):
            English, Chinese (Simplified), German, French, Italian, Ukrainian, Russian and Turkish
          
        * Minor changes.
    
       



    09.10.2020 (Version 5.1.1)
    Code:
     
    Updated
    
    
        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.
    
       

    08.10.2020 (Version 5.1.0)
    Code:
     
    Updated
    
        * The script becomes fully translatable;
    
        * The translations are moved to separate files Sophia.psd1;
     
              To translate into your language you should Create a folder with the appropriate future localization name;
              ------------------
              $PSUICulture
              ------------------
              Place the translation into this folder without changing the file name (Sophia.psd1)
    
              Thanks to FrankSinatra & westlife for the tip.
    
        * "DisableSuggestedContent" function renamed into "DisableWhatsNewInWindows";
        * "EnableSuggestedContent" function renamed into "EnableWhatsNewInWindows";
            Closes
              #65 If you skip installation of WSL all your existing wsl files are wiped immediately.
              #71 Cant open Shared Folder or Printer
              #72 Function DisableTailoredExperiences defined twice, again (above 3) thanks to westlife;
    
        * Functions improved
              UninstallOneDrive;
              SetupWSL;
              DisableBackgroundUWPApps westlife;
              DisableReservedStorage.
    
        * Functions simplified
              RemoveProtectedFolders;
              RemoveAppsControlledFolder;
              RemoveDefenderExclusionFolders;
              RemoveDefenderExclusionFiles.
    
        * The preset file renamed into Sophia.ps1;
    
        * Comments;
    
        * Minor changes.
    
       

    25.09.2020 (Version 5.0.1)
    Code:
       Prerequisite: Windows 10 2004 only
    
       Updated
    
       * The "SetTempPath" function;
    
             Fixed error: There is a mismatch between the tag specified in the request and the tag present in the reparse point
     
       * Descriptions;
    
       * Minor changes.
       

    24.09.2020 (Version 5.0.0)
    Code:
       Prerequisite: Windows 10 2004 only
    
       Updated
    
       The script has a new name: Windows 10 Sophia Script ❤️
    
       The Script has been rewritten as a Powershell module, and can/should be run via .\Preset.ps1
    
       The resulting module (with about 270 functions) also comes with a preset file!
    
       Features
     
       Restore.: Every tweak in a preset file has its' corresponding function to restore the default settings;
    
       Flexible: Comes with the option to Create your own preset file!
       

    Note: Before running the script read the FAQ

    For previous change-logs please check here
     
  12. ERRASoft

    ERRASoft MDL Novice

    Aug 17, 2014
    6
    2
    0
    what is the SophiApp and where can i find it
    ps: thanks for your good work
     
  13. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    SophiApp is in development. No ETA but may be the first open beta in the late 2020. We have huge plans for it. Hope everything will be OK.

    Also I've finished the 5.1 version. It is now fully translatable!
    The current script structure will be

    Code:
    en-US/Sophia.psd1
    ru-RU/Sophia.psd1
    Sophia.ps1
    Sophia.psm1
    
     
  14. mdl052020

    mdl052020 MDL Senior Member

    May 31, 2020
    328
    305
    10
    @farag Your Scrips are Very Nice . Great work.
     
  15. TUniversum

    TUniversum MDL Novice

    Oct 7, 2020
    1
    0
    0
    Hello I have a question
    I have downloaded latest Sophia Script and did everything like in the video tutorial:


    There are several problems I have:

    1. Is it needed to remove the # char in both lines where it is written in English and Russian or only where there is English language?

    2. When i was running PowerShell as Administrator and copy/paste the code:

    and then copy/paste the:
    there is an error

    Could you explain me step by step what I am doing wrong to fix my problem?
    Thanks a lot.
     
  16. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
    #78 farag, Oct 7, 2020
    Last edited: Oct 7, 2020
    (OP)
    Code:
    DisableTelemetryServices
    Hello! You only need to operate only with lines where the functions names are presented. So do not touch comment sections. Neither English nor with Russian. :)
    Just comment out or uncomment functions.
    Like
    Code:
    DisableTelemetryServices
    or
    Code:
    # DisableTelemetryServices
    Haven't any idea what is going wrong. May this may help: https://github.com/farag2/Windows-10-Sophia-Script#usage

    I can reply more detailed only tomorrow. Also I've finished with the 5.1. Will upload tomorrow.

    Anyway, just Google how to run ps1 file. Try to type
    Code:
    preset
    (if you are in a folder with this file) and press TAB. It have to autocomplete in .\Preset.ps1 if PowetShell "feels" that file is this folder.
     
  17. farag

    farag MDL Junior Member

    Apr 1, 2014
    71
    88
    0
  18. drew84

    drew84 MDL Addicted

    Mar 13, 2014
    734
    1,197
    30
    Changelog Updated