1
00:00:02,040 --> 00:00:06,510
Before we begin with the demo, I would like to show you some commands that

2
00:00:06,510 --> 00:00:11,130
can be used to manage PS drives. In the upcoming demo,

3
00:00:11,130 --> 00:00:15,140
irrespective of what provider you are in, you can use most

4
00:00:15,140 --> 00:00:19,350
of these commands to manage data in that PS drive. The

5
00:00:19,350 --> 00:00:21,840
first one is Get‑Item command.

6
00:00:21,840 --> 00:00:25,540
This command returns details of the items specified.

7
00:00:25,540 --> 00:00:30,460
So, if I run Get‑Item and enter the name of a folder or

8
00:00:30,460 --> 00:00:32,740
enter the name of a registry key,

9
00:00:32,740 --> 00:00:36,840
it will return details of that folder or registry key.

10
00:00:36,840 --> 00:00:41,640
Get‑ChildItem command will return child objects of the item specified.

11
00:00:41,640 --> 00:00:45,370
You can use this command if you want to fetch a list of files

12
00:00:45,370 --> 00:00:48,440
and folders under a specific folder path.

13
00:00:48,440 --> 00:00:49,410
Similarly,

14
00:00:49,410 --> 00:00:53,450
you can fetch a list of registry values from a registry path or

15
00:00:53,450 --> 00:00:57,240
retrieve a list of certificates from a certificate store.

16
00:00:57,240 --> 00:01:02,640
Get‑ItemProperty command retrieves the properties of the item specified.

17
00:01:02,640 --> 00:01:06,140
Set‑Item command sets the value of an item.

18
00:01:06,140 --> 00:01:11,080
The value can be a folder name, a variable, or a registry key.

19
00:01:11,080 --> 00:01:16,040
Set‑ItemProperty command sets the value of an item's property.

20
00:01:16,040 --> 00:01:19,840
You can use this command to set registry values,

21
00:01:19,840 --> 00:01:22,840
which we will see later in this course.

22
00:01:22,840 --> 00:01:26,740
Rename‑Item command will rename the specified item.

23
00:01:26,740 --> 00:01:31,240
Rename‑ItemProperty command renames the property of an item.

24
00:01:31,240 --> 00:01:34,940
New‑Item command is used to create a new item.

25
00:01:34,940 --> 00:01:41,440
You can use this command to create a new file or a folder or a new registry key.

26
00:01:41,440 --> 00:01:47,040
New‑ItemProperty command is used to create a new property for an item.

27
00:01:47,040 --> 00:01:51,740
Move‑Item command moves an item from one location to another.

28
00:01:51,740 --> 00:01:58,130
Move‑ItemProperty command moves an item property from one item to the other.

29
00:01:58,130 --> 00:02:02,000
In a situation where you want to move a registry value from one registry

30
00:02:02,000 --> 00:02:07,390
key to another registry key, you can use this command. Clear‑Item clears

31
00:02:07,390 --> 00:02:10,340
the value of an item without deleting it.

32
00:02:10,340 --> 00:02:13,790
Clear‑ItemProperty command clears the property value

33
00:02:13,790 --> 00:02:16,540
of an item without deleting it.

34
00:02:16,540 --> 00:02:20,460
It sets the value to null. Copy‑Item command copies

35
00:02:20,460 --> 00:02:23,540
the item from one location to other.

36
00:02:23,540 --> 00:02:35,000
Copy‑ItemProperty command copies the property and its value from one location to another. Remove‑Item command removes the specified item.

