# Start powershell with different domain credentials

**URL:** <https://forums.powershell.org/t/start-powershell-with-different-domain-credentials/13304>\
**Category:** PowerShell Help\
**Created:** [October 17, 2019, 8:02am UTC](https://forums.powershell.org/t/start-powershell-with-different-domain-credentials/13304 "2019-10-17T08:02:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vkhun](https://avatars.discourse-cdn.com/v4/letter/v/d9b06d/32.png) [@vkhun](https://forums.powershell.org/u/vkhun)\
**Post date:** [October 17, 2019, 8:02am UTC](https://forums.powershell.org/t/start-powershell-with-different-domain-credentials/13304/1 "2019-10-17T08:02:25Z")

</div>

HI All,

I am trying to start the Active Roles Management Shell using my privileged credentials (domain is diff) however got error message that ‘invalid directory name’.

cmdlet to use privileged credentials : start powershell -credential “”

both domains have trust relationship

Can someone assist here.

&nbsp;

---

<div class="post-metadata">

**Author:** ![kpatnayakuni](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kpatnayakuni/32/19_2.png) [@kpatnayakuni](https://forums.powershell.org/u/kpatnayakuni)\
**Post date:** [October 21, 2019, 2:30am UTC](https://forums.powershell.org/t/start-powershell-with-different-domain-credentials/13304/2 "2019-10-21T02:30:57Z")

</div>

Hi there,

Ensure PS Remoting is enabled and also add the other domain FQDN to the TrustedHosts value…

`Get-Item WSMan:\localhost\Client\TrustedHosts`

it should be either the IPs, ServerName or '\*' (\* is not suggestable for PROD cases.)

---

<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:31pm UTC](https://forums.powershell.org/t/start-powershell-with-different-domain-credentials/13304/3 "2024-05-16T20:31:38Z")

</div>


