none
Script to check agents and restart them if not running on multiple servers RRS feed

All replies

  • Please post code correctly using the provided code posting tool.

    What is your question? What errors are you seeing? You have to be clear when asking questions in a technical forum.


    \_(ツ)_/

    Wednesday, March 7, 2018 8:58 PM
  • Hi,

    sorry. I just reorganized the the question. Hope is more undertandable now. thanks

    Saturday, March 10, 2018 9:39 AM
  • It is not possible to understand your question.  What is "agt"?

    What is the problem?  Post any full errors. 

    What is "$A" supposed to do?


    \_(ツ)_/

    Saturday, March 10, 2018 9:45 AM
  • Sorry but none of that makes any sense. Perhaps you should post in a forum in you native language.

    Also the code you have posted is not in any way sensible or possible.  You cannot pipe a string to Invoke-Command.  The result of Select-String is a collection of "MatchInfo" objects.


    \_(ツ)_/

    Saturday, March 10, 2018 10:13 AM
  • ok. than you very much and sorry for my bad English.

    Do you know me to assume that I'm not a English native speaker?

    • Edited by dKuk1 Saturday, March 10, 2018 3:45 PM
    Saturday, March 10, 2018 10:40 AM
  • The code is not possible in your opinion. For me is working. What an arrogance! This is my first and last post in this forum. sorry
    Saturday, March 10, 2018 10:55 AM
  • If the code is working then what is your question?

    \_(ツ)_/

    Saturday, March 10, 2018 5:49 PM