I am not sure if I understood your question, but however try to read about Net Use (resource kit command) and Use (Kix command).
I hope this will help.

Thank you.