add smb share net command code example
Example: create windows network share from command line
net share sharename=folderpath /grant:username,permissions
sharename: You can assign name to the share you are going to create
username : Login id of the user whom you want to share the folder with
permission: Read, Change or Full