Solution: Cannot access QNAP NAS from Windows

The problem: You cannot access the SAMBA (SMB) shares on your QNAP NAS from the Windows File Explorer and after you tried, access to the web interface also stopped working. The NAS is still accessible from other PCs on the same network.

The reason: Windows will first try to connect to your NAS using your Windows login credentials. If this fails too many times and Network Access Protection on your NAS is enabled, your PC’s IP address will be banned:

QNAP Network Access Protection

You can see the failed login attempts in the System Connection Logs (if enabled for SAMBA):

QNAP System Connection Logs

Solutions

There are many threads about this issue on the QNAP forum proposing various solutions, such as:

  • Creating a user account on the NAS with the same user name and password as on Windows.
  • Disabling Network Access Protection on the NAS.
  • Making all folders public.
  • Disabling all guest shares on the NAS to force Windows to show the network credentials dialog.

I tried a different solution which I found here. I left everything on the NAS unchanged. In the registry of my Windows PC, I enabled insecure guest logons for the SMB client. This allows the PC to connect to SAMBA shares which are not protected by a password (such as the Public folder on a QNAP NAS).

This registry setting can be found under Local Computer Policy -> Computer Configuration -> Administrative Templates ->Network -> Lanman Workstation -> Enable insecure guest logons:

Windows Registry editor

Note: The description says that “if you do not configure this policy setting, the SMB client will allow insecure guest logons.” This was not true for me on Windows 11 21H2, the setting had to be explicitly enabled. On other PCs running Windows 10, the described behavior was correct and the entire problem never appeared.

Now (and after the IP ban period has expired, of course) it was possible to access the NAS through the file explorer. Clicking on a protected folder brought up the Enter network credentials dialog:

Enter network credentials

Why did this work? Apparently, Windows only tried to use the current user credentials once when connecting to the NAS and then used guest access. As this resulted only in a single failed access attempt, the PC’s IP address was not banned.

For further support, please visit the QNAP forum

Change the keyboard for an existing language in Windows 11

The problem: You’ve added several languages with different keyboard layouts to Windows 11.

Windows 11 language bar showing multiple languages with different keyboards

However, you want all of them to use the same keyboard (in this example “United States-International”).

The solution

In the language bar, click on More keyboard settings (or go to Settings > Time & language > Language & region).

Click on the three dots on the right of the language you want to change and choose Language options:

Windows 11 Language & region settings: Language options

Under Keyboards, click on Add a keyboard and add the keyboard you want:

Windows 11 Language & region settings > Language options: Add a keyboard

Finally, remove the original keyboard:

Windows 11 Language & region settings > Language options: Remove a keyboard

Your language bar should now show multiple languages with the same keyboard:

Windows 11 language bar showing multiple languages with the same keyboard

Windows applications: User interface controls too small on high DPI displays

The problem: Controls are too small

You’re running an application on a PC with a high DPI display and some (or all) of the controls are too small. You do not want to change the system-wide scaling settings just to make this application more usable.

The solution: Change the app’s high DPI setting

Windows 10 allows you to change the high DPI settings for each application.

  1. Open the application.
  2. Right-click on the app icon in the taskbar.
  3. Right-click on the app’s name.
  4. Select Properties:
Opening app properties window from the taskbar

If this method does not work, locate the application’s folder and right-click on the application file (.exe), then select Properties.

  1. Select the Compatibility tab.
  2. Click on Change high DPI settings:
Change high DPI settings
  1. Check the Override high DPI scaling behavior checkbox and select a new setting from the drop-down list:
High DPI setting
  1. Confirm both open dialogs with OK.

System” should solve the issue of some controls being smaller than others), though the app will look a bit blurry. “System (enhanced)” will try to make everything look more crisp. You might want to try out all settings (and you may have to restart the app to see any changes).

You can find further information on the settings in this Windows Blog article under “End-user DPI-scaling improvements”.

Finding exported templates in Visual Studio 2019

The problem: Exported project templates do not appear in the “new project” dialog

You’ve exported a project as a template. You’ve made sure that “automatically import the template into Visual studio” was checked:

Still, the template does not appear in the “new project” dialog.

Possible solution

Make sure you’ve not made any selection in the “language”, “platform” or “project type” dropdowns:

After clearing the C# language selection, the export template appears:

In Visual Studio 16.1.4, it was also not possible to enter the name of the template:

However, this seems to have been fixed (works in 16.4.1).