JEA configuration

Now we have JEA module installed, and the next step is to prepare the environment to use JEA. This can be done using a script that comes with JEA module. It is located at C:Program FilesWindowsPowerShell
ModulesxJea.2.16.6ExamplesSetupJEA.ps1
.

This script will do the following:

  • Remove all existing endpoints from the computer
  • Configure the DSC Local Configuration Manager (LCM) to apply changes and then check every 30 minutes to make sure the configuration has not been altered
  • Enable the debug mode:
    Configuration SetupJea
{
Import-DscResource -module xjea Node localhost
{
xJeaEndPoint CleanAll
{
Name = 'CleanALL'
CleanAll = $true
}
LocalConfigurationManager
{
RefreshFrequencyMins = 30
ConfigurationMode = "ApplyAndAutoCorrect"
DebugMode = "ForceModuleImport"
#This disables provider caching
}
}
}
SetupJea -OutputPath C:JeaDemo
Set-DscLocalConfigurationManager -Path C:JeaDemo -Verbose
Start-DscConfiguration -Path c:JeaDemo -Wait -Verbose
#EOF
The aforementioned script is displayed in an easy way for readers to understand. When it is used in PowerShell make sure to prevent extra line spaces.

In order to run the script, move to C:Program FilesWindowsPowerShell
ModulesxJea.2.16.6Examples
folder and run .SetupJEA.ps1:

Now we have completed the installation and the initial configuration.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.89.24