Yes, you can easily do this via PowerShell or the Graph API. If you want an example, you need to tell us which property specifically you are looking to change and sample values.
The M365 admin portal and the EAC allow you to perform batch operations: