Yes I know, it's quite easy to connect against a remote machine to run PowerShell. But I am not doing it on a regular basis so I always forget:
Enter-PSSession -ComputerName COMPUTER -Credential USER
So to make my life easier I have created a really easy script with a shortcut on my desktop, that just ask for remote computer name and my password.
Script:
$RemoteMachine = Read-Host -Prompt "
↧