Before you execute the command you need to test the security channel
Test-ComputerSecureChannel -Repair -Credential (Get-Credential) netdom resetpwd /server:domainserver /userd:domain\username /passwordD:*
Before you execute the command you need to test the security channel
Test-ComputerSecureChannel -Repair -Credential (Get-Credential) netdom resetpwd /server:domainserver /userd:domain\username /passwordD:*