This technique involves saving and restoring the Shares key. It works. See: Q125996
One of the best methods of capturing the shares and permissions is DumpACL . There are various
report formats. If you have tried to get such information out of Microsoft’s
ServerManager, you know that you can’t even do print screens from Microsoft’s
gui interface.