@Marcin Dąbski Apologies for delay in response and all the inconvenience caused because of the issue.
From a licensing perspective, the use rights for installation and use of the Windows Operating System (OS) if governed by the language within the terms that apply to the software. So in the context of Windows Desktop OS (Retail), you follow the language in the End User License Agreement that is presented during the installation. That can be found here. In terms of Windows Desktop OS acquired through a Volume License Agreement, you follow the language from the Commercial Licensing Terms here (based on agreement type).
That said, if you want to use a Windows Desktop OS to analyze files without any user interaction, the customer would look to license with the M365 E3 Unattended License (SL). This was specifically created for situations where automated process will require the use of the Windows Desktop OS where no user interaction is present. The license assignment and use rights are documented in the Commercial Licensing Terms which I placed below for your convenience and highlighted the specifics. You will also find the following Licensing Brief helpful: Microsoft 365 Unattended License Overview.
Commercial Licensing Terms (microsoft.com)
Microsoft 365 - Unattended License
“Robotic Process Automation”, otherwise known as “RPA” or “bots” means an application, or any set of applications used to capture data and manipulate applications to perform repetitive tasks. Bots operate upon any UI element of Windows 10 within an OSE and/or operates upon any Office application in any OSE.
“Unattended Bot” – Any bot that does not strictly conform to the definition of “Attended Bot” shall be considered an “Unattended Bot.”
“Attended Bot” - An Attended Bot assists a person to execute automation on the person’s local and/or remote workstations. It operates concurrently with the person on the same workstation/s to accomplish repetitive tasks and is triggered by explicit actions of that person.
Assignment and Use Rights
• Customer may assign a Microsoft 365 A3/E3 - Unattended License to an Unattended bot running on either of the following:
o Hardware dedicated to Customer’s use (subject to the Outsourcing Software Management Clause).
o A virtual machine on Azure (including Windows Virtual Desktop on Azure).
• There is no Qualifying OS requirement for the Microsoft 365 A3/E3 suite.
• Each Microsoft 365 A3/E3 - Unattended License allows the use of the M365 A3/E3 suite in only a single unique physical or virtual OSE for Robotic Process Automation.
• Each Microsoft 365 A3/E3 – Unattended License is allowed a single unique instance of Microsoft 365 Apps for enterprise.
• License reassignment for bots follow the same rules for users and devices as if the bot is a user. (See License Assignment and Reassignment)
• Unattended Bots may not create or replicate activities or workflows on behalf of an unlicensed user or device. (See Multiplexing)
• Microsoft reserves the right to restrict or disable Microsoft API calls with reasonable notice, due to unreasonable amount of bandwidth, adversely impacting the stability of Microsoft API’s, or adversely affecting the behavior of other apps.
If you have any further questions on your inquiry, please don’t hesitate to reply to this response and let me know.
Hope it helps!!!
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.