Uncategorized · June 17, 2018 0

work remotely with PSSession

Hello Powershell Amins!

Today I will show you how you execute your PS commands and work remotely using a PS session

open ISE window with admin privillage

write Enter-PSSession ComputerName and hit enter. You will notice that PS has established a session

Now you are working as you are sitting on the remote machine.

so if you want to navigate to the root directory then temp folder you can do something like below

now if you want to execute a ps script copied earlier to the temp folder you can call and execute using the .\

after you finish working you have to close the session using Exit-PSSession

powershell will close the session and take you back to the local shell

happy coding


Close Bitnami banner