# Run As on Remote Computer

**URL:** <https://forums.powershell.org/t/run-as-on-remote-computer/676>\
**Category:** PowerShell Help\
**Created:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/run-as-on-remote-computer/676 "2011-12-31T18:30:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![archives](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@archives](https://forums.powershell.org/u/archives)\
**Post date:** [December 31, 2011, 6:30pm UTC](https://forums.powershell.org/t/run-as-on-remote-computer/676/1 "2011-12-31T18:30:00Z")

</div>

by Kottees at 2013-03-04 06:02:15

> Hello Experts,  
>   
> I’m doing an automation to fetch information from remote computers, I’m able to connect remote computers and run "run as" but it stuck in a place where we should provide credentials.   
>   
> I would like to provide remote computer password in the ps1 file itself. Could you please show me some direction?  
>   
> Thanks in advance.

by DexterPOSH at 2013-03-04 09:03:30

> Hi Kottees,  
>   
> When you say you are able to connect to the remote computer, does it mean you are using PowerShell Remoting ?  
> If it does then before connecting using Enter-PSSession you can use the -credential parameter to specify the alternate creadentials.  
>   
> Hope it helps

by Kottees at 2013-03-07 02:09:26

> Thank you Dexter, will try that.

---

<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, 9:03pm UTC](https://forums.powershell.org/t/run-as-on-remote-computer/676/2 "2024-05-16T21:03:32Z")

</div>


