
上QQ阅读APP看书,第一时间看更新
How to do it…
To list the providers in PowerShell, follow these steps:
- Run pwsh to load PowerShell on the Terminal.
- Run the following command:
PS> Get-PsProvider
You will get something that looks like this:

Note the providers that are available in PowerShell, and the drives and capabilities found within these providers.
- Navigate to the Alias: drive:
PS> Set-Location Alias: PS> Get-ChildItem
Note how the prompt is now Alias:

Note the preceding colon after the drive name ( Alias: and not Alias). This is necessary for you to indicate to PowerShell that you are switching drives. Without the colon, PowerShell would simply try to look for a directory called Alias in your present working directory.