Before we begin with the demo, I would like to show you some commands that
can be used to manage PS drives. In the upcoming demo,
irrespective of what provider you are in, you can use most
of these commands to manage data in that PS drive. The
first one is Get‑Item command.
This command returns details of the items specified.
So, if I run Get‑Item and enter the name of a folder or
enter the name of a registry key,
it will return details of that folder or registry key.
Get‑ChildItem command will return child objects of the item specified.
You can use this command if you want to fetch a list of files
and folders under a specific folder path.
Similarly,
you can fetch a list of registry values from a registry path or
retrieve a list of certificates from a certificate store.
Get‑ItemProperty command retrieves the properties of the item specified.
Set‑Item command sets the value of an item.
The value can be a folder name, a variable, or a registry key.
Set‑ItemProperty command sets the value of an item's property.
You can use this command to set registry values,
which we will see later in this course.
Rename‑Item command will rename the specified item.
Rename‑ItemProperty command renames the property of an item.
New‑Item command is used to create a new item.
You can use this command to create a new file or a folder or a new registry key.
New‑ItemProperty command is used to create a new property for an item.
Move‑Item command moves an item from one location to another.
Move‑ItemProperty command moves an item property from one item to the other.
In a situation where you want to move a registry value from one registry
key to another registry key, you can use this command. Clear‑Item clears
the value of an item without deleting it.
Clear‑ItemProperty command clears the property value
of an item without deleting it.
It sets the value to null. Copy‑Item command copies
the item from one location to other.
Copy‑ItemProperty command copies the property and its value from one location to another. Remove‑Item command removes the specified item.