Export (0) Print
Expand All



Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

Topic Last Modified: 2007-08-22

The Remove-WebServicesVirtualDirectory cmdlet removes an existing virtual directory from a computer that is running Microsoft Exchange Server 2007 that has the Client Access server role installed.

Remove-WebServicesVirtualDirectory -Identity <VirtualDirectoryIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-WhatIf [<SwitchParameter>]]

The Remove-WebServicesVirtualDirectory cmdlet removes an existing virtual directory from an Exchange 2007 Client Access server. You can remove the default Exchange Web Services (EVS) virtual directory or another Exchange Web Services virtual directory.

To run the Remove-WebServicesVirtualDirectory cmdlet, the account you use must be delegated the Exchange Server Administrator role and membership in the local Administrators group for the target server.

For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.


Parameter Required Type Description




This parameter specifies a virtual directory.




This parameter causes the command to pause processing and requires that you acknowledge what the command will do before processing continues. You do not have to specify a value with the Confirm parameter.




To specify the fully qualified domain name (FQDN) of the domain controller that retrieves data from the Active Directory directory service, include the DomainController parameter in the command.




This parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view what changes would occur without having to apply any of those changes. You do not have to specify a value with the WhatIf parameter.


Error Description




Exceptions Description



This code example removes the virtual directory named "Sales" from the server named "CAS01".

Remove-WebServicesVirtualDirectory -Identity CAS01\Sales
To ensure that you are reading the most up-to-date information and to find additional Exchange Server 2007 documentation, visit the Exchange Server TechCenter.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft