Why does the "Take Screenshot" activity work flawlessly in the Attended mode but fails when run Unattended?
The "Take Screenshot" activity works as expected in the Attended mode but flaws in the Unattended mode, such that the captured screenshot returns a null value. One of the scenario where this occurs is when the Server manager popup starts up each time during the log-on. Disabling the same would help us resolve this issue. Here are the steps required to achieve the same:
- Launch the Server Manager.
- Click on the “Manage” button in the upper right corner of the screen and select “Server Manager Properties”.
- Check the option “Do not start Server Manager automatically at logon” and click on the “OK” button.
Now, the Server Manager would not start automatically upon each log-on, eventually alleviating the issue we are encountering with our Unattended automation.
There are also some other alternate ways to achieve this. Some of these are illustrated in the article - Prevent Server Manager when logging in to Windows Server 2016 .