I've written/plagiarized a simple KiXtart script to map 3 network drives during logon which works if run manually so I know the script is OK. I have then put %WINDIR ...
A technician-grade script that wrestles with deprecated tools, requires prep steps, then runs an exhaustive cleanup.