3 replies
by joseangel
The syntax would be:
cacls \\mycomputer\c$\mydirectory /T /E /G everyone:C
Of course, you must be an administrator of the remote computer "mycomputer"
It is important to note that if you are working with non-english windows, you must non-english names (for spanish, use "todos" instead of "everyone").
If you want to work on many computers at the same time, you can combine this command with a "for" command.
To do so:
-Create a plain text file AllPCs.txt with a list of all the PCs in your network (if you use sequential names, excel would be a good help).
-use the command:
for /F %I IN (AllPCs.txt) DO cacls \\%I%\c$\mydirectory /T /E /G everyone:C
This will read your text file and assign each of the names in it to the variable I,and then execute the command cacls to each of them.
by bcoff56215
by bcoff56215
This discussion is closed to new replies.
Trending Windows Forum posts
Sort by Trending