Enabling/disabling account from Command line
I am looking into ways to try and reduce the load for this stupid controlled assessment coursework thing where they can have nothing apart from word or something like that.
I am trying to set up a way that i can batch file for each class so we can schedule a job to enable/disable the accounts. I am trying to do this via Net user but its a long time since i used it and i think i have the syntax wrong although i am reading it off the microsoft website!
i am trying
net user %username% /domain.local /active:yes obviously substituting %username% with the kids username
am i just being really stupid or is not?