Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to grant access rights to a domain user in a batch file like this:

net share sharename=c:\dir /GRANT:\domain\username,FULL

But it fails. I can only grant rights to local users. Is there a way to grant rights to domain users with net share? If not, how can I do so in a batch file?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.