I am trying to use a custom port for HTTPS on ADFS 4.0 Server but getting error below when i try to change the port.

There is no AD FS Device Registration service on the Server. Tried the Disable-AdfsDeviceRegistration, nothing happens.

Tried disabling it from the AD FS Management console, but getting the same error when i try to change port.

I have reinstalled twice that did not help, i have ran out of options and need help.
Thanks
Hannel