Is there a way to lock out Remote users when Terminated?

Is there a way to lock out Remote users when Terminated?

a vast majority of our company has gone remote.  We need to be able to Lock them out of their computers upon termination, remotely.  Was try this with a script, but getting false positives.  
                New to ADManager Plus?

                  New to ADSelfService Plus?