July 2018
Beginner
552 pages
13h 18m
English
Similar steps as for individual activation can be taken to enable one or more endpoints on remote systems. If you are not able to roll out a session configuration leveraging a configuration management tool, you can also use remoting to do so. By executing Register-PSSessionConfiguration with Invoke-Command, you can just as well distribute the session configuration. Be aware of the fact that the WinRM service will be restarted, terminating your session:
# Distibuted session configuration# Create new sessions and copy Role Capabilities (as well as necessary modules)$sessions = New-PSSession -ComputerName (1..10 | % { "Node$_"})$path = (Join-Path ($env:PSModulePath -split ';')[1] 'JeaCapabilities')foreach ($session in ...Read now
Unlock full access