Forum Discussion
AB21805
Jun 19, 2023Bronze Contributor
Stop a specific user account logging into a device at specific times
We want a controlled assessment account to be locked down on some devices so that users cant log into it outside of assessment time is this possible?
3 Replies
Sort By
- Reza_AmeriSilver ContributorYou just want to prevent login?
One approach is to use Task Schedule and create a task to start two PowerShell commands, one to disable the user and the other one to enable the user.
Will that address your issue?- AB21805Bronze ContributorWhat would this look like? The devices are cloud only intune managed devices
- Reza_AmeriSilver ContributorYou may run PowerShell in the Intune, have a look at:
https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension
Then you may run command to Schedule task, have a look at:
https://learn.microsoft.com/en-us/powershell/module/scheduledtasks/new-scheduledtaskaction