共用方式為


Set-CMClientSettingClientCache

設定用戶端設定用戶端快取。

語法

Set-CMClientSettingClientCache
   [-BroadcastPort <Int32>]
   [-ConfigureBranchCache <Boolean>]
   [-ConfigureCacheSize <Boolean>]
   [-DownloadPort <Int32>]
   [-EnableBranchCache <Boolean>]
   [-EnableHttps <Boolean>]
   [-EnableSuperPeer <Boolean>]
   [-MaxBranchCacheSizePercent <Int32>]
   [-MaxCacheSize <Int32>]
   [-MaxCacheSizePercent <Int32>]
   -Name <String>
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMClientSettingClientCache
   [-BroadcastPort <Int32>]
   [-ConfigureBranchCache <Boolean>]
   [-ConfigureCacheSize <Boolean>]
   [-DownloadPort <Int32>]
   [-EnableBranchCache <Boolean>]
   [-EnableHttps <Boolean>]
   [-EnableSuperPeer <Boolean>]
   [-MaxBranchCacheSizePercent <Int32>]
   [-MaxCacheSize <Int32>]
   [-MaxCacheSizePercent <Int32>]
   [-DefaultSetting]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMClientSettingClientCache
   [-BroadcastPort <Int32>]
   [-ConfigureBranchCache <Boolean>]
   [-ConfigureCacheSize <Boolean>]
   [-DownloadPort <Int32>]
   [-EnableBranchCache <Boolean>]
   [-EnableHttps <Boolean>]
   [-EnableSuperPeer <Boolean>]
   [-MaxBranchCacheSizePercent <Int32>]
   [-MaxCacheSize <Int32>]
   [-MaxCacheSizePercent <Int32>]
   -InputObject <IResultObject>
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

注意事項

從Configuration Manager月臺磁片磁碟機執行 Configuration Manager Cmdlet,例如 PS XYZ:\> 。 如需詳細資訊,請 參閱開始使用

範例

範例 1

PS XYZ:\>

參數

-BroadcastPort

類型:Int32
別名:PortForInitialNetworkBroadcast
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ConfigureBranchCache

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ConfigureCacheSize

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

執行 Cmdlet 之前提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultSetting

類型:SwitchParameter
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-DisableWildcardHandling

此參數會將萬用字元視為常值字元值。 您無法將其與 ForceWildcardHandling結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DownloadPort

類型:Int32
別名:PortForContentDownloadFromPeer
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-EnableBranchCache

類型:Boolean
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-EnableHttps

類型:Boolean
別名:EnableHttpsForClientPeerCommunication
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-EnableSuperPeer

類型:Boolean
別名:EnableClientInFullOsToShareContent
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ForceWildcardHandling

此參數會處理萬用字元,並可能導致非預期的行為 (不建議) 。 您無法將其與 DisableWildcardHandling結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

類型:IResultObject
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-MaxBranchCacheSizePercent

類型:Int32
別名:MaximumBranchCacheSizePercent
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-MaxCacheSize

類型:Int32
別名:MaximumCacheSizeMb
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-MaxCacheSizePercent

類型:Int32
別名:MaximumCacheSizePercent
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-PassThru

傳回 物件,表示您正在使用的專案。 根據預設,此 Cmdlet 可能不會產生任何輸出。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

輸出

System.Object