Re: Automate service restart

2016-07-25 Thread Rob Flores
I use a powershell script set to run from Task scheduler. Should look
something like this

Invoke-Command -command {restart-service BMC*AC*} -ComputerName 

I have also used the following to determine how long it takes the server to
restart. Write output to a text file.

Measure-Command -Expression {Invoke-Command -command {restart-service
BMC*AC*} -ComputerName }

Regards,
Rob Flores

On Mon, Jul 25, 2016 at 9:26 AM, Su Kaur  wrote:

> Can you please send sample batch file?
>
> Thanks!
> Kaur
>
>
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Automate service restart

2016-07-25 Thread Kevin Begosh
I do not have the file on hand but you can google it and find what you are
looking for

https://www.youtube.com/watch?v=5hAwkMaCGwE


above is an example of how to do a simple script, then just modify it to
what you want.

Kevin

On Mon, Jul 25, 2016 at 9:26 AM, Su Kaur  wrote:

> Can you please send sample batch file?
>
> Thanks!
> Kaur
>
>
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>



-- 
Kevin Begosh

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Automate service restart

2016-07-25 Thread Su Kaur
Can you please send sample batch file?

Thanks!
Kaur

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"


Re: Automate service restart

2016-07-25 Thread Kevin Begosh
you can write a batch file to restart the services and then have say a
windows task scheduler run it if you are on windows server.  I have done
that before.

Kevin

On Mon, Jul 25, 2016 at 8:22 AM, Su Kaur  wrote:

> Hello All,
>
> Can we automate remedy service restart including email engine?
>
> Thanks!
> Kaur
>
>
> ___
> UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
> "Where the Answers Are, and have been for 20 years"
>



-- 
Kevin Begosh

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"