Applies to: Exchange Server 2007
Topic Last Modified: 2007-06-05
Use the Remove-ManagedFolder cmdlet to delete managed folders from the Active Directory directory service.
Syntax
Remove-ManagedFolder -Identity
<ELCFolderIdParameter> [-DomainController
<Fqdn>]
|
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Configuration.Tasks.ELCFolderIdParameter |
The Identity parameter specifies the name, distinguished name, or GUID of the managed folder. |
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
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. |
Detailed Description
The Remove-ManagedFolder cmdlet accepts a Managed Folder object or an identity string as pipelined input.
To run the Remove-ManagedFolder cmdlet, the account you use must be delegated the following:
- Exchange Organization Administrator role
For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.
Input Types
Return Types
This command does not return a value.
Errors
Error | Description |
---|---|
Exceptions
Exceptions | Description |
---|---|
Example
In this example, the Remove-ManagedFolder command is used to delete the managed folder named MyManagedFolder from Active Directory.
Copy Code | |
---|---|
Remove-ManagedFolder MyManagedFolder |