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?
Reza_Ameri
Jun 19, 2023Silver Contributor
You 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?
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?
- AB21805Jun 20, 2023Bronze ContributorWhat would this look like? The devices are cloud only intune managed devices
- Reza_AmeriJun 20, 2023Silver 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