10
Files, Folders, and the Registry
The filesystem and the registry are two among several providers available in PowerShell. A provider represents a data store in a hierarchy of container and leaf objects.
In the context of the filesystem, a container is a folder or directory. A leaf object is a file.
A provider is therefore a way to access arbitrary data that has been arranged to somewhat represent a filesystem.
This chapter covers the following topics:
- Working with providers
- Items
- Item properties and attributes
- Windows permissions
- Transactions
- File catalog commands
The commands used to work with data within a provider, such as a filesystem, are common to all providers.
Working with providers
Each provider shares a common set of commands, ...
Get Mastering PowerShell Scripting - Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.