User Contributed Tweaks

ultraform Most will prolly already be in the 8.1 pack, there may be some w10 1809 specific ones so i will list any existing ones so there are no duplicates. May combine packs, add an LTSC folder and keep the existing layout for 8.1, dunno yet. Nearly all my tweaks start life as reg files anyway, i just prefer to run them as bats.
 
Last edited:
Here's my own curated .reg file for NTLite's offline integration of important Internet Explorer tweaks:

Windows Registry Editor Version 5.00

;Remove Default Internet Explorer Search Engine.
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\SearchScopes\{0633EE93-D776-472f-A0FF-E1416B8B2E3A}]

;Change Default Internet Explorer Search Engine to Google.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\SearchScopes]
"DefaultScope"="{0BBF48E6-FF9D-4FAA-AA4D-BDBB423B2BE1}"
"DownloadUpdates"=dword:00000000
"Version"=dword:00000004
"ShowSearchSuggestionsInAddressGlobal"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\SearchScopes\{0BBF48E6-FF9D-4FAA-AA4D-BDBB423B2BE1}]
"DisplayName"="Google"
"URL"="https://www.google.com/search?q={searchTerms}"
"ShowSearchSuggestions"=dword:00000001
"SuggestionsURL_JSON"="https://suggestqueries.google.com/complete/search?output=firefox&client=firefox&qu={searchTerms}"
"FaviconURL"="https://www.google.com/favicon.ico"

;Change Default Internet Explorer Homepage to Google and Disable Annoyances.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]
"Start Page"="https://www.google.com/"
"Search Page"="https://www.google.com/"
"Default_Page_URL"="https://www.google.com/"
"Default_Search_URL"="https://www.google.com/"
"EnableAutoUpgrade"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="https://www.google.com/"
"Search Page"="https://www.google.com/"
"SmoothScroll"=dword:00000000
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\TabbedBrowsing]
"NewTabPageShow"=dword:00000000
"WarnOnClose"=dword:00000000
"OpenAllHomePages"=dword:00000000
"Groups"=dword:00000000
"PopupsUseNewWindow"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\PhishingFilter]
"EnabledV9"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Suggested Sites]
"Enabled"=dword:00000000

;Disable Internet Explorer First Run Wizard.
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Internet Explorer\Main]
"DisableFirstRunCustomize"=dword:00000001

;Disable Internet Explorer Edge Button.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main]
"HideNewEdgeButton"=dword:00000001

;Disable Internet Explorer Smiley Button.
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions]
"NoHelpItemSendFeedback"=dword:00000001

Each section is commented. :)
 
Disable Zone Informations in File Attachements (this thing) and Enable execution of files with invalid signatures:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download]
"CheckExeSignatures"="no"
"RunInvalidSignatures"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"SaveZoneInformation"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"LowRiskFileTypes"=".zip;.rar;.nfo;.txt;.exe;.bat;.com;.cmd;.reg;.msi;.htm;.html;.gif;.bmp;.jpg;.avi;.mpg;.mpeg;.mov;.mp3;.m3u;.msu;.wav;"

Another must-have tweak in my opinion. :p
 
Use with Streams Remover(Sordum) to unblock existing blocked files. Unblock a single file or a whole damn folder :)
Its protable and can integrate into a context menu, worth its weight in gold. :)

Take your time and walk through Nirsoft and Sordum, absolute goldmines. :) :cool:
 
Last edited:
More registry tweaks for LTSC 2019:

Debloat Context Menu out of Useless Entries:
Windows Registry Editor Version 5.00

;Remove 'Give Access To' from the Context Menu
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\shellex\CopyHookHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\Sharing]
[-HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing]
[-HKEY_CLASSES_ROOT\UserLibraryFolder\shellex\ContextMenuHandlers\Sharing]

;Remove 'Share' (Modern Sharing) from the Context Menu
[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\ModernSharing]

;Remove 'Previous Versions' from the Properties tab and the Context Menu
[-HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}]

;Remove 'Cast to Device' from the Context Menu
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"{7AD84985-87B4-4a16-BE58-8B72A5B390F7}"="Play to Menu"

Enable Long NTFS Paths (Bypass 260 Characters Filepath Limit For Some Programs):
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\ControlSet001\Control\FileSystem]
"LongPathsEnabled"=dword:00000001

Block 'Feature Updates' for Windows 10 Enterprise LTSC 2019 (There is a bug that the 1903 May update is being offered for some LTSC 2019 machines, integrating this .reg file will prevent it from happening):
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade]
"BlockFeatureUpdates"=dword:00000001

:)
 
In the Post-Setup i want to remove "3D Objects" folder from user folder, so i run this command:
Code:
REM Removing '3D Objects'
rd "%UserProfile%\3D Objects" /s /q
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f

However the problem is, the '3D Objects' folder is not being removed from the %UserProfile%, my guess is that the SetupComplete.cmd is being executed with the highest possible privileges during OOBE, and the %UserProfile% leads to different path in that state:

vN98e44c.png


^ this happens when i run cmd.exe with highest privileges using Sordum's PowerRun v1.3, notice how the %UserProfile% leads to a different path.
Any ideas?
 
because you have used %userprofile% power run is asking you to enter a profile name, eg %Administrator%, see? :)
or you have confused it bercause you havnt told it which user profile, you havnt given cmd the correct path to the folder.
sorry, my brains not too good today. :(

why not just use --> rd /s /q "C:\Windows\System32\Tasks\Microsoft\Windows\TaskScheduler" for example.
 
Last edited:
because you have used %userprofile% power run is asking you to enter a profile name, eg %Administrator%, see? :)

