File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
sccm-ps/ConfigurationManager Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,13 @@ Set-CMClientSettingSoftwareInventory [-AddCollectFile <Hashtable[]>] [-AddInvent
5252## EXAMPLES
5353
5454### Example 1
55+ Activate Software Inventory for "My custom setting" and set a recurring schedule for every first Sunday of every month.
56+ Also, add ** .exe** as inventory file type with the default inventory settings.
5557```
56- PS XYZ:\>
58+ PS XYZ:\>$inventoryFileTypeTable = @{FileName="*.exe";ExcludeWindirAndSubfolders=$True;ExcludeEncryptedAndCompressedFiles=$True;Subdirectories=$True;Path='All client hard disks'}
59+ PS XYZ:\>$schedule = New-CMSchedule -Start '2022-01-01 04:00' -DayOfWeek Sunday -WeekOrder First
60+ PS XYZ:\>Set-CMClientSettingSoftwareInventory -Name 'My custom setting' -Enable $true -Schedule $schedule -AddInventoryFileType $inventoryFileTypeTable
61+
5762```
5863
5964## PARAMETERS
You can’t perform that action at this time.
0 commit comments