Azure AD is not a device management platform and has no ability to apply policy, configuration, or scripts to devices associated with it. You need a management tool to enforce any type of management policy, configuration, or setting on devices.
Login Script on Azure AD

chunhua
1
Reputation point
Hi,
Is it possible that we could enforce a machine to run scripts when it registered to Azure AD?
It looks like Intune provide this function?
Is there any way to have this function without Intune? just want to explore more possible solutions
Thanks.
2 answers
Sort by: Most helpful
-
Jason Sandys 30,881 Reputation points Microsoft Employee
2021-04-20T15:33:30.967+00:00 -
Mario Worwell 11 Reputation points
2021-04-20T16:35:18.747+00:00 Implementing Intune looks like the best option by far. Also, you implement device policies on the machines once they’re fully joined.