Scripts/Test-EventStoreStartupTask.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function Test-EventStoreStartupTask()
{
    [Cmdletbinding()]
    Param(       
        [String] $taskname
    )

    $task= Get-ScheduledTask | Where-Object { $_.TaskName -eq $taskname }
    If ( $task )
    {

        Write-Verbose ":: task with name found"
        return $true;      
    }

    return $false
}
Export-ModuleMember 'Test-EventStoreStartupTask'