Logon to remote server using powershell script


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

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?

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.