I am trying to create a simple app that will prompt the user to input a string (will be computer name) and set a pre-existing folder on the computer as shared, give it a name, and set its permissions. It does not have to have any sort of echo function but would be nice.

Example:

Prompt entry is abcdefg

it will set C:\Program Files\Folder as shared \\computer\share_abcdefg$

remove "everyone" from permissions and add "systems"

I dont even know where to begin as I could not find anything to do with setting shares in my searches, only local security

Thanks to anyone that can help!