Enable Virtual Machine AutoStart on VMware Workstation

VMware Workstation and VMware Player do not have a built-in option to automatically start virtual machines when Windows boots up or when a user logs in. If you want the VM to start automatically, you must create an automated task in the Scheduler.

Continue reading “Enable Virtual Machine AutoStart on VMware Workstation”

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”