Start Stopped Automatic Services. Does Not work on 2021.1.29.12

BatchPatch Forums Home Forums BatchPatch Support Forum Start Stopped Automatic Services. Does Not work on 2021.1.29.12

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #12752
    NGM
    Participant

    Start Stopped Automatic Services. Does Not work on 2021.1.29.12 for me
    If I use this command as remote command as an alternative it doesn’t work either:
    WMIC SERVICE where (state=’stopped’ and startmode=’auto’) CALL startservice

    I go back to 2020.4.25.16.49 Version, works perfectly every time
    Works fine with “Start Stopped Automatic Services”.
    2020.4.25.16.49
    Same Command saved in the system
    Works fine too
    WMIC SERVICE where (state=’stopped’ and startmode=’auto’) CALL startservice

    This is for all services.. IF i have 7 Services Stopped v2020 Works v2021 does not start any,

    v2020 Will start all services on any server, V2021 doesn doe work at all on any. I have tried different versions of PSXEXEC too.

    2020.4.25.16.49 Which Works
    Sat-09:34:21> Get stopped automatic services: OK: All automatic services are started
    Sat-09:34:20> Get stopped automatic services: Attempting to retrieve services info…
    Sat-09:33:54> Remote Command (logged output): Exit Code: 0 (SUCCESS)
    Sat-09:33:51> Remote Command (logged output): Executing \\\\SVRxxx -r BatchPatchExeSvc -h WMIC SERVICE where (state=’stopped’ AND startmode=’auto’) CALL startservice
    Sat-09:33:51> Remote Command (logged output): Establishing connection…
    Sat-09:33:51> Remote Command (logged output): Queued…
    Sat-09:33:44> Get stopped automatic services: 1 stopped automatic service(s):
    xxServicexx (Stopped)

    2021 That doesn’t work
    Sat-09:37:32> Get stopped automatic services: 1 stopped automatic service(s):
    XXXServicexx (Stopped)
    Sat-09:37:31> Get stopped automatic services: Attempting to retrieve services info…
    Sat-09:37:22> Remote Command (logged output): Exit Code: 0 (SUCCESS)
    Sat-09:37:19> Remote Command (logged output): Executing \\SVRxxx -r BatchPatchExeSvc-37321-SVR6 -h -i WMIC SERVICE where (state=’stopped’ AND startmode=’auto’) CALL startservice
    Sat-09:37:19> Remote Command (logged output): Establishing connection…
    Sat-09:37:19> Remote Command (logged output): Queued…
    Sat-09:37:13> Get stopped automatic services: 1 stopped automatic service(s):
    XXXServicexx (Stopped)

    ********************************************************************************************
    Just to add to this, I tested on another Site, Test domain Lab, different domain, different servers etc, Exactly the same thing…..

    What is a pain is that I cannot open the bps file as it says it is a new / or been upgraded so had to start a new file using the old version.

    #12753
    doug
    Moderator

    Please look at ‘Tools > Settings > Remote Execution > Remote Execution Context’

    Try the following ‘Remote Execution Context’ settings for ‘Remote process/command’ and ‘Remote process/command (logged output)’

    SYSTEM
    SYSTEM + interactive
    Elevated token
    Elevated token + interactive

    Do any of the 4 options work?

    #12754
    NGM
    Participant

    Hi, thanks for Prompt Reply, this seems to be my finding

    ‘Remote process/command’
    SYSTEM > No
    SYSTEM + interactive > No
    Elevated token > No
    Elevated token + interactive > NO

    Remote process/command (logged output)
    SYSTEM > Yes
    SYSTEM + interactive > Yes
    Elevated token > Yes
    Elevated token + interactive > No

    Thanks

    #12755
    doug
    Moderator

    The command runs under “Remote process/command (logged output)” not “Remote process/command”, so that’s expected/good. I just wasn’t certain if you were using that command for every try, so I wanted to cover all possibilities just to be safe. I would suggest leaving “Remote process/command (logged output)” set to ‘Elevated token’, and you should be good to go.

    Thanks.

    #12756
    NGM
    Participant

    Ok great, changed and working as expected.

    Thanks for your help and fast response. 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.