Hi,
Please use the /ud:
parameter to specify the domain account that has domain administrator privileges.
{/ud: | /userd:}[<Domain>]<User>]
Specifies the user account to use to make the connection with the domain that you specify in the /d or /domain parameter. If you do not specify this parameter, then netdom trust uses the current user account.
/pd:{<Password>|*}
Specifies the password of the user account that you specify in the /ud or /userd: parameter. If you specify the value of this parameter as a wildcard character (*), this parameter prompts you for the password.
Please refer to this link for more details.
Netdom trust
Best Regards,
Ian Xue
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.