I'm having an annoying problem with directory security on Windows Server 2003 Standard Edition SP2. I'm trying to remove the local "Users" security group from a large folder structure of thousands of files and folders. The security group <servername>\Users to be specific.
I tried using CACLS with the command CACLS * /E /T /C /R Users but it sometimes hits strange files that give the error " the data area passed to a system call is too small" and it halts the process and stops waiting at the error. I tried the /C switch but this didn't work because that only continues if it's an access denied error.
I then read that ICACLS is a more advanced version and allows the switch /C which continues on all file errors. Great I thought, so I ran the command ICACLS * /remove Users /T /C which it seems to process fine but it doesn't actually remove the said Users group from the security permissions.
Any ideas/pointers as to what I could be doing wrong?