A vbs script or command line script(or a combination) is what I am looking for to accomplish the following:
Needed to take approx. 2000 folders(all in the same path) and convert them to shares of the same name allowing only 1 connection to them. The names of the 2000 folders are identical to the User logon names. The folders happen to be the user's "home folder". ALSO, BOTH share permissions and Security settings have to be set on each one to give Full Control to the particular User AND Domain Admins only.
Background: On one domain controller these 2000 shares exist-all with the proper permissions as stated above. I used Ntbackup to copy them across the network to a second domain controller. Then I used restore of the .bkf file which resulted in the 2000 folders to be created on the second controller(which is what I wanted) BUT they are no longer shares but just plain old folders(with valid data). I now need to make them look exactly as they did on the first controller-as shares with share permissions and NTFS permissions.
Needed to take approx. 2000 folders(all in the same path) and convert them to shares of the same name allowing only 1 connection to them. The names of the 2000 folders are identical to the User logon names. The folders happen to be the user's "home folder". ALSO, BOTH share permissions and Security settings have to be set on each one to give Full Control to the particular User AND Domain Admins only.
Background: On one domain controller these 2000 shares exist-all with the proper permissions as stated above. I used Ntbackup to copy them across the network to a second domain controller. Then I used restore of the .bkf file which resulted in the 2000 folders to be created on the second controller(which is what I wanted) BUT they are no longer shares but just plain old folders(with valid data). I now need to make them look exactly as they did on the first controller-as shares with share permissions and NTFS permissions.