Configuring Database Mail in Microsoft SQL Server

The Database Mail component is used in Microsoft SQL Server to send an SMTP notification to an administrator’s mailbox. You can enable and configure Database Mail to receive various email notifications about events on the MSSQL server.

Continue reading “Configuring Database Mail in Microsoft SQL Server”

Setting Process CPU Affinity in Windows

By default, a running app in Windows can run on any of the available CPU cores. The operating system manages and distributes processes between cores. However, you can manually bind certain processes (applications) to processor cores in Windows using the Processor Affinity feature. Let’s see how to bind a program (process) to specific CPU cores in Windows.

Continue reading “Setting Process CPU Affinity in Windows”

OpenVPN: How to Connect Multiple VPNs at the Same Time on Windows

OpenVPN client on Windows with default settings only supports one active VPN connection. When installing OpenVPN on Windows, only one virtual adapter of the TAP or Wintun type is created. If you want to connect to multiple OpenVPN servers at the same time, you need to create an additional WinTAP or Wintun network adapter.

If you try to start another VPN connection, an error will appear:

Continue reading “OpenVPN: How to Connect Multiple VPNs at the Same Time on Windows”

How to Remotely Logoff Users in Windows?

Several times I came across a situation where one of the users on a Windows Server host with an RDS (Remote Desktop Services) role ran an application that leaked and occupied all available RAM. It was impossible to connect to such a host via RDP remotely. To kill the leaked process, you need to remotely logoff this user.

Continue reading “How to Remotely Logoff Users in Windows?”

VirtualBox: Cannot Register the Hard Disk Already Exists

When trying to connect a copied or moved disk image file (*.VHD/*.VDI) of an Oracle VirtualBox virtual machine, you will receive an error:

VirtualBox - Error
Failed to open the hard disk image file FilePath.vhd.
Cannot register the hard disk FilePath.vhd <GUID> because a hard disk DifferentFilePath.vhd with UUID <GUID> already exists.
Result Code: E_INVALIDARG (0x80070057)
Component: VirtualBoxWrap
Interface:IVirtualBox {GUID}
Callee RC: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)

Continue reading “VirtualBox: Cannot Register the Hard Disk Already Exists”

Using Google Chrome Remote Desktop to Access Your Computers

Recently I have been favorably impressed with Chrome Remote Desktop features which allow to support remote users/friends/family members and access work computers remotely. I have easily configured access to my home computer from my office network. All you need is to install the Google Chrome browser on both devices, a Google account, and the chromoting service. Most popular are supported for remote connection: Windows, Linux, macOS, Android, and iOS.

Continue reading “Using Google Chrome Remote Desktop to Access Your Computers”