[PowerShell] Windows 10 Sophia Script 5.10.8 x64 2021

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

  1. ERRASoft

    ERRASoft MDL Novice

    Joined:
    Aug 17, 2014
    Messages:
    17
    Likes Received:
    3
    Trophy Points:
    0
  2. ERRASoft

    ERRASoft MDL Novice

    Joined:
    Aug 17, 2014
    Messages:
    17
    Likes Received:
    3
    Trophy Points:
    0
  3. farag

    farag MDL Member

    Joined:
    Apr 1, 2014
    Messages:
    168
    Likes Received:
    201
    Trophy Points:
    10
  4. farag

    farag MDL Member

    Joined:
    Apr 1, 2014
    Messages:
    168
    Likes Received:
    201
    Trophy Points:
    10
    Couldn't reproduced on my personal Surface. Everything works smoothly. Concerned... Can you record a GIF?
     
  5. drew84

    drew84 MDL Addicted

    Joined:
    Mar 13, 2014
    Messages:
    956
    Likes Received:
    1,490
    Trophy Points:
    30
    13.06.2021 v5.10.7

    Diff from v5.10.6
    5.10.6...5.10.7
    • #190 closed;
    • The manifest file moved to the Manifest folder;
    • The module file moved to the Module folder;
    • Minor changes.
    • The development focus shifted to SophiApp
    • Sophia Script Wrapper 2.0.1
      • Added multi-languages support (only for the functions' descriptions);
      • Reverted back the Opposite function. Closes #186;
      • UI changes.
     
  6. farag

    farag MDL Member

    Joined:
    Apr 1, 2014
    Messages:
    168
    Likes Received:
    201
    Trophy Points:
    10
    Wrapper 2.0.2 soon)
     
  7. drew84

    drew84 MDL Addicted

    Joined:
    Mar 13, 2014
    Messages:
    956
    Likes Received:
    1,490
    Trophy Points:
    30
    #267 drew84, Jun 17, 2021
    Last edited: Jun 19, 2021
    Wrapper 2.0.3 soon) :D Edit: Looks like he has changed his mind, it is now back to 2.0.2
     
  8. JeepWillys58

    JeepWillys58 MDL Senior Member

    Joined:
    Nov 6, 2010
    Messages:
    334
    Likes Received:
    151
    Trophy Points:
    10
    Hi guys!

    Can anyone tell me how to remove the invalid Edge shortcut from Start Menu?

    [​IMG]

    Thanks in advanced!

    Regards
    @JeepWillys58
     
  9. farag

    farag MDL Member

    Joined:
    Apr 1, 2014
    Messages:
    168
    Likes Received:
    201
    Trophy Points:
    10
    Couldn't unpin? Reset the whole Start by removing the the registry hive.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ CloudStore\Store\Cache\DefaultAccount
     
  10. mdl052020

    mdl052020 MDL Member

    Joined:
    May 31, 2020
    Messages:
    1,046
    Likes Received:
    1,140
    Trophy Points:
    60
    Deat Farag it can also be done by removing old legacy edge package using appxpackage powershell command but we have to first remove srdrepository sql database trigger then set isinbox to 0 to apply removable policy.
     
  11. drew84

    drew84 MDL Addicted

    Joined:
    Mar 13, 2014
    Messages:
    956
    Likes Received:
    1,490
    Trophy Points:
    30
    20.06.2021 v5.10.8

    Diff from v5.10.7
    5.10.7...5.10.8

    • The UnpinTaskbarEdgeStore function renamed into UnpinTaskbarShortcuts, and added feature to unpin the Mail shortcut
      • UnpinTaskbarShortcuts -Shortcuts Edge, Store, Mail.
    • The PowerManagementScheme fucntion rename into PowerPlan;
    • #195, #196, #200 closed;
    • Updated the Chinese translation. Thanks to @flashercs;
    • Minor changes.
    • The development focus shifted to SophiApp
    • Sophia Script Wrapper 2.0.2
      • Fixed runtime error;
      • Fixed PowerShell 7.1 launch (detects 5.1 or 7.1 and uses appropiate PowerShell to launch either);
      • Added online check for the latest Wrapper version. If you are using old version it will exit;
      • Added online check for the latest imported script version. If you are using old version it will disable directly running (run PowerShell button disabled);
      • UI changes.
     
  12. MarvelX7

    MarvelX7 MDL Novice

    Joined:
    Jun 1, 2021
    Messages:
    35
    Likes Received:
    17
    Trophy Points:
    0
    how to add in OEM folder in windows iso with setupcomplete.cmd¿¿
     
  13. drew84

    drew84 MDL Addicted

    Joined:
    Mar 13, 2014
    Messages:
    956
    Likes Received:
    1,490
    Trophy Points:
    30
    No expert, but this might do the trick (at least hopefully, point you in the right direction)
    Experts are free to correct any unintentional errors, as previously stated no expert

    1.
    Use Wrapper to select your desired Options
    then save as Your-Template.ps1 <--- Obviously Your-Template can be any name you wish

    2.
    Save Following as Your-Template.cmd
    Code:
    @ECHO OFF
    CD /D "%~dp0"
    
    NET SESSION >NUL 2>&1
    IF %ERRORLEVEL% NEQ 0 (
        ECHO Permission denied. This script must be run as an Administrator.
        ECHO:
        PAUSE
        EXIT
    ) ELSE (
        PowerShell.exe -NoProfile -ExecutionPolicy Bypass -File .\Your-Template.ps1 -Argument 2> .\Your-Template.error
        DEL /F /Q "%~dp0Your-Template.error" >NUL 2>&1
        DEL /F /Q "%~dp0Your-Template.ps1" >NUL 2>&1
        DEL /F /Q "%~f0" >NUL 2>&1
    )
    PAUSE
    EXIT
    
    3.
    Place Your-Template.ps1 and Your-Template.cmd in Sources\$OEM$\$$\Setup\Scripts Folder

    4.
    Call via Setupcomplete.cmd
    Code:
    REM Answer files should ALWAYS be removed from the 'Windows\Panther'
    REM and 'Windows\System32\Sysprep' directories immediately after they've been processed.
    call “%WinDir%\ Setup \ Scripts \ Your-Template.cmd”
    
    Whilst not showing the above, check out https://github.com/farag2/Windows-10-Sophia-Script#how-to-use for finer clarifications of script usage

    Edit: will probably need localization pack in same folder as well
     
  14. farag

    farag MDL Member

    Joined:
    Apr 1, 2014
    Messages:
    168
    Likes Received:
    201
    Trophy Points:
    10
    Dont think it's necessary: the old Edge was already replaced with the new one.
     
  15. mdl052020

    mdl052020 MDL Member

    Joined:
    May 31, 2020
    Messages:
    1,046
    Likes Received:
    1,140
    Trophy Points:
    60
    You havent got it correctly . i was saying this for removing old legacy leftover shotcut at start menu.
     
  16. farag

    farag MDL Member

    Joined:
    Apr 1, 2014
    Messages:
    168
    Likes Received:
    201
    Trophy Points:
    10
    Hm, really? You say, that after installing a new version an old shortcut left?) I don't think that I should add a oneliner to remova a small leftover. :)
     
  17. mdl052020

    mdl052020 MDL Member

    Joined:
    May 31, 2020
    Messages:
    1,046
    Likes Received:
    1,140
    Trophy Points:
    60
    I am saying after removing edge chromium the start menu left old legacy edge shortcut which can be removed via removing old legacy edge packages using srdrepository database isinbox tweak but before that we have to remove the triggers applied to package column.
    if a oneliner reg tweak works then its a perfect solution but be sure it works .
     
  18. ERRASoft

    ERRASoft MDL Novice

    Joined:
    Aug 17, 2014
    Messages:
    17
    Likes Received:
    3
    Trophy Points:
    0
    i make a few test but it didn't work is here some one to make it work with Sophia Script?
     
  19. drew84

    drew84 MDL Addicted

    Joined:
    Mar 13, 2014
    Messages:
    956
    Likes Received:
    1,490
    Trophy Points:
    30
    #279 drew84, Jun 27, 2021
    Last edited: Jun 27, 2021
    ... will check, ...

    Edit: wrong thread
     
  20. mdl052020

    mdl052020 MDL Member

    Joined:
    May 31, 2020
    Messages:
    1,046
    Likes Received:
    1,140
    Trophy Points:
    60
    I checked this awesome script tool by farag some months ago with setupcomplete & it worked flawlessly at my side . dont know whats wrong at other users end.
    i must say Its a great contribution by farag.
    Pl keep up this @wesome script tool :)