Get-CMClientSetting
获取客户端设置。
语法
Get-CMClientSetting
[-Name <String>]
[-Raw]
[-Setting <SettingType>]
[-SettingType <Types>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMClientSetting
-Id <String>
[-Raw]
[-Setting <SettingType>]
[-SettingType <Types>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
说明
Get-CMClientSetting cmdlet 获取客户端设置的自定义集合。
有关客户端设置的详细信息,请参阅 关于 Configuration Manager 中的客户端设置。
注意
从 Configuration Manager 站点驱动器运行 Configuration Manager cmdlet,例如 PS XYZ:\>
。 有关详细信息,请参阅 入门。
示例
示例 1:获取由其名称指定的自定义客户端设置的集合
PS XYZ:\> Get-CMClientSetting -Name "Windows 8 Client Computers Settings"
AgentConfigurations: {}
AssignmentCount: 0
CreatedBy: Contoso\DChew
DateCreated: 8/04/2012 4:40:03 PM
DateModified: 8/04/2012 4:40:03 PM
Description: Windows 8 Client Computers Settings
Enabled: False
FeatureType: 1
Flags: 0
LastModifiedBy: Contoso\DChew
Name: Win08ClientSettings
Priority: 0
SecuredScopeNames: {Default}
Settings ID: 16777220
Type: 1
UniqueID: {0CCA6700-AE5E-4949-8FBC-AA6719775CC3}
此命令获取具有指定名称的客户端设置。
参数
-DisableWildcardHandling
此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ForceWildcardHandling
此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Id
指定一个或多个客户端设置集合的标识符数组。
类型: | String |
别名: | SettingsId |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Name
指定自定义客户端设置的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | True |
-Raw
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Setting
为一个或多个客户端设置集合指定设置类型的数组。
有效值包含:
- BackgroundIntelligentTransfer
- ClientPolicy
- 云
- ComplianceSettings
- ComputerAgent
- ComputerRestart
- EndpointProtection
- HardwareInventory
- MeteredNetwork
- MobileDevice
- NetworkAccessProtection
- PowerManagement
- RemoteTools
- SoftwareDeployment
- SoftwareInventory
- SoftwareMetering
- SoftwareUpdates
- StateMessaging
- UserAndDeviceAffinity
类型: | SettingType |
接受的值: | BackgroundIntelligentTransfer, Cloud, ClientCache, ClientPolicy, ComplianceSettings, ComputerAgent, ComputerRestart, DeliveryOptimization, EndpointProtection, HardwareInventory, MeteredNetwork, MobileDevice, NetworkAccessProtection, PowerManagement, RemoteTools, SoftwareCenter, SoftwareDeployment, SoftwareInventory, SoftwareMetering, SoftwareUpdates, StateMessaging, UserAndDeviceAffinity, WindowsAnalytics |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SettingType
类型: | Types |
别名: | Type |
接受的值: | Default, Device, User |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输入
None
输出
IResultObject[]
IResultObject
IResultObject
Dictionary<string, object>
相关链接
- 关于 Configuration Manager 中的客户端设置
- New-CMClientSetting
- Remove-CMClientSetting
- Set-CMClientSettingBackgroundIntelligentTransfer
- Set-CMClientSettingClientCache
- Set-CMClientSettingClientPolicy
- Set-CMClientSettingCloudService
- Set-CMClientSettingComplianceSetting
- Set-CMClientSettingComputerAgent
- Set-CMClientSettingComputerRestart
- Set-CMClientSettingDeliveryOptimization
- Set-CMClientSettingEndpointProtection
- Set-CMClientSettingEnrollment
- Set-CMClientSettingGeneral
- Set-CMClientSettingHardwareInventory
- Set-CMClientSettingMeteredInternetConnection
- Set-CMClientSettingPowerManagement
- Set-CMClientSettingRemoteTool
- Set-CMClientSettingSoftwareCenter
- Set-CMClientSettingSoftwareDeployment
- Set-CMClientSettingSoftwareInventory
- Set-CMClientSettingSoftwareMetering
- Set-CMClientSettingSoftwareUpdate
- Set-CMClientSettingStateMessaging
- Set-CMClientSettingUserAndDeviceAffinity