Locking Epicor for stock take out of hours

Hi All

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

open to all ideas.

Cheers
D

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!

1 Like

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.

1 Like

I think you could do a BPM (Method Directive) on SessionMod.Login with a condition for time/date and a condition to always allow security managers.

But yeah, don’t lock yourself out…

I have a BPM on that method currently for a different reason.

It does seem to be deprecated, so be warned…

1 Like