why not just use --> rd /s /q "C:\Windows\System32\Tasks\Microsoft\Windows\TaskScheduler" for example.

Sorry, but i think you've misunderstood my question - i don't want to remove any scheduled tasks with SetupComplete.cmd, i want to automatically remove the "3D Objects" folder that is being created on LTSC 2019 for new user after OOBE:

2062

I want this folder to be completely gone after installing LTSC 2019, the %UserProfile% should refer to the dir of current user that you create during Windows setup, but SetupComplete.cmd is being run as "TrustedInstaller" by Windows Setup instead of "Administrator", so the %UserProfile% refers to some deeper thing related to TrustedInstaller instead of the actual user profile.
 
Last edited:
I gave the task folder as an example.

Yes, but my script is supposed to be universal, so that it doesn't matter if you use "Thomas", "Bob" or "Clanger" as your local account name during Windows Setup, the %UserProfile% is a variable that should open current profile dir regardless of its name and the partition letter associated with the system drive, while with your suggestion it would have to be a full path - it would have to be an account name, ie. "C:\Users\Paula\3D Objects" - it would only work for those who have C: as a system partition and "Paula" as local account user name. :p
 
i want to automatically remove the "3D Objects" folder that is being created on LTSC 2019 for new user after OOBE

Create a new text file, paste the text in code, save as (all files) .reg and integrate with NTLite, it works for all Windows 10.
Code:
Windows Registry Editor Version 5.00

; Hide 3D Objects folder
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
 
Create a new text file, paste the text in code, save as (all files) .reg and integrate with NTLite, it works for all Windows 10.
Code:
Windows Registry Editor Version 5.00

; Hide 3D Objects folder
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]

Yes, i know about this, but this method only hides '3D Objects' in the Explorer - it doesn't delete the directory, my goal is to remove this whole directory from %UserProfile% automatically with Windows installation's SetupComplete.cmd
 
Yes, but my script is supposed to be universal, so that it doesn't matter if you use "Thomas", "Bob" or "Clanger" as your local account name during Windows Setup, the %UserProfile% is a variable that should open current profile dir regardless of its name [...]
That never will happen as Administrator is the current user account running at that time (system user runs at early stage if i'm not wrong) regardless of being enabled or not, the Administrator profile isn't created as any other user account, the user's profile folders are created on first logon.

Yes, i know about this, but this method only hides '3D Objects' in the Explorer - it doesn't delete the directory, my goal is to remove this whole directory from %UserProfile% automatically with Windows installation's SetupComplete.cmd

Some time ago i used reg tweak to prevent some folders creation in 7 but i'm out of time.
 
to paste it into a cli window you must use %a and not %%a
for /f "delims=§" %%a in ('dir /b "C:\Users"') do rd /s /q "C:\Users\%%a\3D Objects"
 
to paste it into a cli window you must use %a and not %%a
for /f "delims=§" %%a in ('dir /b "C:\Users"') do rd /s /q "C:\Users\%%a\3D Objects"

It works when pasted manually into cmd.exe after Windows installation, but not with SetupComplete.cmd, tried with both "%a" and "%%a". :(
Maybe it will work with RunOnce method, i will try tomorrow.
 
%a works only in dos window and as batch file must use %%a
try this on setupcomplete.cmd or a own bat/cmd file
it creates a text file test.log on desktop where you can read command output why it doesnt work.
for /f "delims=§" %%a in ('dir /b "C:\Users"') do rd /s /q "C:\Users\%%a\3D Objects" >>"%Public%\Desktop\test.log"
 
It works when pasted manually into cmd.exe after Windows installation, but not with SetupComplete.cmd, tried with both "%a" and "%%a". :(
I said before:
That never will happen as Administrator is the current user account running at that time (system user runs at early stage if i'm not wrong) regardless of being enabled or not, the Administrator profile isn't created as any other user account, the user's profile folders are created on first logon.

Search in the forums for Precreate, there is enough info.
Some time ago i used reg tweak to prevent some folders creation in 7 but i'm out of time.

If you use the Precreate tweak, the shortcut '3D Objects' is shown in This PC and you'll need this tweak also:

Create a new text file, paste the text in code, save as (all files) .reg and integrate with NTLite, it works for all Windows 10.
Code:
Windows Registry Editor Version 5.00

; Hide 3D Objects folder
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]

[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
 
I said before:


Search in the forums for Precreate, there is enough info.


If you use the Precreate tweak, the shortcut '3D Objects' is shown in This PC and you'll need this tweak also:

Thanks, i'll try with the Precreate method:

Code:
Windows Registry Editor Version 5.00

;Disable '3D Objects' precreation
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
"PreCreate"=dword:00000000

;Hide '3D Objects' folder in the Windows Explorer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]
[-HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}]

I've integrated this .reg with NTLite and i'll test in VM in a while.

EDIT: It has worked. Awesome! Thanks for this suggestion! :)
 
Last edited:
Kasual This "precreate" method works, but it has a bug - it changes polish names of other library folders into english names, see the attached screenshot.
 

Attachments

  • VirtualBoxVM_2019-07-12_15-09-39.png
    VirtualBoxVM_2019-07-12_15-09-39.png
    270 KB
Kasual This "precreate" method works, but it has a bug - it changes polish names of other library folders into english names, see the attached screenshot.

I don't know why is not working for all but there would be another components that pre-create some folders.
'Precreate' prevents folder creation and desktop.ini. Desktop.ini makes to display the localized name but is not created when precreate is disabled, 'Pre-create' doesn't disable for folder-only that are forcibly created.

For folders forcibly created you have to disable 'Precreate' so localized names are displayed right.
 
Back
Top