Please, could anyone share an example PowerShell command syntax or script snip on how to automate creating CIFS shares for CDOT? We need to migrate 2008 user's shares to new FAS, but the problem we have more than a 1000 old users that still have hidden user shares and must be preserved, (dont' ask, its a requirement :)). Data migration is done via robocopy and we have .csv with users name folder path on netapp and appropriate usershare$. It would nice to automate the process when the script reads the input file line by line and creates a corresponding share$ with everyone access permission for it. I would greatly appreciate for the example.
Thanks a lot in advance.
PS. Yes, we know about netapp home share feature, but right now its a matter of exact data migration, same way as it was, so need those shares on netapp.
PS2. If someone has a script based on "cifs share create -vserver" command and an example of how to apply to SVM, this would work too. Thanks!