Providers
You can interact with the providers typically available in the standard Windows PowerShell Console. Below are some of the important providers. Run the command Get-PSProvider to see the complete list.
    FileSystem - Supports interacting with files and folders.
    CmsItemProvider - Supports interacting with the Sitecore content items.
The console prompt typically begins with PS master:\>. The present working directory is using the CmsItemProvider and set to the master database.
Example: Change directories between providers.
1
PS master:\> cd core:
2
PS core:\> cd C:
3
PS C:\windows\system32\inetsrv> Set-Location -Path master:
4
PS master:\>
Copied!
Note: Include the backslash in the path (i.e. C:\) to get the root of the drive when interacting with the FileSystem provider; the behavior seen is different than you might expeect because of w3wp.exe. See issue #314.
Last modified 3yr ago
Export as PDF
Copy link