Hi Alex Ch,
This is the "second hop problem" because PowerShell does not delegate credentials by default for security reasons.
Please run Enable-WSManCredSSP on the client to allow delegating credentials. The delegate computer is the FQDN of the RDCB in your case.
Enable-WSManCredSSP –Role Client –DelegateComputer rdcb.domain.com -Force
Then run Enable-WSManCredSSP on the RDCB to allow receiving credentials from clients.
Enable-WSManCredSSP -Role Server -Force
Then you can create a remote session with the "-Authentication Credssp" parameter to run the script from the client.
$cred = Get-Credential
$mysession = New-PSSession -ComputerName rdcd.domain.com -Credential $cred -Authentication Credssp
Invoke-Command -Session $mysession -ScriptBlock { ... }
You can refer to this link for more details.
https://devblogs.microsoft.com/scripting/enable-powershell-second-hop-functionality-with-credssp/
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.