Use this cmdlet to create a new, empty AllowedActionsCollection object. This object can be set on a SyncTask to control the sync permissions for folders and items.
PowerShell
New-FolderSpecificAllowedActionsCollection
Description
The New-FolderSpecificAllowedActionsCollection cmdlet creates a new empty object. Use the Add-FolderSpecificAllowedActions cmdlet to add allowed actions to this new object.
The purpose of this is to support certain scripting scenarios. For example, when faced with creating several 100 or 1000 sync tasks, being able to reuse elements becomes valuable and creates consistency.
The new collection created by this cmdlet can then have one or more folder specific allowed actions added to it, and then the collection can be assigned to a SyncTask. This saves from having to retype the same script elements in repetition.
Examples
Example 1
PowerShell
$fsr = New-FolderSpecificAllowedActionsCollection
Add-FolderSpecificAllowedActions -AddTo $fsr -FolderPath \{Inbox} -AllowTargetFolderCreate -AllowTargetItemCreate -AllowTargetItemModify
This example creates a new empty collection and uses the Add-FolderSpecificAllowedActions cmdlet to add rights to it.
Output
This cmdlet will place an empty instance of a AllowedActionsCollection object on the pipeline.
