From the course: PowerShell: Scripting for Advanced Automation

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Creating a role capability file

Creating a role capability file

From the course: PowerShell: Scripting for Advanced Automation

Start my 1-month free trial

Creating a role capability file

- [Instructor] Once you've planned out your JEA permissions matrix, it's time to create the two files that make this whole thing work. And Microsoft has left us with a cmdlet that will create a great starter file for creating this role capability document. I'm going to go ahead and run New-PSRoleCapabilityFile, and specify the path and file name that needs to be created. So let me go ahead and run that cmdlet, and then we can browse out to the file system, and see the document that was created, which I'm going to go ahead and open here in Notepad. It starts off by adding a little bit of housekeeping information, who it is that's authored and possibly maintained this document, there's space for a description and company details about it, but after I scroll down past this housekeeping data, we can get to the real meat of this file. Keep in mind as you edit this file that permissions are all additive. We're going to specify what a member of a specific group is allowed to do. If a user is…

Contents