Set-ResourceConfig (RTM)

Microsoft Exchange Server 2007 will reach end of support on April 11, 2017. To stay supported, you will need to upgrade. For more information, see Resources to help you upgrade your Office 2007 servers and clients.

 

Applies to: Exchange Server 2007

Use the Set-ResourceConfig cmdlet to set resource property schema and resource locations on the Resource Config object in Active Directory.

Syntax

Set-ResourceConfig [-DomainController <Fqdn>] [-Instance <ResourceBookingConfig>] [-ResourcePropertySchema <MultiValuedProperty>]

Detailed Description

This command sets both the list of custom properties (resource property schema) and the internal list of locations on Resource Config object in Active Directory. All existing custom properties and locations will be overwritten when you use this command.

To run the Set-ResourceConfig 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.

Parameters

Parameter Required Type Description

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

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

Instance

Optional

Microsoft.Exchange.Data.Directory.SystemConfiguration.ResourceBookingConfig

The Instance parameter enables you to pass an entire object to the command to be processed. It is mainly used in scripts where an entire object must be passed to the command.

ResourcePropertySchema

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies a list of custom strings that you can use to tag resources.

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

In this example, Equipment and Room resources are added to the custom Resource Config list in Active Directory.

Note

All entries must start with either Room/ or Equipment/. Setting a new entry using the Set-ResourceConfig cmdlet will overwrite all existing entries, and not add a new entry to the list. Use the Get-ResourceConfig cmdlet to query the existing entries, and then append to the list.

Set-ResourceConfig -DomainController server1.contoso.com -ResourcePropertySchema ("Room/16Seats","Equipment/Projector","Room/8Seats","Equipment/Whiteboard")