Hi Alexandre,
Did you try using Group Policy? Does your machine join any domain? If so, you may want to check the GPO settings on DC. Anyways, if yours is workgroup machine, you can open local group policy editor. There is a GPO setting called "scripts(logon/logoff)"
under "User configuration" -> Windows Settings and you can add your scripts there.
Thanks,
Yuan