O'Reilly logo

Learn PowerShell Toolmaking in a Month of Lunches by Don Jones and Jeffrey Hicks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

27.4. Registering the endpoint

This is the second step in creating a custom endpoint, and it reads in the session configuration file that we just created. It then registers that configuration with the WinRM service, officially putting the endpoint into action. We’ll run this command:

Register-PSSessionConfiguration -Path C:\NetTechEndpoint.pssc `
                                -Name NetTechs `
                                -ShowSecurityDescriptorUI `
                                -AccessMode Remote `
                                -RunAsCredential Administrator

A few things happen when we run this. First, as shown in figure 27.2, we’re prompted for the password of the Run As credential that we specified. This password will be securely embedded within the endpoint’s configuration, and that account will be used to execute all commands within the endpoint. Note that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required