Required
rmtshare.exe
What to do
Add this line to the [Settings] section of the script
SET SharePermissions=/grant %AccountName%:F /grant administrators:F /grant System:F
Add this line to the [Batch] section of the script (after the "DOS net share..." command if there is one)
DOS rmtshare %servername%\%AccountName%$ %SharePermissions%
Edit variables and permissions according to your needs.