1

Please how to get Scheduled tasks and how to enable them from remote server using powershell

1

1 Answer 1

1

You can use the Task Scheduler Scripting Objects:

$ComputerName = 'remotemachine.domain.tld'
$TaskName     = 'Name of disabled task'

$TaskScheduler = New-Object -ComObject Schedule.Service
$TaskScheduler.Connect($ComputerName)

$ScheduledTask = TaskScheduler.GetFolder('\').GetTask($TaskName)
$ScheduledTask.Enabled = $True
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.