10/23/2023 4:27 AM | |
Joined: 1/28/2016 Last visit: 9/4/2025 Posts: 456 Rating:
|
Hi, I have a WinCC test environment in a virtual machine hosted by my company IT. Since the IT makes Windows updates and other patches at night, I created some task scheduler task with CCStartStop.exe to shutdown the WinCC project at evening and a second task to start it at morning. I have 1 windows user who is always logged in and under this account WinCC is running and the account is also admin. When I start the autostart task in task scheduler manually, it works (return code 0). When I am not actively working when the task is started (but the user is logged in because I only disconnect the session so that WinCC keeps running and we can access it via WebNavigator from other machines), task scheduler says it action completed, but with return code 2147942401. Is there something that WinCC needs an user actively working on the PC and not only as "disonnected user"? I tried all setting from this post Batch File From Scheduled Task Returns Code 2147942401 | Delft Stack
Do you have some other ideas what could create the return value or how to create the autostart via task scheduler? |
If this Information really helps, you could use the Rate function |
|
10/31/2023 7:15 AM | |
Joined: 8/3/2009 Last visit: 9/12/2025 Posts: 16409 Rating:
|
Hello Alex.P If you work with WinCC not in Service Mode there is needed a logged in user and a not locked station (whats happening if you disconnect) So I think RDP is the reason in this case. If you would work with VNC on this system then the user would be logged in the whole time. There were always problems with RDP in the past WinCC Versions... I would go with Servicemode and RDP or without Servicemode and VNC (Some information about Remote access: LINK) Bye Murof |
If this Information really helps, you could use the Rate function |
|
This contribution was helpful to
1 thankful Users |
10/31/2023 8:00 AM | |
Joined: 1/28/2016 Last visit: 9/4/2025 Posts: 456 Rating:
|
Hi Murof, when I close RDP, I am still logged in and PC is not locked. WinCC Runtime keeps running and can be accessed from other PCs via WebNavigator. hmm, I maybe need to test Service Mode, .... |
If this Information really helps, you could use the Rate function |
|
Follow us on