When you run the netdom query /domain:
The requested API is not supported on the remote server
The command failed to complete successfully
Attack surface reduction code in SP1 prevents the above command from working on a domain controller.
To workaround this behavior, run the query on a member server or on a Windows XP domain member.