[PowerShell] Sophia Script for Windows 10 & Windows 11 | 5.17.8 | 6.5.8 | x64 2023

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

  1. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Unfortunately, no. only by comparing 2 files via Beyond Compare. As I do.
     
  2. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    606
    196
    30
    could you post an example of what you change.?
     
  3. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    #363 drew84, Jul 6, 2022
    Last edited: Jul 6, 2022
    6.1.1 Latest

    Diff from v6.1.0
    6.1.0...6.1.1

    • Now the repo doesn't keep any 3rd party libraries, and all scripts are built using an updated GitHub Action config;
    • Fixed bug in NetworkAdaptersSavePower function when script hung if one network adapter was disabled;
      • Reported by @poohart.
    • Fixed bug in UninstallUWPApps function for PowerShell 7 based scripts when a WPF form didn't render at all;
      • Reported by @poohart.
    • Improved UpdateLGPEPolicies function;
      • Now it creates GPT.ini file automatically if it doesn't exist.
    • Minor changes;
    • Fixed numerous typos.
    Sophia Script Wrapper 2.5.5
    • @BenchTweakGaming fixed bug when the app crashed if a PowerShell 7 preset was imported;
    • Minor changes;
    Code:
    SHA256 Values
    
    Sophia.Script.for.Windows.10.LTSC.2019.v5.3.1.zip          1C8B3B5CA76BF20651D53C5F882973D8CA1CDBDE9114BCF1C8C11FC3EC80F17D
    Sophia.Script.for.Windows.10.LTSC.2021.v5.13.1.zip         87CB29F92B751820F6E8E901135DAA6BC3D2C19949EF05BDB02A7BED9272F8B5
    Sophia.Script.for.Windows.10.PowerShell.7.v5.13.1.zip      23C57610C217F0DA4613DEE82F2C8BB4CC07614FBF9430EDD4D80942D7EEF5E8
    Sophia.Script.for.Windows.10.v5.13.1.zip                   102C549F02C7E5B4F0981894AD9FE1C98F9C0333901C00EC17170FF29BD7DF03
    Sophia.Script.for.Windows.11.PowerShell.7.v6.1.1.zip       D4A7F070021AC1D55382104A25984ADF68C51F34D4A2F928FC57ACF3C7EFC98C
    Sophia.Script.for.Windows.11.v6.1.1.zip                    4CD9684972120694CD9E361E53AEB4B175CC9ED496B558BC5BEE6407EC86B354
    Sophia.Script.Wrapper.v2.5.5.zip                           15FE538DFEF0C288752A5941E0230C326C75FB27C967798F7EDDDF18BD23E012


    Check out SophiApp 1.0.0.71!
     
  4. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    #364 drew84, Jul 11, 2022
    Last edited: Jul 11, 2022
    ... not official, but accessible 6.12
    Code:
    Sophia Script for Windows 10 LTSC 2019       6.1.2 — 10.07.2022
    
    Sophia Script for Windows 10 LTSC 2021       6.1.2 — 10.07.2022
    
    Sophia Script for Windows 10 PowerShell 7    6.1.2 — 10.07.2022
    
    Sophia Script for Windows 10                 6.1.2 — 10.07.2022
    
    Sophia Script for Windows 11 PowerShell 7    6.1.2 — 10.07.2022
    
    Sophia Script for Windows 11                 6.1.2 — 10.07.2022
    
    Edit: @farag, just noticed the link to your Full Changelog at OP points nowhere...
    Here is the link for those that want to have a look (Note: Does not yet include changes for the above)
     
  5. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Haven't released yet. I found bugs (and bugs again) in the abyss called Wrapper. It needs to be re-written by David ASAP. Will be released tomorrow, I think. :)
     
  6. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    #366 drew84, Jul 17, 2022
    Last edited: Jul 17, 2022
    Build 6.12 16.07.2022 Latest (Official)
    Windows 11 21H2/22H2 | Windows 10 2004/20H2/21H1/21H2/22H2 | Enterprise LTSC 2021 | Enterprise LTSC 2019


    Before running the script read Before running & How to use


    Diff from v6.1.1
    6.1.1...6.1.2

    *Anniversary* build of Sophia Script! 100
    • Improved startup checkings, especially regarding Microsoft Defender whether it wasn't removed or destroyed by malicious tweakers;
    • Added RKNBypass function to enable proxying only blocked sites from the unified registry of Roskomnadzor;
    • Added WSA function to enable the latest Windows Subsystem for Android™ with Amazon Appstore;
      • All necessary dependencies will enabled (reboot may require) and the Microsoft Store WSA page will be opened to install it manually;
      • To use Windows Subsystem for Android™ on your device, your PC needs to have Solid State Drive (SSD) installed.
    • #365 closed
    • Minor changes;
    • Fixed numerous typos.
    Sophia Script Wrapper 2.5.6
    • @BenchTweakGaming fixed minor UI bug;
    • Resized width of window for Russian and fixes scrolling per tab.

    You can always download the latest Sophia Script archive by invoking (and not as administrator too) in PowerShell console
    Code:
    irm script.sophi.app | iex
    
    The command will download and expand the latest Sophia Script archive (without executing the script) according which Windows and PowerShell versions it is run on.
    If you run it on Windows 11 via PowerShell 5.1, it will download Sophia Script for Windows 11 PowerShell 5.1.

    Check out SophiApp 1.0.0.71! (Official Release) 1.0.0.73! (Latest Pre-Release)
     
  7. luna30774

    luna30774 MDL Novice

    Jul 22, 2022
    5
    3
    0
    So my anti virus suddenly has an issue with.. not exactly Sophia, but the Preset script created by the Wrapper???

    Its normally rly reliable and never reports on just unknown or unofficial things like some others might.
    Also I've used Sophia on my pc before, as well as on a new install and my friend used it too, all without any issues.

    Earlier I wanted to try out the automatic cleanup task, so I loaded my preset, clicked on clear in the Wrapper and only ticked the add cleanup task thing, and then ran it from the Wrapper.
    And a few seconds later Kaspersky Internet Security says it found some trojan and starts some advanced desinfection stuff and basically locks me out of my pc until it finished.

    I wanted to know what exactly the script now apparently did but it didnt say, it only showed the path.
    I recovered the file from quarantine and checked it in editor and it was just the normal preset, well, with every section emptied except the one to add the cleanup task.

    Then I saw on Github that the Cleanup task feature recently got updated so I'm wondering if theres maybe a bug?
    Sorry idk what exactly would be the problem, thats all of the report it told me.


    Event: Malicious object detected
    Application: Windows PowerShell
    User: WinPC\Win_10
    User type: Active user
    Component: System Watcher
    Result description: Detected
    Type: Trojan
    Name: PDM:Trojan.Win32.Generic.nblk
    Threat level: High
    Object type: Process
    Object path: i:\2_logon\3_sophia\sophia script for windows 10 v5.13.2
    Object name: preset.ps1
    Reason: Databases
    Databases release date: Today, 7/21/2022 12:26:00 PM

    Event: Process terminated
    Application: Windows PowerShell
    User: WinPC\Win_10
    User type: Active user
    Component: System Watcher
    Result description: Terminated
    Type: Trojan
    Name: PDM:Trojan.Win32.Generic.nblk
    Threat level: High
    Object type: Process
    Object path: C:\Windows\System32\WindowsPowerShell\v1.0
    Object name: powershell.exe


    Hope that helps in any way,.. don't exactly wanna try to reproduce it.
    Guess I'll just leave the setting task thing for now, the other things seem to work just fine.
     
  8. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Just a false positive. What do you want from Kaspersky, the sittest AV in thw world. A the the company itself does. Nothing actually changed. I think it was triggered by creating scheduled tasks. Nothing special.

    I always post what 've changed. Link like this: https://github.com/farag2/Sophia-Script-for-Windows/compare/6.1.1...6.1.2
     
  9. luna30774

    luna30774 MDL Novice

    Jul 22, 2022
    5
    3
    0
    Idk why you dislike Kaspersky so much, I've never had any problems with it and it seems much more decent than the mess of other AV's out there, doesnt annoy me with offers or notifications, doesnt take much system resources and so far did it's job really well.

    But well, all the other settings work just fine, and the other 2 tasks also are no problem, also while I'm here, I found Sophia cause someone recommended it to me when I asked how to remove the garbage after a fresh install.
    Another person also recommended some Windows 10 Debloater script but Sophia then said it was bad, so I freshly installed the image again and started from the beginning.
    Whats so bad about that script if I may ask?
     
  10. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    #370 farag, Jul 23, 2022
    Last edited: Jul 23, 2022
    (OP)
    Sycnex's script? It destroys Windows. That's all it can do. Look how many opened and unreplied issues there are: https://github.com/Sycnex/Windows10Debloater/issues

    The dev even doesn't know PowerShell but coded a tool to break OS.
    Regarding Kaspersky: it's always has been s**t. They even don't know how to interview (I was trying to in 2020). I wrote an article on the largest IT portal in Russia what they asked me on the interview regarding my specialty. P.S. they also offered me to cast out demons from a video projector. This is not a joke. They didn't a f**k what I am, just kidding around all the interview.
     
  11. luna30774

    luna30774 MDL Novice

    Jul 22, 2022
    5
    3
    0
    Ah wow thats a lot of issues.
    Well, I'm not running anything without reading it before, so I've been reading through some script the last days, googling nearly every line cause I wouldn't know what it does.
    I just wanna have a clean windows that doesn't use half of my resources for garbage and telemetry, but it's sometimes difficult to distinguish between "tweaks" that are floating around the internet but don't actually do anything and things that actually make sense..
    I've seen scripts apply meaningless tweaks to timers and stuff actually making latency worse than better only cause "it might help in certain cases" and then it got copied and pasted into some script.

    I took care of all the apps and features by not including them in the image in the first place and running msmg toolkit over it, but that still leaves a load of scheduled tasks, services with cryptic names and registry settings, and the entire mess of logging.
    And I'm not exactly sure how to deal with all those in a reliable way without risking to break anything,.. well other than googling every line, but even then I might not understand it.

    Oh forgot my question,
    does Sophia App do everything Sophia Script can do as well?
    Is it better to use Sophia App or Sophia Script?
     
  12. raptorddd

    raptorddd MDL Addicted

    Aug 17, 2019
    606
    196
    30
    i have never faced any problems using sophia. its the only script i run for debloating. and i also had made msmg iso. and use sophia to remove some stuff.
    i think you can dom more with script than app.
    i like the script and wrapper than the app. once i set everything up i just run the script.
     
  13. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
  14. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Oh, don't make up stories repeating after YouTubers. :) You really think Windows use half of your recorces to collect and send telemetry? Oh, my gosh.

    Yes, because... this is Windows, a hybrid kernel OS! you want 1 scheduled task in the Scheduler and 1 service? of course it will be regarding Windows update. this makes no sense. I tell everyone (even at workplace): stop breaking your OS! just work on it. even without tweaking it. especially if you do not udnerstand how they (and OS too) work! most of them do not work (cus being from 2000s), the rest will slow your OS rathen than speed up. Just customize UI and security feature. If you want to break Defender (I'm not talking about switching to another AV) or destroy WU (cus you still think that OS gets them every day and restarts your PC every time theuy applied), better purchase Mac. really. I will explain it in Russian in more explicit way, but it won't be pretty polite towards you. :)

    > does Sophia App do everything Sophia Script can do as well?
    Now unfortunately, as I already wrote here, the SophiApp features cover only 95 % of Sophia Script. So if you prefer more convenient way to configure Windows, and that there is no yet some really difficult features to relealize like changing user folders location or disabling IP6, SophiApp is your choice. More you use, more bugs will be caught. And keep in mind, that there might be bugs :) But I bet the upcoming the 75th build will get rid of all teething problems. I hope so. Find a bug, let us no. Better via the Telegram group.
     
  15. luna30774

    luna30774 MDL Novice

    Jul 22, 2022
    5
    3
    0
    Maybe I've forgotten too much that English isn't your main language, I should be more precise if I expect you to understand what I'm trying to say.

    Naturally that windows uses half the resources etc is exaggerated. I know it won't give me more fps or anything like that, I just like to have things as clean as possible.

    Windows is a big OS that covers a whole lot of different devices and needs to support the wishes of lots of different people.
    Some people want to use Microsoft account to sync all their stuff, they want XBox services and so on.
    I don't need some of theese things, that's why I want to disable them, not because they make my PC slower or anything, just because they are unnecessary for me.


    If you think it's better to not touch anything, why would you make Sophia in the first place?

    Of course I don't want to break the OS, if I wanted that I would just run a bunch of random scripts, or just disable everything.
    Whats wrong with wanting to disable some of the privacy and telemetry features?
    Whats wrong with wanting to disable some services and scheduled tasks that are just unnecessary for me?
    Half of the stuff thats enabled by default I don't need, I dont need tablet stuff, I dont need speech recognition, I don't need Xbox, UWP apps, Microsoft account.
    I need a working Windows and all services and tasks that are important for it thats all.

    Thats why I use Sophia, cause it explains what every setting does.
    Thats why I read every line of other scripts and google what it does.
    Thats why I test things out on a different install.
     
  16. luna30774

    luna30774 MDL Novice

    Jul 22, 2022
    5
    3
    0
    #376 luna30774, Aug 4, 2022
    Last edited: Aug 4, 2022
    Hello ~
    I've got 2 more questions..

    Does Sophia work offline? (Aside from downloading vc_redist and .net)
    I normally ran the script right after a fresh install while being offline, but when I ran it again after going online and doing updates I noticed that it took a bit longer and had a lot of things in yellow at the end.

    Secondly, I'm aware that Telemetry level 0 only works on enterprise version.
    Can I still set HKLM\Software\Policies\Microsoft\Windows\DataCollection; AllowTelemetry=0 ?
    So that OOSU10 doesn't mark it in red.
    Or does it have a negative effect?

    Oh and a third one actually.
    Should I install the .Net Desktop Runtime?
    And only that or the Console .Net Runtime too?
    I have both the Desktop Runtime and the Console one on my computer but I also have Visual Studio so that's probably why.
    My friends don't have either the Desktop one or the Console one.
     
  17. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    It seems I missed your question. Sorry :)
    Yes, it works only, but some functions relies on the Internet connection due to the script downloads some files from there.

    Actually, you can but there won;t be any effect for system: it will still operate like the value is 1 if your edition isn't Ent. It has no negative effect except MS doesn't know how do you work on Windows, that may lead in the future that they remove or add some features that you or the whole community will critisize. Sp it's ony up to you to do it, but do not surprise if Windows will turn into wrong way. :)

    If you're going just to use apps built with .NET 6, 7, it will be enough for you. No need to install a console version.
     
  18. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    6.1.5 is out and 6.2.0 is on the way too!
     
  19. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    23.10.2022 Latest

    6.2.0

    Enterprise LTSC 2019 | Enterprise LTSC 2021 | Windows 10 21H2/22H2 | Windows 11 21H2/22H2
    Diff from v6.1.5
    6.1.5...6.2.0

    • Moved from PolFileEditor.dll to LGPO.exe from Microsoft;
      • It lets manually created policies keys in registry be visible in gpedit.msc snap-in by re-building policy cache by official way;
      • So all functions that rely on policy will be visible in the snap-in for you;
      • The UpdateLGPEPolicies was edited to be suitable for a new method based on LGPO.exe;
        • Commented out be default now.
    • Added a new function Cursors
      [​IMG]
      • Lets you to install free (light and dark) "Windows 11 Cursors Concept v2" cursors from Jepri Creations on-the-fly;
      • Default option is Dark.
    • The InstallVCRedist function now installs both x86 and x64 Visual C++ Redistributable 2015–2022 packages;

    • Fixed bug in the Windows Cleanup scheduled task for cleaning Windows. If you applied this function in 6.1.5 release, re-apply in again using this release, unless the task won't run at all.
      • How-to call specific function
      Sophia -Functions "CleanupTask -Register"
    • Minor changes.
    CHECKSUMS
    Code:
    Sophia.Script.for.Windows.10.v5.14.0.zip                 89A20C29147203841AF453AAB2099B40A22C96AFFA6463FB2E0B32DBFD192FC4
    Sophia.Script.for.Windows.10.PowerShell.7.v5.14.0.zip    896ADD226335EDFC67E359FF9B1D345162AE7EED400F4E8F03025FB345402DBB
    Sophia.Script.for.Windows.10.LTSC.2019.v5.4.0.zip        2D0C85B7AF7910F6E613FF88EF4BA5044E854F1C5F738D5DBE83B91422E7C512
    Sophia.Script.for.Windows.10.LTSC.2021.v5.14.0.zip       D1277AC62BE5CF3D7336CA6D1A08E1C6253048EA135D6820432885EFD85AC783
    Sophia.Script.for.Windows.11.v6.2.0.zip                  08D3F7D2B84406A83F2729B5274679D4B5AAF15B3E5202E73AB5A0BC5AFBE2DB
    Sophia.Script.for.Windows.11.PowerShell.7.v6.2.0.zip     85F545150099F20B84C1905F8723A4AB3E2FFCF294D3C9D355FFBF7DAFA7A61F
    Sophia.Script.Wrapper.v2.5.7.zip                         077FF542E7A4BD54748C3CAF858570B25E8052D989291D79C57C4FE6EADCC88D
    
    
    DOWNLOAD
     
  20. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,347
    2,302
    60
    #380 drew84, Oct 31, 2022
    Last edited: Oct 31, 2022
    31.10.2022 Latest

    6.2.1
    Enterprise LTSC 2019 | Enterprise LTSC 2021 | Windows 10 21H2/22H2 | Windows 11 21H2/22H2
    Diff from v6.2.0
    6.2.0...6.2.1
    • Fixed old bug in Meet Now function when it didn't save registry key value;
    • Improved all scheduled tasks creation;
      • Unified tasks with SophiApp: they are created now in Sophia folder;
      • When you remove all tasks in the Task Scheduler, folder will be removed too;
    • Added missed strings in the Wrapper configs;
    • Improved Wrapper German translation;
    • Minor changes.
    Code:
    Sophia.Script.for.Windows.10.v5.14.1.zip                 8F5A09B0B1F401E565B43755B155443AFDBA56207418267331DB14B47F68748D
    Sophia.Script.for.Windows.10.PowerShell.7.v5.14.1.zip    F7763AC746091E9D679BB7021B14D62A227A579264D1B56F288DAA727613E5B7
    Sophia.Script.for.Windows.10.LTSC.2019.v5.4.1.zip        71FF9C0E45E689FB07C333D4F0A582384463F2DF391FC20163F51A0293E2742D
    Sophia.Script.for.Windows.10.LTSC.2021.v5.14.1.zip       9F7C04247E936AF0971D7E3A6C5260662BF597EB0F54006F3813201746465BE5
    Sophia.Script.for.Windows.11.v6.2.1.zip                  1CD89B28305473BEDB97267B4E0CD56C94AF2F595DCAD0FB7A3DCCF6F4C2E520
    Sophia.Script.for.Windows.11.PowerShell.7.v6.2.1.zip     5E0239ED45AAC2C9442A0EA69B781B3E8556CE6A7EAD346168A975032374059A
    Sophia.Script.Wrapper.v2.5.7.zip                         D1B158F7467F6BB8013495AA2B9BE5763709FCAA60712CB6E61B1568B359E9C6