Tests/Integration/MSFT_xServiceResource_edit.config.ps1

Configuration MSFT_xServiceResource_Edit_Config {
    param
    (
        $ServiceName,
        $ServicePath,
        $ServiceDisplayName,
        $ServiceDescription,
        $ServiceDependsOn
    )

    Import-DscResource -ModuleName xPSDesiredStateConfiguration

    node localhost {
        xService EditService {
            Name            = $ServiceName
            Ensure          = 'Present'
            Path            = $ServicePath
            StartupType     = 'Manual'
            BuiltInAccount  = 'LocalService'
            DesktopInteract = $false
            State           = 'Stopped'
            DisplayName     = $ServiceDisplayName
            Description     = $ServiceDescription
            Dependencies    = $ServiceDependsOn
        }
    }
}