From the course: Complete Guide to PowerShell 7

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Using custom providers

Using custom providers

- [Instructor] So when using the providers, we do have the ability to use standard providers that exist or custom providers. And what I mean by custom providers is ones that you wouldn't normally use or ones that are available as in third-party ones, etcetera. For this example, we're just going to use one of the ones that are built in, but it is a custom one because we don't tend to have to call it very often. But this one is called PSDrive. It's a specifically designed provider for managing all things to do with file shares and folders and structures, etcetera, very much like the standard file system. Now, what we're going to do first is set a variable called networkPath. And that'll just define the path that I wish to use. And then what I'm going to do is actually create that as a shared drive that makes it available to me. So we can use New-PSDrive, which creates a PSDrive. Now, before we do that, let's actually have a look at what exists in the PSDrive. And you can see that the…

Contents