CmdID / PowerShell / Cmdlets / New
New-MapiVirtualDirectory
Use the New-MapiVirtualDirectory cmdlet to create Messaging Application Programming Interface (MAPI) virtual directories that are used in Internet Information Services (IIS) on Microsoft Exchange servers. Exchange PowerShell reference
From the Exchange PowerShell reference 12 parameters Its page in the reference
Parameters
-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-ExtendedProtectionFlagsThe ExtendedProtectionFlags parameter specifies custom settings for Extended Protection for Authentication on the virtual directory.-ExtendedProtectionSPNListThe ExtendedProtectionSPNList parameter specifies a list of valid Service Principal Names (SPNs) if you're using Extended Protection for Authentication on the virtual directory.-ExtendedProtectionTokenCheckingThe ExtendedProtectionTokenChecking parameter specifies whether Extended Protection for Authentication is used for client connections to the virtual directory.-ExternalUrlThe ExternalURL parameter specifies the URL that connects to the virtual directory from outside the firewall.-IISAuthenticationMethodsThe IISAuthenticationMethods parameter specifies the authentication methods that are enabled on the virtual directory in Internet Information Services (IIS).-InternalUrlThe InternalURL parameter specifies the URL that connects to the virtual directory from inside the firewall.-RoleThe Role parameter species the configuration for the virtual directory.-ServerThe Server parameter specifies the Exchange server that hosts the virtual directory.-WebSiteNameThe WebSiteName parameter specifies the name of the IIS website under which the virtual directory is created.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.