1
00:00:00,440 --> 00:00:01,280
[Autogenerated] Okay, So now that we've

2
00:00:01,280 --> 00:00:03,820
understood the basic commands, how do we

3
00:00:03,820 --> 00:00:06,690
connect to remote computers? Well,

4
00:00:06,690 --> 00:00:10,160
firstly, we have the get sim instantiate.

5
00:00:10,160 --> 00:00:13,250
This will create a temporary session to

6
00:00:13,250 --> 00:00:16,250
the machine that we have specified in the

7
00:00:16,250 --> 00:00:18,930
computer name. The other option is where

8
00:00:18,930 --> 00:00:21,850
we actually create a new SIM session. So

9
00:00:21,850 --> 00:00:25,960
we choose to create the session by name by

10
00:00:25,960 --> 00:00:28,370
computer name. Both will do the same

11
00:00:28,370 --> 00:00:31,000
things except the Sim. Instantiate one is

12
00:00:31,000 --> 00:00:33,520
temporary and is closed at the end. A sim

13
00:00:33,520 --> 00:00:35,530
session. You have to kind of clothes that

14
00:00:35,530 --> 00:00:39,220
yourself now to create a remote session.

15
00:00:39,220 --> 00:00:41,550
If we were to create a temp recession, you

16
00:00:41,550 --> 00:00:44,120
can see that we can populate the computer.

17
00:00:44,120 --> 00:00:46,130
So on my computer names called trainer

18
00:00:46,130 --> 00:00:48,570
I can say gets him instantiate pass that

19
00:00:48,570 --> 00:00:50,980
variable and then tell it the name space

20
00:00:50,980 --> 00:00:52,370
and the class name that I'm trying to

21
00:00:52,370 --> 00:00:54,420
connect to. So in this instance, I'm

22
00:00:54,420 --> 00:00:57,040
trying to retrieve the terminal services

23
00:00:57,040 --> 00:00:59,410
remote desktop service settings on the

24
00:00:59,410 --> 00:01:02,230
machine. But this will create the session.

25
00:01:02,230 --> 00:01:04,470
Go and get the data on return. The data

26
00:01:04,470 --> 00:01:07,390
all as part of that connection. The other

27
00:01:07,390 --> 00:01:09,910
option is obviously creating Emmanuel Sim

28
00:01:09,910 --> 00:01:12,790
session and then closing it. So this time

29
00:01:12,790 --> 00:01:15,150
we specify the computer name, I give the

30
00:01:15,150 --> 00:01:18,290
session a name. Then I use new SIM

31
00:01:18,290 --> 00:01:21,090
session. Specify the name, specify the

32
00:01:21,090 --> 00:01:23,450
computer name. Then I could actually do

33
00:01:23,450 --> 00:01:26,180
and retrieve the values. And then you can

34
00:01:26,180 --> 00:01:28,740
see that I'm closing that by using remove

35
00:01:28,740 --> 00:01:31,090
sim session two different ways of doing

36
00:01:31,090 --> 00:01:36,000
the same thing. It really depends what you're trying to executable retrieve back.

