AD.sh/ResetPwdTo.sh

4 lines
118 B
Bash

#!/bin/bash
password=H3campus@2023
samba-tool user setpassword $1 --must-change-at-next-login --newpassword=$password