July 2018
Beginner
552 pages
13h 18m
English
Another great way of not only deploying new configurations, but also ensuring they remain configured as you intended, is Desired State Configuration. We will delve into this in more detail in a later chapter. The following configuration could be used to deploy our samples. You need at least PowerShell 5 to use the JEA DSC resource:
# Deployment with DSCconfiguration JeaEndpointConfiguration{ param ( [string[]]$ComputerName ) Import-DscResource -ModuleName JustEnoughAdministration node $ComputerName { File RoleCapabilities { SourcePath = '\\contoso.com\ReadOnlyShare\JeaCapabilities' DestinationPath = (Join-Path ($env:PSModulePath -split ';')[1] 'JeaCapabilities') Ensure = 'Present' Recurse = $true Force = $true ...Read now
Unlock full access