- Why
: Changing the registry often requires administrative rights.
- What to do
: Make sure you run the script with administrative rights. For example, start the script by right-clicking and selecting "Run as administrator".
2.) Backup the registry!
- Why
: Changing the registry can have unforeseen consequences.
- What to do
: Before making changes, make a backup of the registry or at least of the relevant keys:
This will allow you to undo the changes in case something goes wrong.
3.) Check the paths and values!
- Why
: Incorrect paths or values can lead to unexpected behavior.
- What to do
: Make sure the paths and values are correct. The relevant paths are:
- "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
- Values
:
- For hidden files ("Hidden"):
- "1" to show
- "2" to not show
- For system files ("ShowSuperHidden"):
- "1" to show
- "0" to not show
4.) Impact on other users!
- Why
: Changes in "HKEY_CURRENT_USER" only affect the current user profile.
- What to do
: If you want to make the changes for all users, you have to adapt the script accordingly. Changes in "HKEY_LOCAL_MACHINE" could be applied globally, but the settings in question are mostly relevant in "HKEY_CURRENT_USER".
5.) Restart Explorer!
- Why
: Changes to the registry often take effect only after restarting Windows Explorer.
- What to do
: Add a command to restart Explorer at the end of the script:
taskkill /f /im explorer.exe
start explorer.exe
6.) Follow security guidelines!
- Why
: Showing hidden and system files can pose security risks, especially if inexperienced users have access to system files.
- What to do
: Make sure the change is necessary and communicate the potential risks to all affected users.
7.) Document the changes!
- Why
: Good documentation is essential for tracking and tracing changes.
- What to do
: Document exactly what changes you have made and keep this information for future reference.
8.) Automation and deployment!
- Why
: If the change is to be applied to multiple systems, an automated solution is more efficient.
- What to do
: Use scripts or tools such as Group Policies (GPOs) to centrally manage and distribute the changes.
9.) Example script with Explorer restart!
Show hidden and system files:
@echo off
set KEY_NAME="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
set VAL_NAME_HIDDEN="Hidden"
set VAL_NAME_SUPERHIDDEN="ShowSuperHidden"
rem Show hidden files
reg add %KEY_NAME% /v %VAL_NAME_HIDDEN% /t REG_DWORD /d 1 /f
rem Show system files
reg add %KEY_NAME% /v %VAL_NAME_SUPERHIDDEN% /t REG_DWORD /d 1 /f
rem Restart Explorer
taskkill /f /im explorer.exe
start explorer.exe
echo Changes made successfully.
pause
Hide hidden and system files:
@echo off
set KEY_NAME="HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
set VAL_NAME_HIDDEN="Hidden"
set VAL_NAME_SUPERHIDDEN="ShowSuperHidden"
rem Do not show hidden files
reg add %KEY_NAME% /v %VAL_NAME_HIDDEN% /t REG_DWORD /d 2 /f
rem Do not show system files
reg add %KEY_NAME% /v %VAL_NAME_SUPERHIDDEN% /t REG_DWORD /d 0 /f
rem Restart Explorer
taskkill /f /im explorer.exe
start explorer.exe
echo Changes made successfully.
pause
Summary!
Showing or hiding hidden and system files via registry script can be effective, but it is important to keep in mind the points mentioned above to ensure safe and proper execution of the changes.
These steps allow you to adjust the size of the taskbar in Windows 11 using registry scripts. However, keep in mind that changes in the registry can potentially
Experimenting with the settings in the Windows 11, 10, etc. registry makes sense, but a backup in order to be able to restore it is also useful Editing
If you dont need the flight mode, you can simply deactivate it completely with a small registry intervention, the airplane mode under Windows is permanently
This website does not store personal data. However, third-party providers are used to display ads, which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF). The CMP ID is 300 and can be individually customized at the bottom of the page. more Infos & Privacy Policy ....