Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

powershell help to stop an automated task

Avatar of Jerry Seinfield
Jerry Seinfield asked on
Active DirectoryPowershellWindows 10AzureWindows Server 2012
14 Comments2 Solutions38 ViewsLast Modified:
Hello Experts,

I have an scheduled task that runs daily on every single domain controller under a service account that by mistake their password expired.

We have enabled the condition that password never expires for this service account, and since we had to reset the password, we must now perform  following tasks:

1. Stop the automated task called MonitoringX on each DC
2. Update the scheduled task with the new password.per DC
3. Start the automated task

Can someone please provide me with a PS to perform all of these tasks for all domain controllers on my forest?

Thank you in advance
Avatar of Kev Kelly
Kev KellyFlag of United Kingdom of Great Britain and Northern Ireland imageMicrosoft Infrastructure

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 2 Answers and 14 Comments.
See Answers