PowerShell for IT Professionals [#5] – Providers

Exercises Create a folder in root of C: with the name of PowerShell Create a file inside the folder with the name of your choice and no content Retrieve all items from Env: drive Check the version of Notepad.exe in Windows directory Discover current Windows build version by registry property: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion Notes from the lesson # Provider allows to access some data storage (e.g. File system, registry, remote system, Active Directory) # This concept might sound a bit abstract at first, but becomes very straight forward once you've used it for a while # Provider once connected to the data storage, kind of "mounts" it like a network drive, allowing to browse and manage it # Once the storage is mounted PowerShell creates so called PSDrive # Let's review available providers Get-Psprovider # Let's review some PSDrives Get-PSDrive # A quick refresher how file system is organised: Drives, Folders, Files # Since PowerShell connects to many different file data storages, it uses the generic term Item and specifies with type....

4 August 2020 · 2 min · 418 words · Kamil