To be fair, it’s a bit tricky to do it from a windows system, as the file openhabian.conf is placed in /etc/, that is part of /, which is on the second partition of the SD-Card, so no chance to edit from Windows directly.
If you have another SD-Card and an additional USB SD-Card Reader, the simplest way is to flash a Raspberry Pi OS Image on another SD-Card, start the Raspberry from this Card, add the SD-Card Reader and the SD-Card with openhabian to the Pi, get the name of the device via
dmesg which will provide information about all stuff that is going on in the background in question of hardware (i.e. “oh, a new device is found, it’s a usb device, it’s a card reader… oh, another hardware found, it’s a storage device”) You can get information about the /dev/ path for the SD-Card (I guess it will be /dev/sda, but it could be any other path…)
Now to get access to the root partition (the second on the SD-Card), type
sudo mount /dev/sda2 /mnt
(replace sda with the correct device name).
and edit the file
sudo nano openhabian.conf
after finishing the edit, save and exit. Finally leave the directory:
and unmount the SD-Card:
sudo umount /mnt
power off the Pi, change SD-Cards, boot up.
If you don’t have another SD-Card or an external SD-Card Reader, you can use a vm from within Windows, but you can’t use Hyper-V, as it does not provide access to USB Host Hardware. vmware player should be fine, though.