May 2007
Beginner
320 pages
8h 23m
English
In this exercise, we work with the Windows PowerShell Environment provider.
Start Windows PowerShell.
Use the New-PSDrive cmdlet to create a drive mapping to the alias provider. The name of the new PSDrive will be al. The PSProvider is alias, and the root will be dot (.). This command is shown here:
new-PSDrive -name al -PSProvider alias -Root .
Change your working location to the new PSDrive you called al. To do this, use the sl alias for the Set-Location cmdlet. This is shown here:
SL al:\
Use the gci alias for the Get-ChildItem cmdlet, and pipeline the resulting object into the Sort-Object cmdlet by using the sort alias. Supply name as the property to sort on. This command is shown here:
GCI | Sort ...
Read now
Unlock full access