To enter an interactive remote session we use them to session commands.
Let's type it
this session then as did the computer Mame.
Now we are in interactive peer session and we can run commands on the remote computer of local get growth
with
no room
on good command list.
Command.
All the key here there are all the commands we can use in this session.
So if the session is limited like just enough administration technology.
This list will be much much shorter.
They will have only the commands which are allowed to be performed by this particular.
Let's also remember that in power Shelby can run simple and semantic commands and utilities for instance
if you are on remote computer and you want to know IP address on this computer you're on race for your
type.
Become
get the configuration for your remote computer to exit this session.
Exit this session come on.
Or just exit.
It could be helpful to use a persistent session with interactive remote.
For this we can create a variable which is called session
and it will be equal to mid-session
to name
Sury
will quit this session and now they can use.
And to be a session command with session parameter our variable
insertion session variable
sex that is
also we can use the variable shot cart for the end to be a session come unto itself like
referable for example.
And so fashion grows to this combined.
Now when we use
this variable and bits and
we are around you know partial session which is very useful you can use the get back sessions developed
to see the least of all available sessions.
You have like this.
This.
Yeah we have for all whaleboat open sessions on our computer to enter any of this session we just print
and reassess and then this stage IDEO this is an longboats session 3 6.
Now we are in session sooks.
Can also tend to be a session by its name.
For example
this session stayed with me all the time
when we we are in the session.
Remember that we can disconnect and reconnect to sessions if they just come back to this session and
disconnect from this session.
This leaves a copy of power shell up and running on the remote computer.
This is a good way to get it to run some long running tasks disconnect them to reconnect later to check
up on it.
And that session is on the right is already up and running for you there is all the information you
have left previously.
You can also export power shell sessions similar to that and it lets us export commands from a remote
session and save it the same in power shell module on the local drive.