Disassembler0 / Win10-Initial-Setup-Script

PowerShell script for automation of routine tasks done after fresh installations of Windows 10 / Server 2016 / Server 2019
MIT License
4.7k stars 1.08k forks source link

How can I undo this? #230

Closed edjalmobf closed 5 years ago

edjalmobf commented 5 years ago

I know that have this in discription

Q: I've run the script and it did something I don't like, how can I undo it? A: For every tweak, there is also a corresponding function which restores the default settings. The default is considered freshly installed Windows 10 or Windows Server 2016 with no adjustments made during or after the installation. Use the tweaks to create and run new preset. Alternatively, since some functions are just automation for actions which can be done using GUI, find appropriate control and modify it manually.

but I don't know how do this. Can you help me?

Disassembler0 commented 5 years ago

Which tweak in particular do you wish to undo?

edjalmobf commented 5 years ago

Is quick access shortcuts of explorer. I really miss that!

Now I just want this, but if someday I want to undo another thing, how I do this?

Disassembler0 commented 5 years ago

Assuming you haven't made any customization, Default.preset is the preset file which is used when you run the script. In this file you can see which tweaks are applied (first column, lines not starting with #) and you can find the corresponding functions in the Win10.psm1 tweak library. In the second column, there are tweaks which revert whatever the first column did, so you just need to create a preset using the revert tweaks and run it. Alternatively, you can apply the tweaks directly from command line as described in Advanced usage.

For restoring the Quick Access shortcuts you probably want to run something like this in a directory where you have downloaded the files.

powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -include Win10.psm1 RequireAdmin ShowQuickAccess
edjalmobf commented 5 years ago

Thanks! Worked! :)

I think now I know how create a preset (like explaned in Advanced usage). But if I can suggest something is create a file that users can choose option when execute it!

Like this:

show function
yes (disable) no (keep)

I think this is good for not advanced users.

Thanks for this script and for this help too!