I presume this is the User share setting in the network setup. Why not manually set it & use regsnap to find out the registry changes created by the setting. Then apply these changes with your your longon script. I suspect this might already be set though.

Why not install the remote registry service locally on a test machine & use an install tracker (cntl5?? is one I think) to register all the changes. Then you can apply them in your script.
_________________________
Jack