BatchPatch Forums Home › Forums › BatchPatch Support Forum › Start Stopped Automatic Services. Does Not work on 2021.1.29.12
- This topic has 4 replies, 2 voices, and was last updated 3 years, 10 months ago by NGM.
-
AuthorPosts
-
February 20, 2021 at 4:44 am #12752NGMParticipant
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 startserviceI 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 startserviceThis 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.
February 20, 2021 at 11:58 am #12753dougModeratorPlease 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 + interactiveDo any of the 4 options work?
February 20, 2021 at 2:23 pm #12754NGMParticipantHi, thanks for Prompt Reply, this seems to be my finding
‘Remote process/command’
SYSTEM > No
SYSTEM + interactive > No
Elevated token > No
Elevated token + interactive > NORemote process/command (logged output)
SYSTEM > Yes
SYSTEM + interactive > Yes
Elevated token > Yes
Elevated token + interactive > NoThanks
February 20, 2021 at 2:31 pm #12755dougModeratorThe 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.
February 20, 2021 at 2:36 pm #12756NGMParticipantOk great, changed and working as expected.
Thanks for your help and fast response. 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.