Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script windows server 2008 r2 (folder)

$
0
0

Hi, my name is Paul.

I can not remove the permission of the users of this folder.
what am I doing wrong?

Option explicit
Dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "icacls c:\Coletor /inheritance:r /remove:g *"
WScript.Sleep 50
oShell.Run "icacls c:\Coletor /t /grant:r dmcase\digita:(OI)(CI)F /grant:r SYSTEM:(OI)(CI)F /grant:r dmcase\paulors:(OI)(CI)F"
oShell.Run "c:\Coletor\RMColetor.exe"
 
Wscript.Quit

when I run the script it opens the correct program so but does not exclude the groups that already have permission on the folder.


Paulo Silvano


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>