so, what you want to do is:
- unshare the folder
- move the data to another drive
- share the new folder

so, you probably are going to need to use:
net share to unshare the folder and a tool like robocopy to move the data and net share again to share the new folder.

the looping through all the folders can be done with batch or kixtart script:
Code:

$dir = dir("d:\userData")
while $dir
if $dir<>"." and $dir<>".."
$dir ?
;place your unshare move and share code here
endif
$dir = dir()
loop