Issue With The "Take Screenshot" Activity In Unattended Mode Caused Due To The Server Manager Popup

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:

  1. Launch the Server Manager
  2. Click on the “Manage” button in the upper right corner of the screen and select “Server Manager Properties”
  3. 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 being encountered with the 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 .

1 Like

This is the error in unattended mode. your are correct it’s working fine in attended mode