Parameter |
Description |
---|---|
Delete-UserPermissions |
The cmdlet name |
-Type |
The level of the hierarchy containing the SharePoint object(s) that will be acted on. Valid values are: §FARM §WAP §SITE §WEB |
-Url |
The url of the SharePoint object to act on. NOTE: If the action is to be performed on a farm, Web application, or site collection, you can use the url for any site within that scope. |
-UserLoginNames |
Login name(s) of the user(s) whose permissions will be deleted. Enter multiple login names as a comma-separated list. |
-ReassignTo (Optional) |
Login name(s) of the user(s) to whom you want to reassign deleted permissions. Enter multiple login names as a comma-separated list. |
-IncludeChildren |
An indication of whether you want the action to include child sites.
§If -Type is FARM, WAP, or SITE, $true is the only valid value. §If -Type is WEB, valid values are $true or $false.
NOTE: If this parameter is omitted: §for FARM, WAP, or SITE, a value of true will be assumed §for WEB, a value of false will be assumed. |
-DeleteFromAllPeople |
An indication of whether you want the deleted user(s) to be removed from the site collection All People list. Valid values are: §$true §$false NOTE: If this parameter is omitted, a value of false will be assumed. |
-DeleteAlerts |
An indication of whether you want any alerts that have been created for the user(s) to be deleted. Valid values are: §$true §$false NOTE: If this parameter is omitted, a value of false will be assumed. |
-TaskAuditPath (Optional) |
If you want to save a ControlPoint Task Audit for the action as a .pdf file, the path to the directory where you want the file to be saved. |
Example PowerShell Cmdlet with Parameters
Delete-UserPermissions -url http://QuestTest/alpha -Type WAP -UserLoginNames QuestTest\jamesjoyce,QuestTest\marktwain -ReassignTo QuestTest\fscottfitzgerald -IncludeChildren $true -DeleteFromAllPeople $true -DeleteAlerts $true -TaskAuditPath C:\Temp\TaskAudits
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center