I am making some scripts in Powershell to automate server builds.
I am looking for a simple powershell command that will do the same as this:
echo y|cacls e:\ /T /g everyone:F
although it is not a powershell command it seems to work fine in the ps1 howerver, I would like to see if there is a powershell equivalent
Set-Acl seems very complicated compared this command. Am I stuck with a bunch of lines of code to complete the above action?
Thanks in Advance