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 - PowerShell Tutorial
From the course: Complete Guide to PowerShell 7
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Understanding PowerShell modules7m 57s
-
(Locked)
Install modules from the PowerShell gallery10m 17s
-
(Locked)
Importing and using modules13m 27s
-
(Locked)
Navigating the FileSystem provider14m 26s
-
(Locked)
Navigating the file system provider5m 2s
-
(Locked)
Using the registry provider3m 32s
-
(Locked)
Using custom providers3m 43s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-