Starting a Windows service in an interactive session

后端 未结 5 2064
时光说笑
时光说笑 2020-12-05 08:42

A colleague has a batch script program which needs to to run on a Windows Server in console mode, so that it has access to a Windows interactive session. The server is reboo

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 09:09

    Have you tried having your script run as a Windows service, but allowing it to interact with the desktop?

    Specifically:

    1. Go to the service properties page
    2. Click on the "Log On" tab
    3. Select "Local System account"
    4. Check "Allow service to interact with desktop"

提交回复
热议问题