[Script] Win 10 Toggle Tweaker (V4.0) -Official thread-

Discussion in 'Windows 10' started by Yasser Da Silva, Aug 12, 2015.

Tags:
?

How helpful is this Windows 10 Tweaker for you !

  1. 10/10 / Very handy (Must have tweaker)

    74.6%
  2. 5/10 / It's good.

    20.7%
  3. 0/10 :( / Not helpful at all

    4.7%
  1. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
  2. TigTex

    TigTex MDL Senior Member

    Oct 5, 2009
    475
    381
    10
    #382 TigTex, Sep 12, 2015
    Last edited by a moderator: Apr 20, 2017
    Here I am :D

    Wouldn't using this...
    Code:
    reg add "HKCR\Applications\photoviewer.dll\shell\open" /v "MuiVerb" /t REG_SZ /d "@photoviewer.dll,-3043" /f
    reg add "HKCR\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\Applications\photoviewer.dll\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Bitmap" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Bitmap" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3056" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Bitmap\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-70" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Bitmap\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Bitmap\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF" /v "EditFlags" /t REG_DWORD /d "65536" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3055" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-72" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.JFIF\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg" /v "EditFlags" /t REG_DWORD /d "65536" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3055" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-72" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Jpeg\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Gif" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Gif" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3057" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Gif\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-83" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Gif\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Gif\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Png" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Png" /v "FriendlyTypeName" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll,-3057" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Png\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\imageres.dll,-71" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Png\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Png\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Wdp" /v "EditFlags" /t REG_DWORD /d "65536" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Wdp" /v "ImageOptionFlags" /t REG_DWORD /d "1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Wdp\DefaultIcon" /ve /t REG_SZ /d "%%SystemRoot%%\System32\wmphoto.dll,-400" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Wdp\shell\open" /v "MuiVerb" /t REG_EXPAND_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3043" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Wdp\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    reg add "HKCR\PhotoViewer.FileAssoc.Wdp\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities" /v "ApplicationDescription" /t REG_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3069" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities" /v "ApplicationName" /t REG_SZ /d "@%%ProgramFiles%%\Windows Photo Viewer\photoviewer.dll,-3009" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpg" /t REG_SZ /d "PhotoViewer.FileAssoc.Jpeg" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".wdp" /t REG_SZ /d "PhotoViewer.FileAssoc.Wdp" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jfif" /t REG_SZ /d "PhotoViewer.FileAssoc.JFIF" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".dib" /t REG_SZ /d "PhotoViewer.FileAssoc.Bitmap" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".png" /t REG_SZ /d "PhotoViewer.FileAssoc.Png" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jxr" /t REG_SZ /d "PhotoViewer.FileAssoc.Wdp" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".bmp" /t REG_SZ /d "PhotoViewer.FileAssoc.Bitmap" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpe" /t REG_SZ /d "PhotoViewer.FileAssoc.Jpeg" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".jpeg" /t REG_SZ /d "PhotoViewer.FileAssoc.Jpeg" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".gif" /t REG_SZ /d "PhotoViewer.FileAssoc.Gif" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tif" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    reg add "HKLM\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations" /v ".tiff" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    
    ... instead of this (line 540)
    Code:
    Reg.exe add "HKCU\Software\Classes\.jpg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCU\Software\Classes\.jpeg" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCU\Software\Classes\.gif" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCU\Software\Classes\.png" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCU\Software\Classes\.bmp" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCU\Software\Classes\.tiff" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCU\Software\Classes\.ico" /ve /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff" /f
    Reg.exe add "HKCR\Applications\photoviewer.dll\shell\open" /v "MuiVerb" /t REG_SZ /d "@photoviewer.dll,-3043" /f
    Reg.exe add "HKCR\Applications\photoviewer.dll\shell\open\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f
    Reg.exe add "HKCR\Applications\photoviewer.dll\shell\open\DropTarget" /v "Clsid" /t REG_SZ /d "{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" /f
    Reg.exe add "HKCR\Applications\photoviewer.dll\shell\print\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\System32\rundll32.exe \"%%ProgramFiles%%\Windows Photo Viewer\PhotoViewer.dll\", ImageView_Fullscreen %%1" /f 
    Reg.exe add "HKCR\Applications\photoviewer.dll\shell\print\DropTarget" /v "Clsid" /t REG_SZ /d "{60fd46de-f830-4894-a628-6fa81bc0190d}" /f
    
    ... give you a better control of the image file type associations because with the 1st reg tweak, on the control panel, you can select windows photoviewer as the default program for 12 filetypes and with your tweak you can't do that, the only way is to manualy do "open with: windows photo viewer" and set as default (for only 8 filetypes)
    source: tenforums
     
  3. hamza1983

    hamza1983 MDL Novice

    Nov 1, 2009
    43
    42
    0
    Restore App to current User work for french version perfect
     
  4. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    Done
    Thanks.
     
  5. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    It was restored in French !!!
     
  6. TziMmys

    TziMmys MDL Junior Member

    Aug 27, 2012
    70
    8
    0
    Well done mate!!! That's the spirit!!!
     
  7. winbond

    winbond MDL Novice

    Oct 27, 2009
    44
    13
    0
    #387 winbond, Sep 13, 2015
    Last edited: Sep 13, 2015
    its a nice tool, thanks... what would make it even better though is if it had option to either set outbound firewall to block by default and clean/add rules only for necessary internet connectivity or clean/add rules to
    block all known ms servers
     
  8. TigTex

    TigTex MDL Senior Member

    Oct 5, 2009
    475
    381
    10
    Hello,

    Some small notes on version 2.22...
    The "dmwappushservice" windows services doesn't exist. The correct name is "dmwappushsvc".
    Also, put a big warning on .net framework tweak because it will break some programs and this "1. Clean Windows Update Junk (Highly Recommended)" is dangerous and should be avoided. It will break windows update if an update is beeing downloaded while you run this command. Windows cleans this folder automaticaly.

    Still reading the .bat ... :D
     
  9. TziMmys

    TziMmys MDL Junior Member

    Aug 27, 2012
    70
    8
    0
    This is how I think it should work....

    Start the app, lets say choose 4, Speed up pc Perfomance

    Type: 4, for boost ssd....

    Type: 1, for disabling Superfrech and prefetch....

    Now, the operation complete message should go away itself, not need for Ok click, except if there is an error....

    And then, your program should still have me on the "Speed Up performance, boost SSD Performance" tab that I was before and not sent me on first start up tab....

    I think these changes would make your program easier to use.

    Thanks for considering...
     
  10. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    I just wanted to add some modifications for those who want to disable totally ShellExperineceHost service, which is responsible for showing the modern UI elements such as: Start Menu, Battery UI, WIFI UI, Vol UI, Notification UI and calendar. Now as i am an experienced user myself and always replace the start menu with classic shell start menu, i wanted to replace all the other moder UI's also.

    The script already has the classic battery, Notification and volume UI, now i wanted to add the codes for the classic WIFI and calendar UI.

    Classic WIFI ui:
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Control Panel\Settings\Network]
    "ReplaceVan"=dword:00000002

    We need to take also permission of this key before changing it's value. I would like to ask your help here on how to do in CMD.

    Classic calendar UI: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell]
    "UseWin32TrayClockExperience"=dword:00000001

    The point of doing all this is to disable ShellHostExperience service by deleting the folder from Windows/Systemapps, while ending the task. Here i need a method on how to do this by script.

    There is also one other UI for replacing with the classsical UI: the context menu when right clicking on the taskbar icons. Unfortunately i do not know the reg key for enabling the classical UI on this :(. Can any of you digg some info on google please? :)

    After installing Classic Shell we can also disable cortana, by deleting it's folder windows/Systemapps.

    We need to script all this and add it to the main script. It would be great to disable ShellexperienceHost and COrtana and maintain full functionality.
     
  11. darkeiri

    darkeiri MDL Novice

    Apr 23, 2010
    7
    1
    0
    I just wished it was a little more streamlined... I'm still using TNBT 1.7 because it's so much easier to do everything at once, just typing N and Y. With your Tweaker there's A LOT more work involved.
     
  12. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    :tasty::clap:
     
  13. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    Ok i will try to fix that
    it is just little changes maybe tonight i will put a new version
     
  14. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    I thought about this before but it will just break your system and there is a lot of Hard work in it
    1.it's not possible to edit reg keys permission in script
    2.even if you apply those reg keys you will still need that service because Win 10 is based on modern and i am sure you can't find a replacement for every single thing using Modern UI
     
  15. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30

    TNBT have about 20 tweaks and the way used the order things is not right
    let's say you want to just "Disable Windows Update sharing" in TNBT
    how many "N"s you need to click before you get to what you want !!
    TNBT is made to one-time use

    but my script is not like that
    and is organized
    let's say some one want just some performance tweaks
    he doesn't have to skip 20 or 30 to get to he wants

    I hope that answered your question
     
  16. TziMmys

    TziMmys MDL Junior Member

    Aug 27, 2012
    70
    8
    0
    Mate, I can not believe the way you respond to everyone. Thank you!!
     
  17. gdeliana

    gdeliana MDL Senior Member

    Oct 2, 2010
    365
    428
    10
    I nearly did it. I disabled both cortana and shellexperiencehost and replaced all the taskabra guis with classic ones.

    The only one i cannot replace is the right click context menu for taskbar icons :(.searched google but nothing.

    Also i tried the modern control panel and it works even without these 2 services. Metro apps maybe will break, but who cares ;)

    It's just this right click taskbar context menu on the icons. It would be great if somebody could investigate on how to bring back the context menu the old one.

     
  18. TigTex

    TigTex MDL Senior Member

    Oct 5, 2009
    475
    381
    10
    #398 TigTex, Sep 21, 2015
    Last edited: Sep 21, 2015
    The .netframework caused issues with some programs with me. For example a POS software that requires .net 3.5. Without the tweak, it starts and tells me to install .net 3.5. With the tweak, it starts and gives error because it doesn't find .net 3.5 libs

    Also, look at lines 1861 and 1870
    REG_DWORD are numbers, so "prompt" and "off" are invalid options. Should be 1 and 0

    Line 2293 the "ssc" instead of "sc" is still there.

    Line 1932 you have "DEL /p ". It should be "DEL /q"

    About the softwaredistribution / download folder, the microsoft recommended way to clean it is to use diskcleanup. For example
    "%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535"

    Keep up the good work ;)
     
  19. vOzer

    vOzer MDL Novice

    Jul 26, 2015
    43
    8
    0
    add option to Enable/Disable watermark on it, plz!! thank you. :biggrin:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. TairikuOkami

    TairikuOkami MDL Expert

    Mar 15, 2014
    1,256
    1,155
    60
    Indeed, this tweak should be removed, people will experience only issues using it.
    To save like 400MB, people can just remove Windows Defender folder in ProgramData.

    That is the problem, it only cleans the folder, in order to reset it completely, it needs to be removed.
    BTW, it could be shorter, to save a few bytes: cleanmgr /sageset:65535 & cleanmgr /sagerun:65535