[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. drakulaboy

    drakulaboy MDL Novice

    Jul 17, 2015
    25
    16
    0
    well, there is a way, but it's still need a little software, search for SetACL from helgeklein.com
    run a CMD with admin, and let's say you want to take ownership to a reg map just run the code
    for example

    Grant permissions
    The command will now complete successfully:

     
  2. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    I found that tool but what i wanted to my script is to be one BAT script file
    i also find a tutorial that talks about REGINI.exe (built in Windows) but i couldn't find the way to make it work
    i will be glad if someone can help me with this
    there is more other tweaks that i can add like : Change Network Control UI (in system Tray)
     
  3. sukinsin88

    sukinsin88 MDL Addicted

    Oct 17, 2012
    731
    43
    30
    not working its a txt file :( not bat file :confused:
     
  4. slapnuts

    slapnuts MDL Novice

    Jul 19, 2015
    3
    0
    0
    I was just about to ask the same question......
     
  5. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,731
    120
    I think if you want to take ownership of registry keys, and change permissions, you would need to create a compressed file with the SetACL command in it, that extracted it to a specific place where your bat file could access it. Such as \Windows\System32. I have used that SetACL file, and it works beautifully.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    Thanks men But what i want is a way to take ownership of registry keys with BAT or VBS or other scripts like PS1

    and if it's not BAT and it is VBS or .. is must not contain this character "&"

    because i want my tool to be one file
    and if i find a VBS script i will write it via BAT and execute it as VBS
    like the MsgBox example but if it contains this character "&"
    i just won't work :weep:
     
  7. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,262
    1,731
    120
    Yea, it's tough. I searched long and hard to find a script to change permissions. But it is different for you because you want to share something simple. I just don't know how to do that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. jhanford

    jhanford MDL Novice

    Aug 28, 2013
    26
    7
    0
    Well, that sucks. I download the batch file using Chrome and so it downloaded to my "Downloads" folder. Now, for insight, I have directed Downloads to D:\Downloads (more space, whatever)

    Ran it and the following two lines basically deleted everything in my "Downloads" folder:

    746: cd %Windir%\SoftwareDistribution\
    747:
    748: del * /S /Q

    So, line 746 switches the current directory on C:, but I'm running on D:, and so BOOM! There goes my D:\Downloads.
     
  9. revertex

    revertex MDL Member

    May 30, 2010
    119
    46
    10
    #31 revertex, Aug 16, 2015
    Last edited by a moderator: Apr 20, 2017
    Thanks jhanford, your unfortunate accident save me do wipe my D:\Downloads folder.

    line 746 should be

    Code:
    cd /D %Windir%\SoftwareDistribution\
    /D tell cd to change to drive in addition to change to folder

    I prefer to use PUSHD/POPD in scripts, seems more safer than CD, especially when you are changing directories to delete stuff.

    Code:
    PUSHD %Windir%\SoftwareDistribution\
    DEL /S /Q "%Windir%\SoftwareDistribution\*.*"
    POPD
    If you want do delete all empty folders inside %Windir%\SoftwareDistribution\, use this

    Code:
    PUSHD %Windir%\SoftwareDistribution\
    FOR /f "delims=" %%d in ('dir /s /b /ad %1 ^| sort /r') do rd "%%d" 2>nul
    POPD
    People complain about it being a script that you can read and understand what it is doing instead a cryptic executable that God knows what it's doing.

    Imagine if it's a executable, how long until someone figure what's wrong?
     
  10. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    line 764 direct you to this path in system drive
    X:\Windows\SoftwareDistribution
    and then delete everything in it

    I really don't why that happened to you
     
  11. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    #33 Yasser Da Silva, Aug 16, 2015
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks men for the code
    i added it and i added an IF statement to Make sure that it will work (it will)

    Code:
    :startclean
    net stop wuauserv
    
    PUSHD %Windir%\SoftwareDistribution\
    
    if not '%cd%'=='%Windir%\SoftwareDistribution' (
    goto startclean
    )
    
    DEL /S /Q "%Windir%\SoftwareDistribution\*.*"
    
    rmdir /S /Q "%SYSTEMDRIVE%\MSOCache\"
    
    POPD
    
    Dism.exe /online /Cleanup-Image /StartComponentCleanup
    
    net start wuauserv
    
    
     
  12. Prosto

    Prosto MDL Addicted

    Mar 18, 2015
    768
    307
    30
    How remove this f***ing software?
     
  13. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    :mad:
    just delete the file you downloaded
     
  14. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    Do you think it's good to add this to script !!


    Enable/Disable telemetry and data collecting
    Enable/Disable Windows Update sharing
     
  15. UnderXP

    UnderXP MDL Junior Member

    Feb 28, 2013
    55
    15
    0
    Hi, Windows 10 have a lot of unneeded Services, you can add a section to disable services that most user don't need.
     
  16. Yasser Da Silva

    Yasser Da Silva MDL Senior Member

    Mar 15, 2015
    499
    2,567
    30
    like what !!