Using PowerShell, I am looking for a little help to remove certain built in domain accounts from a folder under the users Home folder.

I have already written code to remove inheritance, but I can't seem to figure out how to remove certain built-in Domain accounts.

The home folder and a private folder are created with the script then I would like to remove Domain\Users and Domain\Domain Users from the folder permissions.

  • Try solution from stackoverflow.com/questions/29018582/… – batistuta09 Nov 12 '19 at 20:14
  • Yea, that code is not working. I have tried it. The OP was on the point, but the answer offers a solution that does not work, and the OP posted the final code block which does not do what I am trying to do. But it was close. – htm11h Nov 12 '19 at 21:16
  • just FYI, before you ask me for the error on someone else's code, here it is: SetSecurityDescriptor, does not exist. – htm11h Nov 12 '19 at 21:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.