Posted:
NET USE X: \\SERVER\SHARE /PERSISTENT:NO /USER:SERVER\username password
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##SERVER#SHARE /v LabelFromReg /t REG_SZ /f /d "Sharename"
Look afar and see the end from the beginning