Search notes:

PowerShell: Drive

A PowerShell drive is an abstraction for a data store where the stored data can be accessed in a file system like manner. Two prominent examples of such stores are file systems and the registry.
A drive contains two generic types of objects: items and item properties.
In the file system provider, an item is a file or a directory.
The command noun used for working with drives is psDrive.

Location

Some drives (such as those whose providers are Registry or Filesystem) have a current location.
This location is shown, for example, in the property CurrentLocation with the cmdlet get-psDrive -psProvider fileSystem.
See also the command noun location.

Cmdlets

The cmdlet that allows to see the currently available drives is get-psDrive.
A new drive is created with new-psDrive.
Generic cmdlets to work with a drive's content are
The location (which is the PowerShell lingo for path) within (or of) a drive is (not very surprisingly) set with set-location.

TODO

The WSMan drive (which seems to be related to the WinRM service).
PS C:\> ls wsman:\localhost

See also

Provider
The get-psDrive cmdlet
The preference variable $maximumDriveCount
Drives exist in a scope.
System.Management.Automation.PSDriveInfo exposes the .NET interface to a drive.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1758200620, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/language/provider/drive/index(105): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78