22 Commits
1.1 ... 2.3

Author SHA1 Message Date
Disassembler
a7afe5aabe v2.3, 2017-05-08
- Add "Set current network profile to private"
- Add "Set unknown networks profile to private"
- Add "Show Task Manager details"
- Add "Set Data Execution Prevention (DEP) policy to OptOut", closes #7
- Update "Disable Firewall" to use GPO, which doesn't cause Security and Maintenance Center to complain loudly.
- Update "Uninstall OneDrive" to remove unnecessary directory check.
2017-05-08 17:57:33 +02:00
Disassembler
12cd8c522d Clarify work with preset files in readme, as I see some confusion in some people's forks. 2017-05-08 13:45:41 +02:00
Disassembler
60c9237983 v2.2, 2017-04-08
- Add "Show file operations details"
- Add "Hide sync provider notifications"
- Add "Uninstall Windows Store"
- Update "Disable SmartScreen" for Edge
- Update "Disable Windows Defender" for Creators Update
- Update "Uninstall default Microsoft application" to remove even more bloatware
- Update (and rename) "Disable Xbox features" to uninstall corresponding Xbox packages
- Update default preset to not apply settings decreasing security to make the new Defender Security Center happy {Advanced users use customized presets or have their own fork anyway)
2017-04-08 11:33:49 +02:00
Disassembler
6cdfc3292d Add a FAQ about multi-user environments, addressing #5 2017-02-24 17:59:13 +01:00
Disassembler
d5bb4a6782 Convert indentation in preset list to spaces for better readability on tabsize != 4 2017-02-08 20:42:58 +01:00
Disassembler
7df79cac16 v 2.1
- Add "Disable scheduled defragmentation" (disabled by default), closes #3
- Add "Set BIOS time to UTC" (disabled by default)
- Add "Disable installation of consumer experience applications"
- Add "Disable search for app in store for unknown extensions"
- Add "Disable 'How do you want to open this file?' prompt"
- Move Autorun and Autoplay from UI tweaks to service tweaks
- Update "Enable NumLock after startup" with a horrible hack which I'm ashamed of but gets the job done
- Suppres errors while removing nonexistant keys during Photo Viewer tweak reverts
- Change a way how the WaitForKey key press is handled
2017-02-08 20:32:57 +01:00
Disassembler
f3afde4551 Change a way of reinstalling provisioned packages to avoid errors on packages which were never installed 2017-02-08 20:04:19 +01:00
Disassembler
db7356151c - Add commented restore function counterparts
- Rename EnableLockScreenWorkaround to EnableLockScreenRS1
- Fix and clarify few more strings
2017-02-08 16:50:37 +01:00
Disassembler
e12cb11a0c Suppress errors while removing nonexistent registry keys 2017-01-08 22:30:02 +01:00
Disassembler
7d2ff6c103 v 2.0
- Add "Disable Error reporting"
 - Add "Disable offering of drivers through Windows Update"
 - Update "Disable Web Search in Start Menu"
 - Update "Disable Start Menu suggestions"
 - Update "Disable Cortana"
 - Update "Disable Windows Update automatic restart"
 - Update "Disable Xbox DVR"
2017-01-08 22:24:46 +01:00
Disassembler
cda81118fd Add readme and license 2017-01-08 22:21:25 +01:00
Disassembler
480788a251 Preset processing + default preset 2017-01-08 22:10:35 +01:00
Disassembler
c55d256c3a - Convert snippets to functions
- Fix some strings and naming
2017-01-08 20:20:47 +01:00
Disassembler
83c13edca2 v1.7, 2016-08-15
- Add Disable Lock screen workaround for Anniversary Update (commented)
- Disable Xbox DVR
2016-08-15 17:21:17 +02:00
Disassembler
ea25c9950c v1.6a, 2016-08-13
- Hide error on repeated Win Defender icon removal
- Remove one more bloatware
2016-08-13 16:38:38 +02:00
Disassembler
f444709b3e v1.6, 2016-08-07
- Disable more Telemetry keys
- Remove Win Defender icon from tray (added in Redstone)
- Remove more bloatware (added in Redstone)
- Enable NumLock after boot (commented by default)
- Install Linux Subsystem (added in Redstone, commented by default)
2016-08-07 23:04:04 +02:00
Disassembler
f65ad6fbaf Cosmetic changes only
- Capitalize "Software" and "System" registry keys
 - Replace "Computer" with "This PC" (which is the proper name)
2016-06-08 21:47:48 +02:00
Disassembler
f118078813 v1.5, 2016-06-08
- Disable Start Menu suggestions
- Disable implicit administrative shares
- Disable offering of Malicious Software Removal Tool through Windows Update
- Update the way of removing Libraries icons
- Enable F8 boot menu options
2016-06-08 20:54:15 +02:00
Disassembler
f0dd889e5b v1.4, 2016-01-16
- Suppress errors during removal of already removed items
- Removal of more TH2 bloatware
2016-01-16 19:21:53 +01:00
Disassembler
77e74b3633 v1.3, 2015-12-13
- Add WiFi Sense check
- Suppress errors during OneDrive directories removal
- Ask for key press before reboot
2015-12-13 10:17:55 +01:00
Disassembler
ab6cf0f7a2 v1.2, 2015-10-13
- Add autorun and autoplay
- Add Sticky keys
- Add disable OneDrive
- Add commented snippets for revert
- Location tracking is now set in HKLM
- Update AutoLogger restriction
- Remove EnableLUA
- Remove TIFImage.Document
- Remove Photo Viewer print command
- Replace ExpandEnvironmentVariables with $env
- Automatically ask for elevation
2015-10-14 20:55:13 +02:00
Disassembler
007b89f1e2 v1.1a, 2015-08-13
- SOFTWARE -> Software
- Fixed HarvestContacts path for Cortana
2015-08-13 19:01:38 +02:00
3 changed files with 1312 additions and 209 deletions

