Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Browse other questions tagged .