Examples/Resources/ScheduledTask/12-DeleteABuiltInTask.ps1

<#
    .EXAMPLE
    This example deletes the built-in scheduled task called
    'CreateExplorerShellUnelevatedTask'.
#>

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -ModuleName ComputerManagementDsc

    Node $NodeName
    {
        ScheduledTask DeleteCreateExplorerShellUnelevatedTask
        {
            TaskName            = 'CreateExplorerShellUnelevatedTask'
            TaskPath            = '\'
            Ensure              = 'Absent'
        }
    }
}