Another interesting question we have a stock take coming the end of this week and i was wondering if its possible to maybe lock Epicor ie as we have a night shift we need to stop them logging onto Epicor after 3:15 am there is no one on site to make this happen so i was hoping to schedule this to run inside Epicor or using windows Task Scheduler to maybe do this.
I was looking at services maybe if it can be done that way
I’ve previously used DMT to just disable users and logged into the Admin Console to end any current session, during an upgrade weekend, but it did seem quite drastic, I’ll be interested to hear what others had done.
It also occurred to me just in time to not disable everyone and left myself and a couple of admins off the DMT import… not to sure how to re-enable users if no one can login!
There are a number of posts here about using PowerShell and DMT. We use Windows Scheduler to run a PowerShell script that runs a DMT on an interval - so it can be done. You could disable only those night shift users with one event and then re-enable them later.
The other way that most people use is in the Admin console. You can drop sessions and set the Appserver to ‘locked’ to prevent new logins. It’s not quite the same as the DMT, but I suspect even with the DMT that you’d have to forcibly drop their sessions. I’ve never disabled a currently logged in user to know exactly what the behavior is.