How to create bat file for automount samba share

Go to Windows Client Machine
Open Notepad and paste below parameter and save this file in  filename.bat extension

net use z:  \\192.168.0.100\sharename passwordhere /USER:shahzad


Now set the bat file in startup for automount

Run == Type here:  shell:startup   (save file in this location )