You can also use the Registry Editor to block the Microsoft account sign-in option for all users. To do this, follow these steps<sup>1</sup>:
Press Windows Key + R, type “regedit” in the Run box and enter to open the Registry Editor.
Navigate to : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
Right-click on the System key and select New > DWORD (32-bit) Value
Name the new value “NoConnectedUser”
Double-click on the NoConnectedUser value and set its data to 1
Click OK