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

Need to run Icacls command on multiple servers

$
0
0

Hi

I have a text file with the list of servers and it is called servers.txt and I want to run the below command on all the drives on all the servers in that text file. 

icacls folder1 /T /Grant "domain\user1:F"

Can you please give me a sample Powershell script to do it

thanks



Viewing all articles
Browse latest Browse all 15028

Trending Articles



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