|
2 | 2 | title: Configure role-based administration |
3 | 3 | titleSuffix: Configuration Manager |
4 | 4 | description: Combine security roles, security scopes, and assigned collections to define the administrative scope for each administrative user. |
5 | | -ms.date: 04/15/2021 |
| 5 | +ms.date: 12/21/2021 |
6 | 6 | ms.prod: configuration-manager |
7 | 7 | ms.technology: configmgr-core |
8 | 8 | ms.topic: how-to |
@@ -283,6 +283,42 @@ Use the following procedure to modify an administrative user that has the secura |
283 | 283 | > [!CAUTION] |
284 | 284 | > When a security role grants administrative users the collection deployment permission, those administrative users can distribute objects from any security scope for which they have object **read** permissions, even if that security scope is associated with a different security role. |
285 | 285 |
|
| 286 | +## Automate with Windows PowerShell |
| 287 | + |
| 288 | +You can use the following PowerShell cmdlets to automate some of these tasks: |
| 289 | + |
| 290 | +Manage security roles: |
| 291 | + |
| 292 | +- [Copy-CMSecurityRole](/powershell/module/configurationmanager/Copy-CMSecurityRole): Create a custom security role. |
| 293 | +- [Export-CMSecurityRole](/powershell/module/configurationmanager/Export-CMSecurityRole): Export a security role to an XML file. |
| 294 | +- [Get-CMSecurityRole](/powershell/module/configurationmanager/Get-CMSecurityRole): Get a security role. |
| 295 | +- [Import-CMSecurityRole](/powershell/module/configurationmanager/Import-CMSecurityRole): Import a security role from an XML file. |
| 296 | +- [Remove-CMSecurityRole](/powershell/module/configurationmanager/Remove-CMSecurityRole): Remove custom security roles. |
| 297 | +- [Set-CMSecurityRole](/powershell/module/configurationmanager/Set-CMSecurityRole): Change configuration settings of a security role. |
| 298 | +- [Add-CMSecurityRoleToAdministrativeUser](/powershell/module/configurationmanager/Add-CMSecurityRoleToAdministrativeUser): Add a security role to a user or group. |
| 299 | +- [Remove-CMSecurityRoleFromAdministrativeUser](/powershell/module/configurationmanager/Remove-CMSecurityRoleFromAdministrativeUser): Remove the association between a security role and an administrative user. |
| 300 | + |
| 301 | +Manage permissions on security roles: |
| 302 | + |
| 303 | +- [Get-CMSecurityRolePermission](/powershell/module/configurationmanager/Get-CMSecurityRolePermission): Get the permissions for a security role. |
| 304 | +- [Set-CMSecurityRolePermission](/powershell/module/configurationmanager/Set-CMSecurityRolePermission): Configure a security role with specific permissions. |
| 305 | + |
| 306 | +Manage security scopes: |
| 307 | + |
| 308 | +- [Get-CMSecurityScope](/powershell/module/configurationmanager/Get-CMSecurityScope): Get a security scope. |
| 309 | +- [New-CMSecurityScope](/powershell/module/configurationmanager/New-CMSecurityScope): Create a security scope. |
| 310 | +- [Remove-CMSecurityScope](/powershell/module/configurationmanager/Remove-CMSecurityScope): Remove a security scope. |
| 311 | +- [Set-CMSecurityScope](/powershell/module/configurationmanager/Set-CMSecurityScope): Configure a security scope. |
| 312 | +- [Add-CMSecurityScopeToAdministrativeUser](/powershell/module/configurationmanager/Add-CMSecurityScopeToAdministrativeUser): Add a security scope to a user or group. |
| 313 | +- [Remove-CMSecurityScopeFromAdministrativeUser](/powershell/module/configurationmanager/Remove-CMSecurityScopeToAdministrativeUser): Remove the association between a security scope and an administrative user. |
| 314 | + |
| 315 | +Manage object security scope: |
| 316 | + |
| 317 | +- [Add-CMObjectSecurityScope](/powershell/module/configurationmanager/Add-CMObjectSecurityScope): Add a security scope to an object. |
| 318 | +- [Get-CMObjectSecurityScope](/powershell/module/configurationmanager/Get-CMObjectSecurityScope): Get the security scope for a Configuration Manager object. |
| 319 | +- [Remove-CMObjectSecurityScope](/powershell/module/configurationmanager/Remove-CMObjectSecurityScope): Remove a security scope from a Configuration Manager object. |
| 320 | +- [Set-CMObjectSecurityScope](/powershell/module/configurationmanager/Set-CMObjectSecurityScope): Configure the security scopes for Configuration Manager objects. |
| 321 | + |
286 | 322 | ## Next steps |
287 | 323 |
|
288 | 324 | [Role-based administration and auditing tool](../../../support/rbaviewer.md) |
|
0 commit comments