[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
    @Nevals The pics haven't been uploaded...
     
  2. Nevals

    Nevals MDL Novice

    Jan 9, 2021
    10
    1
    0
    Ahh... I am sorry. I still can not add pictures/links... on this forum because I have new account
     
  3. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Upload to imgur!
     
  4. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Will.do some tests. Pretty strange.
     
  5. Nevals

    Nevals MDL Novice

    Jan 9, 2021
    10
    1
    0
    Great, thank you very much
     
  6. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    @Nevals, do you have a Discord acc? Or something else. As I can see on a pic there is a Sleep scheme. But you wrote that it's gone after applying script.
    Also can you expand the multimedia element?

    As I already wrote, I do not touch any power plan schemes. I just let user set the power management scheme on "High performance" (if device is a desktop)/"Balanced".
     
  7. Nevals

    Nevals MDL Novice

    Jan 9, 2021
    10
    1
    0
    Here is multimedia element https://prnt.sc/wk7zov

    Yes, I have Discord. Yes, I still have a sleep scheme but the computer does not go to sleep automatically after a defined period of inactivity.

    I tested this on clean Windows 10 install. After Windows installation and Windows update I made first print scr (that one with multimedia element) and after that I ran the Sophia script (after which I have no more multimedia element).

    I noticed this because my computer stopped going to sleep automatically after 30 minutes of inactivity and the only thing I changed was that I used the Sophia script. So I tested on a virtual machine to compare what the power plan looks like before and after Sophia script and I noticed that after the Sophia script there are fewer options so I assumed that the script has some impact on the power plan.

    Why the multimedia element disappears from the power plan after Sophia script?
     
  8. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    You can get in touch with me #sanctuary_s#6351. So you're sure that the bug can tested be on a VM?
     
  9. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    My Discord if you want to DM me: sanctuary_s#6351
     
  10. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    @Nevals Just have tested on a clean Windows 10 20H2 VM. Nothing has changed as I wrote before. I only enable a "High performance" plan with this function

    Code:
    if ((Get-CimInstance -ClassName Win32_ComputerSystem).PCSystemType -eq 1)
    {
        POWERCFG /SETACTIVE SCHEME_MIN
    }
    Of course the VM was restarted after the script applying.
     
  11. Nevals

    Nevals MDL Novice

    Jan 9, 2021
    10
    1
    0
    Did multimedia element also disappeared from the balanced power plan after script applying?
     
  12. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    No, everything stayed the same.
     
  13. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Ah, seems I got the point
     
  14. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    To restore these elements run this

    Code:
    Enable-WindowsOptionalFeature -Online -FeatureName MediaPlayback -NoRestart
    Without even restart. The point is that you (but not me on a VM) disabled this feature: https://github.com/farag2/Windows-1...108aa9d8d71bb0ea6809/Sophia/Sophia.psm1#L4291
    As I remember that feature is only needed for old games

    Now I got to go!
     
  15. Nevals

    Nevals MDL Novice

    Jan 9, 2021
    10
    1
    0
    I tried this but this did not restored multimedia elements.

    I also tested this on fresh VM install, same thing, I lose multimedia element in power plan
     
  16. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Restated PC?
     
  17. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Write to me in Discord.
     
  18. farag

    farag MDL Member

    Apr 1, 2014
    238
    352
    10
    Everything was fixed and explained. :D
     
  19. cheetoh

    cheetoh MDL Novice

    Nov 24, 2017
    4
    1
    0
    @farag, great work! Could you pls. include in your next release a new item: "Uninstall Internet Explorer 11"? Since you already have "Install Windows Sandbox" and "Instal WSL", inclusion of this request will save me the trouble of still having to go through "Turn Windows features on or off".