Hello All,
This is my first time posting and i hope this is the right place. We are in the process of a migration and was trying to figure out how to create about 200 CIFS shares using a script. So far, i believe i need to use SSC uility which i have but not fimilar on how to create the script to use with SSC. What kind of script do i need to create? powershell, bat.. If anyone can share what they did, that would be very helpful.
Thanks.
Dear Nestor,
SSC just an executable program so either Windows batch or PowerShell can be used. For example, you can try something like this with Batch to create 200 shares:
for /l %%x in (1, 1, 200) do ssc -u username -p password ip_of_node cifs-share add -e share%%x my_fs \share%%x
Regards,
Dang Luong