unixman_again Posted July 2, 2019 Posted July 2, 2019 Excellent tool which Moodle users might find useful. https://moosh-online.com/ If you get timeouts trying to delete users using the web interface, this tool will overcome that problem. It's a bit of a pain to get working on Windows. Here is the bat file that I've been using @echo OFF setlocal set moodle_home=c:\inetpub\moodleroot echo Moodle base directory %moodle_home% :PROMPT SET /P AREYOUSURE=Continue (Y/[N])? IF /I "%AREYOUSURE%" NEQ "Y" GOTO END "c:\Program Files (x86)\PHP\php-7.2.8-nts-Win32-VC15-x86\php.exe" c:\moosh\moosh.php -p %moodle_home% -n -v %1 %2 %3 %4 %5 :END endlocal @echo ON Sample use: moosh.bat user-delete user1 user2 user3 Obviously, if there are more than 4 users to delete, you'll need to add %6, %7, etc. The moodle_home env var is necessary as we have three moodles on the same server; I can edit the bat file as necessary. If there are any suggestions for making the bat file more betterer please chip in!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now