• Home
  • About
  • The Cabin

sameie.com / sofagrisene.com

Stuff I look for myself

Tag: taskscheduler


Restarting a service with Task Scheduler

November 28, 2017

Tips and Trix, Tools, Windows

No Comments

vincent


Some times you need to scheduler a restart of services on servers or computers, and I used to do this via a batch job, that I called from Task Scheduler, but..

I found a much easier way of doing this,  just create a new task, and add the Actions like bellow.

NET as the program, and START/STOP “SERVICENAME” as the argument

and voila, there it is 🙂


serverservicetaskschedulertipstrixwindows

Recent Posts

  • Get Users based on LastLogOnTimeStamp x number of days
  • Add Azure CentOs server to Domain
  • How can I see what OS version my Azure VM is running?
  • Get system uptime
  • Restarting a service with Task Scheduler

Recent Comments

  • Automatically roll over the Kerberos decryption key Azure AD Connect SSO – Joachim Løe on Create #HASHED password file for PowerShell use

Archives

  • December 2019
  • April 2018
  • February 2018
  • December 2017
  • November 2017
  • October 2017

Categories

  • Active Directory
  • Azure
  • CMD (Command prompt)
  • Exchange
  • Office365
  • Powershell
  • Security
  • Server
  • Tips and Trix
  • Tools
  • Virtual Machine
  • Windows

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © sameie.com / sofagrisene.com 2023

© sameie.com / sofagrisene.com