Deploying session configurations
After you have developed the proper role definitions and a possible session configuration, it is time to deploy those. In order to enable your new session configuration, there are several options.
Individual activation
Semi-automatic deployment is suited for a very small amount of servers, for example, a central management server that provides an endpoint with multiple role definitions. This requires you to copy the role capabilities files as a module to your remote system with secure permissions set on those files. Additionally, the session configuration file should be available:
# Register an individual session configuration # Prepare proper folder $roleCapabilitiesFolder = New-Item -Path (Join-Path ($env:PSModulePath -split ';')[1] 'JeaCapabilities\RoleCapabilities') -ItemType Directory -Force $roleCapabilityOptions = @{ # shortened, see example code in Role Capabilities section } New-PSRoleCapabilityFile @roleCapabilityOptions $sessionConfigurationOptions...