Use Windows PowerShell cmdlets to administer security in SharePoint 2013
Published: July 16, 2012
Summary: Learn about the Windows PowerShell cmdlets that you can use to administer security for SharePoint 2013.
Applies to: SharePoint Foundation 2013 | SharePoint Server 2013
The following table shows the Windows PowerShell cmdlets that you can use to administer security for SharePoint 2013.
Index of Windows PowerShell cmdlets for SharePoint 2013 includes a complete list of all cmdlets in SharePoint 2013.
| Cmdlet name | Description |
|---|---|
| Adds a user to the SharePoint_Shell_Access role for the specified database. | |
| Returns the names of all users who have the SharePoint_Shell_Access role. | |
| Removes a user from the SharePoint_Shell_Access role. | |
| Adds a claim mapping to a trusted security token service (STS) identity provider. | |
| Returns an authentication provider. | |
| Returns the SharePoint certificate authority (CA). | |
| Returns a claim provider. | |
| Returns a claim provider manager. | |
| Returns a list of all the types of claims. | |
| Retrieves accounts registered in the configuration database. | |
| Returns all managed paths that match the given criteria. | |
| Returns the security token service (STS) for the farm. | |
| Returns the SPObjectSecurity object for a service application. | |
| Returns an identity provider. | |
| Returns a trusted root authority. | |
| Returns the object that represents the farm trust. | |
| Adds a new security principal to an SPObjectSecurity object. | |
| Enforces resource security on the local server. | |
| Creates a new authentication provider in the farm. | |
| Registers a new claim provider in the farm. | |
| Creates a new claims principal. | |
| Registers a new type of claim. | |
| Creates a claim mapping rule for a security token service (STS) identity provider. | |
| Registers a new managed account. | |
| Creates a new managed path for the given Web application for all host header site collections. | |
| Creates an identity provider in the farm. | |
| Creates a trusted root authority. | |
| Creates a trust with a SharePoint farm. | |
| Unregisters a claim provider. | |
| Deletes a claim type mapping rule for a security token service (STS) identity provider. | |
| Removes a managed account registration from the farm. | |
| Deletes the specified managed path from the specified host header or Web application. | |
| Deletes a security token service (STS) identity provider from the farm. | |
| Deletes a trusted root authority. | |
| Deletes the object that represents the farm trust. | |
| Repairs the local managed account credential deployment. | |
| Removes a security principal from a SPObjectSecurity object. | |
| Updates registration of a claims provider. | |
| Configures the managed account. | |
| Updates the settings of the SharePoint security token service (STS) identity provider. | |
| Updates the SPObjectSecurity object for a service application. | |
| Sets the identity providers of a Web application. | |
| Creates a new trusted root authority. | |
| Updates a trust with the farm. | |
| Changes the value of the farm encryption key and, using the new key, re-encrypts all the data. | |
| Returns the authentication realms. | |
| Returns the trusted security token issuer object. | |
| Creates a new service application proxy group. | |
| Creates a trust between a server to server principal. | |
| Removes the trusted security token service object. | |
| Sets the authentication realm. | |
| Sets the trusted token issuer. | |
| Displays a specific app principal object. | |
| Lets an on-premises or SharePoint Online administrator register an app principal. | |
| Removes the permissions on a specified app principal. | |
| Sets the permissions on a given app principal. | |
| Converts the authentication mode of a web application. |
Change History
| Date | Description |
|---|---|
| July 16, 2012 | Initial publication |
