There are several free tools from Microsoft to help you do this, such as Windows Assessment and Deployment Kit (Windows ADK) and Microsoft Deployment Toolkit (MDT).
To start, install and configure the operating system on a test computer. Step 1: Install and configure the operating system for the image Here are the basic steps of how to include Microsoft 365 Apps when you create and deploy an operating system image. That's because you need your users to activate their Microsoft 365 Apps installations by signing in with their accounts. You just need to make sure you don't activate Microsoft 365 Apps when you create the image. You can include Microsoft 365 Apps as part of an operating system image that you deploy to users in your organization.