For the record, this only disables fast startup, not hibernation. On the other hand, disabling hibernation, disables fast startup as well. It would be better to replace it with: powercfg -h off HibernateEnabled set to 0 has also zero effect, as far as I can tell.
numlock on starup [HKEY_USERS\.DEFAULT\Control Panel\Keyboard] "InitialKeyboardIndicators"="2147483650" [HKEY_CURRENT_USER\Control Panel\Keyboard] "InitialKeyboardIndicators"="2147483650"
Well done mate. I am waiting your next update!! PS. Is it possible to add some lines to auto add some rules at firewall? Thanks!
I have a question regarding disableing Automatic Windows Updates and enableing update notifications without Windows Update automatically downloading/installing them I found two registry keys for this but i wonder if i need to apply both of them, as they both cover the same setting (AUOptions): batch example Code: Will: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v "AUOptions" /t REG_DWORD /d 2 /f do, or do i also need to apply the following? reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f needed??? reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f registry example Code: Will: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update] "AUOptions"=dword:00000002 do, or do i also need to apply the following? [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU] "NoAutoUpdate"=dword:00000001 needed??? "AUOptions"=dword:00000002 Will either of these work or do i have to apply them both?
I believe, that NoAutoUpdate is related to actually checking for updates. Have not tested it myself. In other words, if you turn it off, Windows will not check for updates, you will have to click the button. As for the other question, it is always better to change values which exist, so just use AUOptions in Policies.
Is there any way you can find a way to hide labels but also never combine buttons on the taskbar? There used to be a registry hack "MinWidth" you could do on Windows 7 and 8...however MS have removed it in 10 and it's pissing me off! I've been searching high and low for an answer (and come across this thread on the way!). Seems like a great community here, so I thought I'd try posting
Thanks for the reply. I did some more testing (and researching online) and found that when using the Group Policy Editor and choosing notify on new updates, it creates the below registry keys/entries: Code: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU AUOptions 2 NoAutoUpdate 0 ScheduledInstallDay 0 ScheduledInstallTime 3 It also shows the forced setting in the advanced Windows Update screen. Selecting "Disabled" in Group Policy Editor adds a "NoAutoUpdate 1" and in the Advanced Windows Update options it will say that Windows update will never look for updates. Leaving the Group Policy Editor setting on 'Not Configured" removes the above entries completely (including the key). What puzzles me however, is that the Advanced Windows Update options screen shows that it will automatically download updates and restart the computer (or notify the user first), when adding "AUOptions 2" under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update". So, i'm not certain if the latter one yields the same result as when only changing the Group Policy Editor related Windows Update settings.
I use only Policies values and it works for me. Technet and MS resources mention only Policies entry, maybe it was XP related.
That probably answers it. Thanks a lot TairikuOkami for clarifying this (uniQ168 probably needs to modify his script now) from Code: :reg17start set /p reg17="Disable automatic Windows Updates? y/n: " if '%reg17%' == 'n' goto reg18start if /i "%reg17%" neq "y" goto reg17start reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v "AUOptions" /t REG_DWORD /d 2 /f > NUL 2>&1 to Code: :reg17start set /p reg17="Disable automatic Windows Updates? y/n: " if '%reg17%' == 'n' goto reg18start if /i "%reg17%" neq "y" goto reg17start reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "AUOptions" /t REG_DWORD /d 2 /f > NUL 2>&1
Code: ;Turning off Advertising ID Sharing reg add HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo /t REG_DWORD /v Enabled /d 0 /f
It's kind of nice work but you should look/learn 'call' commands. this would save at least 60% of the script.
Doggie assures you his eternal love for 'nagging' him to do likewise . And i want to second this, cause it's a nice way to script very effectively with a minimum of redundant code. Idea behind: Call command is able to carry data to be used in the specified 'Jumptarget', like: Code: call :Jumpy01 Read, The, Bleeping, Manual ::line to be executed after the call jumps back to here will jump to: Code: :Jumpy01 echo Hey Dude: %~1 %~2 %~3 %~4 ^^! ^^! ^^! goto:eof and output: Code: Hey Dude: Read The Bleeping Manual ! ! ! and due to goto:eof (or exit /b) jump back one line beneath the last call command.
Hello, Thanks for sharing your script. But there is a small bug in the version number. You say it's version 1.7 but inside the script its 1.6 Frédéric
The great improvement with "powercfg -h off" is it delete the very big file used for hibernation Frédéric
Correct, but fortunately it's only a typo. The code itself is from v1.7 (compared the ZippyShare one with those from pastebin).