I am using the same base class that I used for reading the registry in my previous article. Let’s start with establishing a connection to a local/remote computer. You can replace key with a real registry key path of your choice. In all the examples I provide below, I will create/modify values under the HKLM\Software\Techibee key for the sake of demonstration. As you know, the registry has DWORD, string, expand string, multi string, binary, and Qword value types.