We need disable some user accounts. I know we can open SAM and deactivate user accounts, but there are hundreds of them and it takes too long. My boss said it can be done with 'usermod' and asked me to write a script to do it. However, I checked the man page of usermod and I don't think it can do it.
Does anybody know how to disable/deactivate user accounts with command line?
Thanks in advance.
Does anybody know how to disable/deactivate user accounts with command line?
Thanks in advance.