Set-CMClientSettingSoftwareInventory
	
	语法
	Set-CMClientSettingSoftwareInventory
   [-AddCollectFile <Hashtable[]>]
   [-AddInventoryFileType <Hashtable[]>]
   [-CleanCollectFile]
   [-CleanInventoryFileType]
   [-Enable <Boolean>]
   [-FileDisplayName <String>]
   [-FileInventoriedName <String>]
   [-FileName <String>]
   [-RemoveCollectFile <Hashtable[]>]
   [-RemoveInventoryFileType <Hashtable[]>]
   [-ReportOption <ReportOptionType>]
   [-Schedule <IResultObject>]
   -Name <String>
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
	Set-CMClientSettingSoftwareInventory
   [-AddCollectFile <Hashtable[]>]
   [-AddInventoryFileType <Hashtable[]>]
   [-CleanCollectFile]
   [-CleanInventoryFileType]
   [-Enable <Boolean>]
   [-FileDisplayName <String>]
   [-FileInventoriedName <String>]
   [-FileName <String>]
   [-RemoveCollectFile <Hashtable[]>]
   [-RemoveInventoryFileType <Hashtable[]>]
   [-ReportOption <ReportOptionType>]
   [-Schedule <IResultObject>]
   [-DefaultSetting]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
	Set-CMClientSettingSoftwareInventory
   [-AddCollectFile <Hashtable[]>]
   [-AddInventoryFileType <Hashtable[]>]
   [-CleanCollectFile]
   [-CleanInventoryFileType]
   [-Enable <Boolean>]
   [-FileDisplayName <String>]
   [-FileInventoriedName <String>]
   [-FileName <String>]
   [-RemoveCollectFile <Hashtable[]>]
   [-RemoveInventoryFileType <Hashtable[]>]
   [-ReportOption <ReportOptionType>]
   [-Schedule <IResultObject>]
   -InputObject <IResultObject>
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
	说明
	
注意
从 Configuration Manager 站点驱动器运行 Configuration Manager cmdlet,例如 PS XYZ:\>。 有关详细信息,请参阅 入门。
 
	示例
	示例 1
	为“我的自定义设置”激活软件清单,并为每个月的第一个星期日设置定期计划。
此外,使用默认清单设置将 .exe 添加为清单文件类型。
	PS XYZ:\>$inventoryFileTypeTable = @{FileName="*.exe";ExcludeWindirAndSubfolders=$True;ExcludeEncryptedAndCompressedFiles=$True;Subdirectories=$True;Path='All client hard disks'}
PS XYZ:\>$schedule = New-CMSchedule -Start '2022-01-01 04:00' -DayOfWeek Sunday -WeekOrder First
PS XYZ:\>Set-CMClientSettingSoftwareInventory -Name 'My custom setting' -Enable $true -Schedule $schedule -AddInventoryFileType $inventoryFileTypeTable
	
	参数
-AddCollectFile
	
	
			| 类型: | Hashtable[] | 
			| 别名: | AddCollectFiles | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-AddInventoryFileType
	
	
			| 类型: | Hashtable[] | 
			| 别名: | AddInventoryFileTypes | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-CleanCollectFile
	
	
			| 类型: | SwitchParameter | 
			| 别名: | CleanCollectFiles | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-CleanInventoryFileType
	
	
			| 类型: | SwitchParameter | 
			| 别名: | CleanInventoryFileTypes | 
			| 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 | 
	
 
-Enable
	
	
			| 类型: | Boolean | 
			| 别名: | EnableSoftwareInventory | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-FileDisplayName
	
	
			| 类型: | String | 
			| 别名: | SoftwareInventoryFileDisplayName | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-FileInventoriedName
	
	
			| 类型: | String | 
			| 别名: | SoftwareInventoryFileInventoriedName | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-FileName
	
	
			| 类型: | String | 
			| 别名: | SoftwareInventoryFileName | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-ForceWildcardHandling
	此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
	
			| 类型: | SwitchParameter | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
	
	
			| 类型: | IResultObject | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | True | 
		| 接受管道输入: | True | 
		| 接受通配符: | False | 
	
 
-Name
	
	
			| 类型: | String | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | True | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-PassThru
	返回一个 对象,该对象表示正在使用的项。 默认情况下,此 cmdlet 可能不会生成任何输出。
	
			| 类型: | SwitchParameter | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-RemoveCollectFile
	
	
			| 类型: | Hashtable[] | 
			| 别名: | RemoveCollectFiles | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-RemoveInventoryFileType
	
	
			| 类型: | Hashtable[] | 
			| 别名: | RemoveInventoryFileTypes | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-ReportOption
	
	
			| 类型: | ReportOptionType | 
			| 接受的值: | None, ProductOnly, FileOnly, FullDetail | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-Schedule
	
	
			| 类型: | IResultObject | 
			| 别名: | InventorySchedule, SoftwareInventorySchedule | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
-WhatIf
	显示在 cmdlet 运行时发生的情况。 cmdlet 不会运行。
	
			| 类型: | SwitchParameter | 
			| 别名: | wi | 
			| Position: | Named | 
			| 默认值: | None | 
		| 必需: | False | 
		| 接受管道输入: | False | 
		| 接受通配符: | False | 
	
 
	
			Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
		
	输出
			System.Object