# PowerShell remoting from trusted domain server to trusting domain server

**URL:** <https://forums.powershell.org/t/powershell-remoting-from-trusted-domain-server-to-trusting-domain-server/12850>\
**Category:** PowerShell Help\
**Created:** [July 11, 2019, 6:51am UTC](https://forums.powershell.org/t/powershell-remoting-from-trusted-domain-server-to-trusting-domain-server/12850 "2019-07-11T06:51:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bojan-zivkovic](https://avatars.discourse-cdn.com/v4/letter/b/7feea3/32.png) [@bojan-zivkovic](https://forums.powershell.org/u/bojan-zivkovic)\
**Post date:** [July 11, 2019, 6:51am UTC](https://forums.powershell.org/t/powershell-remoting-from-trusted-domain-server-to-trusting-domain-server/12850/1 "2019-07-11T06:51:16Z")

</div>

Hi all, I have one way trust between forest A and forest B (forest B trusts forest A). Having set up WinRM on source server in forest A/target server in forest B I added my domain admin account from forest A to be local admin on target server in forest B. Now I can connect from source server in forest A to target server in forest B by using Windows PowerShell remoting but only if I enter my domain admin username/password from forest A - if I omit credentials (I am already logged in elevated PowerShell console as domain admin from forest A) connection fails as if my domain admin credentials can not be passed to target server in forest B.

To ilustrate, this works:

_PS C:&gt; Enter-PSSession -ComputerName targetServerFQDN -Credential (Get-Credential)_

_cmdlet Get-Credential at command pipeline position 1_  
_Supply values for the following parameters:_  
_Credential_  
_[targetServerFQDN]: PS C:\Users\BojanZAdm.FORESTANETBIOSNAME\Documents\>_

&nbsp;

This does not work:

_PS C:&gt; Enter-PSSession -ComputerName targetServerFQDN_  
_Enter-PSSession : Connecting to remote server targetServerFQDN failed with the following error message : WinRM cannot process the request. The following error occurred while using Kerberos authentication: Cannot_  
_find the computer targetServerFQDN. Verify that the computer exists on the network and that the name provided is spelled correctly. For more information, see the about\_Remote\_Troubleshooting Help topic._  
_At line:1 char:1_  
_+ Enter-PSSession -ComputerName targetServerFQDN_  
_+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _  
_+ CategoryInfo : InvalidArgument: (targetServerFQDN:String) [Enter-PSSession], PSRemotingTransportException_  
_+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed_

_PS C:&gt; whoami_  
_FORESTANETBIOSNAME\bojanzadm_

&nbsp;

How to solve this? Thanks in advance!!!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:32pm UTC](https://forums.powershell.org/t/powershell-remoting-from-trusted-domain-server-to-trusting-domain-server/12850/2 "2024-05-16T20:32:01Z")

</div>

Closed on May 16, 2024, 8:32pm UTC


