
Chapter 2: Using Exchange Management Shell
43
Common Command
Windows PowerShell
Command ( & Alias) Description
MD
MKDIR
param([string[]]$paths);
New-Item -type directory
-path $paths
Creates a new item of file type
directory. * *
TYPE
CAT
Get-Content (gc) Gets the contents of an item at a
specified location.
*Clear-Host is a function and not a true cmdlet.
**MD and MKDIR are functions that use cmdlet New-Item to make items of type Directory.
Windows PowerShell Drives
Windows PowerShell drives are local data stores exposed to the command line that you can access like a
file system drive. Several drives are provided by default. To see a list of all available drives on a server
use the
Get-PSDrive cmdlet as shown in this example:
[PS] C:\ > Get-PSDrive
Name Provider Root CurrentLocation
---- -------- ---- ---------------
A FileSystem A:\
Alias Alias
C FileSystem C:\
cert Certificate \
D FileSystem D:\
Env Environment
Function Function
HKCU Registry HKEY_CURRENT_USER
HKLM Registry HKEY_LOCAL_MACHINE
Variable Variable
Z FileSystem Z:\
Windows PowerShell drives are exposed via providers, which are .NET programs that present the data
from each store in a consistent format. The following table describes the default providers in a standard
deployment of Exchange Management Shell.
Provider Data Store Description
Alias Windows PowerShell Alias Predefined and user ...