Install and Configure NFS Client on Windows

The Network File System (NFS) client is not installed by default on Windows Server 2022/2019/2016/2012R2 and Windows 11/10 desktop versions. To install it, open the Server Manager and select Add Roles and Features -> Client for NFS.

Continue reading “Install and Configure NFS Client on Windows”

USB Devices Passthrough over IP Network on Windows with Usbipd-win

The inability to pass through a connected USB device from a Hyper-V host to a virtual machine is one of the major shortcomings of the Microsoft hypervisor. You can use the open-source project usbipd-win to solve this problem (https://github.com/dorssel/usbipd-win). The usbipd-win utility allows you to pass through (redirect USB device or key including HASP) over the network from a Windows host to any Hyper-V virtual machine, remote computer running Linux, Windows, or WSL2.

Continue reading “USB Devices Passthrough over IP Network on Windows with Usbipd-win”

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”

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?”

Windows: Monitoring Logs and Text File Changes in Real Time

If a Windows service or application writes logs not to the Event Viewer (.evt and .evtx files), but to plain text log files, you sometimes need to display and monitor new events in real-time.

Continue reading “Windows: Monitoring Logs and Text File Changes in Real Time”

Using Predictive IntelliSense in PowerShell

Predictive IntelliSense is a new feature in PSReadline 2.1 and is available by default in PowerShell 7.2. When typing a command in the PowerShell console, Predictive IntelliSense suggests the appropriate commands you have previously typed (using the history of previous PowerShell commands). Predictive IntelliSense works differently than the TAB auto-completion feature (or Bash’s TAB auto-completion). the suggestion of subsequent characters in the command is displayed in gray text after the cursor.

Continue reading “Using Predictive IntelliSense in PowerShell”

Disable Local Accounts in Windows via GPO

Best security practices for Windows domain networks recommend disabling local user accounts on computers and servers in the Active Directory domain. Local accounts with administrator permissions on computers can be a weak part of your domain’s security. You can use tools like LAPS (Local Administrator Password Solution) to set unique, complex administrator passwords, or you can completely disable local administrator (and/or user) accounts using AD Group Policies.

Continue reading “Disable Local Accounts in Windows via GPO”