21
LICENSE Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2017 Disassembler <disassembler@dasm.cz>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

62
README.md Normal file
View File

@@ -0,0 +1,62 @@
## Description
This is a PowerShell script for automation of routine tasks done after fresh installations of Windows 10. This is by no means any complete set of all existing Windows tweaks and neither is it another "antispying" type of script. It's simply a setting which I like to use and which in my opinion make the system less obtrusive.
This repository has been originally created as complementary to article https://www.dasm.cz/clanek/jak-z-windows-10-udelat-desktopovy-system (written in Czech) which explains the respective snippets a bit more in detail. The article was last updated on 2016-08-15 and will not be updated further. All development and discussion has been moved here.
## Usage
If you just want to run the script with default preset, simply right click on the *Win10.ps1* file, choose *Run with PowerShell*, and confirm execution policy change. Make sure your account is a member of *Administrators* group as the script attempts to run with elevated privileges.
### Advanced usage
The script consists of separate functions, each of which contains one tweak. The functions can be grouped to *presets*. Preset is simply a list of function names which should be called. If you don't supply any specific preset, the default preset defined by `$preset` array in the beginning of the script will be applied. Any function which is not present or is commented in a preset will not be called, thus the corresponding tweak will not be applied. If you choose to fork the script and adjust the defaults instead of creating a customized preset file, then all you have to modify is the `$preset` array.
To supply a customized preset, you can either pass the function names directly as parameters.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 EnableFirewall EnableDefender
Or you can create a file where you write the function names (one function name per line, no commas, whitespaces allowed, comments on separate lines starting with `#`) and then pass the filename using *-preset* parameter. Don't forget that the script will try to run with elevated privileges and will use different working directory, therefore use of absolute paths is recommended.
Example of a preset file `mypreset.txt`:
# Security tweaks
EnableFirewall
EnableDefender
# UI tweaks
ShowKnownExtensions
ShowHiddenFiles
Command using the preset file above:
powershell.exe -NoProfile -ExecutionPolicy Bypass -File Win10.ps1 -preset D:\Install\mypreset.txt
## FAQ
**Q:** Can I run the script safely?
**A:** Definitely not. You have to understand what the functions do and what will be the implications for you if you run them. Some functions lower security, hide controls or uninstall applications. **If you're not sure what the script does, do not attempt to run it!**
**Q:** Can I run the script repeatedly?
**A:** Yes! In fact the script has been written to support exactly this as it's not uncommon that big Windows Updates reset some of the settings.
**Q:** Can I run the script in multi-user environment?
**A:** Yes, to certain extent. Some tweaks (most notably UI tweaks) are set only for the user currently executing the script. As stated above, the script can be run repeatedly; therefore it's possible to run it multiple times, each time as different user. Due to the nature of authentication and privilege escalation mechanisms in Windows, the script can be successfully applied only for users belonging to *Administrators* group. Standard users will get an UAC prompt asking for admin credentials which then causes the tweaks to be applied to the given admin account instead of the original non-privileged one. To circumvent this, add the standard user to the *Administrators* group, run the script, and then remove the user from *Administrators* group again. There are a few ways how the same functionality can be achieved programmatically, but I'm not planning to include any of them as it would negatively impact code complexity and readability.
**Q:** Did you test the script?
**A:** Yes. I'm testing new additions on up-to-date Home and Enterprise editions in VMs. I'm also regularly using it for all my home installations after all bigger updates.
**Q**: I've run the script and it did xxx, how can I undo it?
**A:** For every tweak, there is also a corresponding function which restores the default settings. Use them to create and run new preset. Alternatively, since most functions are just automation for actions which can be done using GUI, find appropriate control and modify it manually.
**Q:** I've run the script and it broke my computer / killed neighbor's dog / caused world war 3.
**A:** I don't care. Also, that's not a question.
**Q:** I'm using a tweak for xxx on my installation, can you add it?
**A:** Submit a PR or drop me a message. If I find the functionality simple, useful and not dependent on any 3rd party modules or executables, I might add it.
**Q:** Can I use the script or modify it for my / my company's needs?
**A:** Sure, knock yourself out. Just don't forget to include copyright notice as per MIT license requirements. I'd also suggest including a link to this GitHub repo as it's very likely that something will be changed, added or improved to keep track with future versions of Windows 10.
**Q:** Why are there repeated pieces of code throughout some functions?
**A:** So you can directly take the function block and use it elsewhere, without elaborating on any dependencies.
**Q:** For how long are you going to maintain the script?
**A:** As long as I use Windows 10.

1438
Win10.ps1

File diff suppressed because it is too large Load Diff