# Logon to remote server using powershell script

**URL:** <https://forums.powershell.org/t/logon-to-remote-server-using-powershell-script/14178>\
**Category:** PowerShell Help\
**Created:** [April 16, 2020, 10:08am UTC](https://forums.powershell.org/t/logon-to-remote-server-using-powershell-script/14178 "2020-04-16T10:08:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vignesh2117](https://avatars.discourse-cdn.com/v4/letter/v/8dc957/32.png) [@vignesh2117](https://forums.powershell.org/u/vignesh2117)\
**Post date:** [April 16, 2020, 10:08am UTC](https://forums.powershell.org/t/logon-to-remote-server-using-powershell-script/14178/1 "2020-04-16T10:08:52Z")

</div>

Experts!

Is there any way to login to remote machines using powershell script earlier i tried with rdp automation but stuck with legal notice banner, my ultimate goal for login remote server using powershell is to make my entry in the server and it should reflect in available when checking reports for last logon users in server, i tried with establishing pssession but it doesn’t show my entry.

Any ideas really helpful!! Thanks in advance

---

<div class="post-metadata">

**Author:** ![rob-simmers](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/rob-simmers/32/1010_2.png) [@rob-simmers](https://forums.powershell.org/u/rob-simmers)\
**Post date:** [April 16, 2020, 10:21am UTC](https://forums.powershell.org/t/logon-to-remote-server-using-powershell-script/14178/2 "2020-04-16T10:21:54Z")

</div>

So, you want to log into a server with a script to make it appear that you are a logged on user in reporting? Would you also like us to create a script to move your mouse around so that you show active in collaboration tools?

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [April 16, 2020, 10:36am UTC](https://forums.powershell.org/t/logon-to-remote-server-using-powershell-script/14178/3 "2020-04-16T10:36:32Z")

</div>

When you crosspost the same question at the same time to different forums you should at least post links to the other forums along with your question to avoid people willing to you help making their work twice or more.

[https://social.technet.microsoft.com/Forums/en-US/4db1ba11-0ce7-4e6a-be0a-7970eeab9851/logon-to-remote-server-using-powershell?forum=ITCG](https://social.technet.microsoft.com/Forums/en-US/4db1ba11-0ce7-4e6a-be0a-7970eeab9851/logon-to-remote-server-using-powershell?forum=ITCG)

Thanks

---

<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:29pm UTC](https://forums.powershell.org/t/logon-to-remote-server-using-powershell-script/14178/4 "2024-05-16T20:29:52Z")

</div>


