Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Is there a simple cacls cmdlet equivelent?

$
0
0

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




Viewing all articles
Browse latest Browse all 2562

Trending Articles



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