Error 0x8007054A

Value: -2147023542 | 0x8007054A | 2147943754

What does it mean ?

ERROR_INVALID_DOMAIN_ROLE  
This operation is only allowed for the Primary Domain Controller of the domain.
Value: 1354 | 0x054A | 0b0000010101001010

Where does it come from ?

FACILITY_WIN32  
Provides a way to handle error codes from functions in the Win32 API as an HRESULT. (Error codes in 16 - bit OLE that duplicated Win32 error codes have also been changed to FACILITY_WIN32)
Value: 7 | 0x007 | 0b00000111

Other Errors for FACILITY_WIN32