title: How to edit the credentials for custom scheduled jobs using powershell script
body: <p>I have multiple scheduled jobs running in server. All i want is to change the credentials for all scheduled jobs using powershell.</p>
  
  <p>The below is used to list the scheduled jobs in the machine. Now how can i change the credentials for all these jobs. How to use the <code>Set-ScheduledJob</code> command ?</p>
  
  <pre><code># PowerShell script to get scheduled tasks from local computer
  $schedule = New-Object -ComObject Schedule.Service
  $schedule.Connect()
  $tasks = $schedule.GetFolder(".").GetTasks(0)
  $tasks | Format-Table Name
  </code></pre>