Set-CMExchangeServer

Set-CMExchangeServer

Changes settings for an Exchange server.

構文

Parameter Set: SetBySiteCode
Set-CMExchangeServer -ServerAddress <String> -SiteCode <String> [-AccessLevel <AccessLevelType> {Allow | Block | Quarantine} ] [-AccessRuleString <String[]> ] [-ActiveDirectoryContainer <String[]> ] [-AllowExternalDeviceManagement <Boolean> ] [-ApplicationSetting <Dictionary<String><String>> ] [-DeltaSyncInterval <Int32> ] [-EmailAddress <String[]> ] [-EmailManagementSetting <Dictionary<String><String>> ] [-EnableAccessRule <Boolean> ] [-ExchangeClientAccessServer <Dictionary[]<String><String>> ] [-FindAll] [-FullSyncSchedule <IResultObject> ] [-GeneralSetting <Dictionary<String><String>> ] [-IsHosted] [-MaximumInactiveDay <Int32> ] [-NewServerAddress <String> ] [-PasswordSetting <Dictionary<String><String>> ] [-SecuritySetting <Dictionary<String><String>> ] [-UserName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-CMExchangeServer cmdlet changes settings for a Microsoft Exchange Server.

System Center 2012 Configuration Manager works with Exchange Server to manage mobile devices that cannot run System Center 2012 Configuration Manager clients.

パラメーター

-AccessLevel<AccessLevelType>

Specifies the type of access for the mobile devices. Access level applies to a mobile device that is not managed by a rule. Valid values are:

-- Allow
-- Block
-- Quarantine

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-AccessRuleString<String[]>

Specifies an array of access rules. Access rules control whether a mobile device can access an Exchange server. Access rules apply to a family of devices.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ActiveDirectoryContainer<String[]>

Specifies an array of names of Active Directory containers. When this parameter appears, the Exchange Server connector searches for the device only in the Active Directory containers.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-AllowExternalDeviceManagement<Boolean>

Indicates whether an external device management program can manage the device.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ApplicationSetting<Dictionary<String><String>>

Specifies application settings, such as allow or deny the installation of applications. For each dictionary entry in the array, specify the setting name as the key the configuration as the value. Valid values are: AllowUnsignedApplications, AllowUnsignedInstallationPackages, or Block a specific application.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-DeltaSyncInterval<Int32>

Specifies the interval, in minutes, at which the Exchange Server connector runs delta discovery. Delta discovery looks for new devices or changes to existing devices.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-EmailAddress<String[]>

Specifies an array of email addresses.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-EmailManagementSetting<Dictionary<String><String>>

Specifies email management settings, such as synchronization schedule, message format, and size of attachments. For each dictionary entry in the array, specify the setting name as the key and the configuration as the value.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-EnableAccessRule<Boolean>

Indicates whether to enable an access rule.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ExchangeClientAccessServer<Dictionary[]<String><String>>

Specifies Exchange Client Access servers, as key-value pairs.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-FindAll

Indicates that the discovery process find all mobile devices in an Exchange organization.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-FullSyncSchedule<IResultObject>

Specifies a result object that schedules the full discovery time for an Exchange Server connector.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-GeneralSetting<Dictionary<String><String>>

Specifies general settings for mobile devices that use the Exchange Server Connector. Settings you can specify for this parameter include:

-- RequireManualSyncWhenRoaming
-- RequireStorageCardEncryption
-- UnapprovedInROMApplicationList
-- DevicePolicyRefreshInterval
-- MaxInactivityTimeDeviceLock

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-IsHosted

Indicates that the Exchange Server connector configuration is for a hosted or on-premise Exchange Server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-MaximumInactiveDay<Int32>

Specifies the interval between times that the Exchange Server connector runs device discovery. The cmdlet checks the last sync time of the devices that Exchange Server manages.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-NewServerAddress<String>

Specifies a new server address for an Exchange server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-PasswordSetting<Dictionary<String><String>>

Specifies general password settings. Settings you can specify for this parameter include:

-- AlphanumericDevicePasswordRequired
-- DevicePasswordEnabled
-- DevicePasswordExpiration
-- DevicePasswordHistory
-- MaxDevicePasswordFailedAttempts
-- PasswordRecoveryEnabled
-- MinDevicePasswordComplexCharacters
-- MinDevicePasswordLength
-- AlphanumericDevicePasswordRequired
-- AllowSimpleDevicePassword

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SecuritySetting<Dictionary<String><String>>

Specifies a dictionary of security settings. Settings you can specify for this parameter include:

-- AllowBluetooth
-- AllowBrowser
-- AllowCamera
-- AllowDesktopSync
-- AllowInternetSharing
-- AllowIrDA
-- AllowNonProvisionableDevices
-- AllowRemoteDesktop
-- AllowStorageCard
-- AllowTextMessaging
-- AllowWiFi

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-ServerAddress<String>

Specifies the address of the Exchange Server for which the cmdlet configures the Exchange Server connector.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-SiteCode<String>

Specifies the Exchange Server by using a site code.

エイリアス

なし

必須?

true

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-UserName<String>

Specifies the user name that the connector uses to connect to the Exchange Server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

Example 1: Change settings for an Exchange server

The first command uses the New-CMExchangeServerConnectorGeneralSetting cmdlet to add new settings to an Exchange Server connector in Configuration Manager, and stores the settings in the $Gs variable.

The second command uses the New-CMExchangeServerConnectorPasswordSetting cmdlet adds new password settings to an Exchange Server connector in Configuration Manager, and stores the password settings in the $Ps variable.

The third command uses the New-CMExchangeServerConnectorEmailManagementSetting cmdlet creates a set of e-mail management settings for a mobile device that uses an Exchange Server connector, and stores the password settings in the $Em variable.

The fourth command uses the New-CMExchangeServerConnectorSecuritySetting cmdlet configures security options for an Exchange Server connector in Configuration Manager, and security settings in the $Ss variable.

The fifth command uses the New-CMExchangeServerConnectorApplicationSetting cmdlet creates application-related settings for a mobile device that uses an Exchange Server connector, and stores the application settings in the $As variable.

The final command changes settings for an Exchange Server for the Configuration Manager site that has the site code CM2. The command specifies the general settings for the Exchange Server connector stored in $Gs. The command specifies password settings for the Exchange Server connector stored in $Ps. The command specifies a set of e-mail management settings for the Exchange Server connector stored in $Em. The command specifies the security options for the Exchange Server connector stored in $Ss. The command specifies application-related settings for a mobile device stored in $As.

PS C:\> $Gs= New-CMExchangeServerConnectorGeneralSetting -AllowInternetShare $True -AllowDesktopSync $True -AllowNonProvision $True -RefreshInterval 4
PS C:\> $Ps= New-CMExchangeServerConnectorPasswordSetting -PasswordEnabled $True -MinimumPasswordLength 8 -PasswordExpiration 51 -PasswordHistory 21 -WipeAfterFailedAttempt 6 -MaximumIdleTimeMinutes 41 -PasswordComplexity
PS C:\> $Em = New-CMExchangeServerConnectorEmailManagementSetting -ConsumerEmail $True -MaximumEmailAge OneDay -MaximumCalenderAge ThreeMonths -PushWhenRoaming $True -AllowHtmlEmail $True -EmailAttachmentPolicy $True -MaximumSizeTextEmail 401 -MaximumSizeHtmlEmail 402 -MaximumSizeAttachment 24
PS C:\> $Ss = New-CMExchangeServerConnectorSecuritySetting -RemoteDesktop $True -StorageCard $True -Camera $True -Bluetooth $False -WiFiConnection HandsfreeOnly -Infra $False -Browser $False -StorageCardEncrypt $False -FileEncrypt $False -TextMessage $False
PS C:\> $As= New-CMExchangeServerConnectorApplicationSetting -UnsignedInstall $True -UnsignedApplication $False -BlockedApplication "App01","App02"
PS C:\> Set-CMExchangeServer -SiteCode "CM2" -ServerAddress "https://www.contoso.com/powershell" -NewServerAddress "www.fabrikam.com" -UserName "ElisaDaugherty@contoso.com" -DeltaSyncInterval 124 -MaximumInactiveDay 26 -FindAll -AllowExternalDeviceManagement $False -EnableAccessRule $True -AccessLevel Allow -EmailAddress "EvanNarvaez@fabrikam.com","DavidChew@contosco.com" -GeneralSetting $Gs -PasswordSetting $Ps -EmailManagementSetting $Em -SecuritySetting $Ss -ApplicationSetting $As

関連トピック

Get-CMExchangeServer

New-CMExchangeServer

Remove-CMExchangeServer

Sync-CMExchangeServer

New-CMExchangeServerConnectorSecuritySetting

New-CMExchangeServerConnectorApplicationSetting

New-CMExchangeServerConnectorEmailManagementSetting

New-CMExchangeServerConnectorGeneralSetting