These are the details of command lines I have saved from some old .BAT files that I used on Windows XP for many years and that will indicate some of the options available to you.
C:\WINDOWS\system32\NET USE * /DELETE /YES
C:\WINDOWS\system32\NET USE S: /DELETE /YES
C:\WINDOWS\system32\NET USE T: /DELETE /YES
C:\WINDOWS\system32\NET CONFIG server /HIDDEN:NO
IF NOT EXIST R:\ C:\WINDOWS\system32\NET USE R: \\machine name\drive name /user:local machine name\username password /PERSISTENT:NO
You will also find helpful sited on the web like:
https://www.lifewire.com/windows-xp-command-prompt-commands-2618119
https://commandwindows.com/batch.htm
Alan Smedley