Listing SCSM security role details with PowerShell
SCSM Security Role delegation can be managed using PowerShell commands. In this recipe, we discuss and provide steps to list the typical settings for all configured SCSM Security User roles using the SCSM PowerShell commands.
Getting ready
You need to ensure you have successfully installed the SCSM product, be a user in the SCSM Administrators role and have the SCSM console open.
You must download and install the SCSM PowerShell Cmdlets found at http://smlets.codeplex.com/ (see the Downloading and installing SMLets recipe in Chapter 12, Automating Service Manager 2016).
How to do it...
Here are the steps you must follow to list the configuration of security roles using PowerShell commands:
- Type the following code into a notepad or a plain text editor:
Import-Module SMLets # Name of the SCSM Management Server $smDefaultComputer = "TDSCSM03"...