Autorizzazioni Cartelle Condivise da DOS

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Alex@1983
Posts: 1
Joined: 20 Jul 2014 07:20

Autorizzazioni Cartelle Condivise da DOS

#1 Post by Alex@1983 » 20 Jul 2014 07:25

The original post is quoted - this is taken from Google Translate:

Hello everyone,
I ask you to help finalize a batch file that would automatically share network folders, I'll explain:

in windows server 2003 R2 I wrote this batch to share the test folder I created:

net share "test" = "M:\test"

cacls "M:\test" /G everyone /E /T

what I want to achieve is a shared folder permission with "Full Control" for all users.

The problem is that the operationalized is successful and the "Security" tab of the shared folder is allowed full control for everyone, but within the tab "sharing", click on "Permissions" for "Everyone" is flagged only the box "reading."

I would need that the operator at the time of the shared folder, impostasse already full control for everyone within the tab "Permissions" folder. Otherwise you can not copy files and remove all 'inside of the folder.

Someone can give me some suggestions?

Thanks a lot in advance!


Ciao a tutti,
vi chiedo aiuto per finalizzare un file batch che dovrebbe condividere automaticamente delle cartelle di rete,mi spiego meglio:

in ambiente windows server 2003 R2 ho scritto questo batch per condividere la cartella di prova che ho creato:

net share "prova"= "M:\prova"

cacls "M:\prova" /G everyone /E /T

quello che intendo ottenere è una cartella condivisa con autorizzazione "Controllo Completo" per tutti gli utenti.

Il problema è che l'operaziona va a buon fine e nella scheda "protezione" della cartella condivisa è consentito il controllo completo per everyone, ma all'interno della scheda "condivisione",cliccando su "Autorizzazioni", per "Everyone" è flaggata solo la casella "lettura".

Io avrei bisogno che l'automatismo, al momento della condivisione della cartella, impostasse già il controllo completo per everyone all'interno della scheda "autorizzazioni" della cartella. Altrimenti non sarà possibile copiare e prelevare files all' interno della cartella.

Qualcuno sa darmi qualche suggerimento ?

Grazie mille in anticipo!!!

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Autorizzazioni Cartelle Condivise da DOS

#2 Post by foxidrive » 20 Jul 2014 08:56

Just commenting that this site is primarily English.

ShadowThief
Expert
Posts: 1167
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Autorizzazioni Cartelle Condivise da DOS

#3 Post by ShadowThief » 20 Jul 2014 14:40

But on the other hand, I'd like to commend you for explaining your problem better than most of the other first-time posters.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: Autorizzazioni Cartelle Condivise da DOS

#4 Post by foxidrive » 20 Jul 2014 20:13

Does this work? It seems to be correct for Windows 8.1

Code: Select all

net share "test"="M:\test" /GRANT:everyone,FULL

Post Reply