Category Archives: Windows

Windows tips, howtos, scripts

Linux: Prevent X11/Xorg from using a (Nvidia) GPU

Hi,

when you install an NVidia GPU to run HPC tasks you usually don’t want that X11/xorg use it. This can be done by force Xorg to use the framebuffer device and prevent the nvidia_drm driver from creating a framebuffer device.
You can check this by nvidia-smi

root@debdev ~ # nvidia-smi 
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A      1581      G   /usr/lib/xorg/Xorg                          167MiB |
|    0   N/A  N/A      1713      G   /usr/bin/gnome-shell                         16MiB |
+---------------------------------------------------------------------------------------+

Continue reading Linux: Prevent X11/Xorg from using a (Nvidia) GPU

Advertisment to support michlstechblog.info

Windows: Update builtin openssh to the latest version

Hi,

when you have install openssh by

PS D:\> Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

then the installed version will never get updates.

Some older version (8.x.x) might have scp performance issues and therefore an update makes sence :-).
Continue reading Windows: Update builtin openssh to the latest version

Windows: Removing Appx failed with 0x80070032: This app is part of Windows and cannot be uninstalled on a per-user basis.

Hi,

since the latest Edge updates an Appx Package Microsoft.MicrosoftEdge is installed on a “per user basis”.
Continue reading Windows: Removing Appx failed with 0x80070032: This app is part of Windows and cannot be uninstalled on a per-user basis.

Windows: Invoke-RestMethod =>The underlying connection was closed: An unexpected error occurred on a receive.

Hi,

Invoke-RestMethod or Invoke-WebRequest uses by default TLS 1.0. This protocal is outdated and would be not accepted by the most Webservers anymore.

Usually this results in the following error message:
The underlying connection was closed: An unexpected error occurred on a receive.

Continue reading Windows: Invoke-RestMethod =>The underlying connection was closed: An unexpected error occurred on a receive.

Windows Terminal Server: Microsoft Edge does not open when the same user has edge already opened

Hi,

Edge and Chrom can only be opened one time for a user. If a user has multiple sessions opened on a Windows Terminal Server with the same credenitals, edge can only start once time because the profile (UserDataDir) can only used by one instance. Otherwise the profile is getting corrupt.

A workaround is to assign each session a seperate UserDataDir. This has one disadvantage: Bookmarks and so on depends on the sessionname.

To start edge in multiple RDP session I used the following command line parameter. This sets the DataDir to the sessionname.

edge --user-data-dir=C:\Users\%UserName%\AppData\Local\Microsoft\Edge\Profile\%SESSIONNAME%

Another option is the %CLIENTNAME% variable. CLIENTNAME contains the Computername of the machine from which you establish the RDP session.

Michael