It’s tedious to log on to server(s) just to check something simple or even complicated.
You can create a remote session to the server instead of manually logging on to it and run the commands / programs like if you were physically logged on to it.
- Open Power shell as admin.
- Type in Enter-PSSession -Computername fqdn -credential $cred
- Or Enter-PSSession -Computername fqdn if your currently logged in creds have access to remote system.
- You will be prompted to enter the credentials for the server and after that you will be connected.
- You can now run the commands such as hostname and it will show you information of the computer you set up a remote session on.
It is really useful for tasks like manually updating AD Sync by running Start-AdSyncSyncCycle -Policytype Delta

Leave a comment