Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell setting NTFS rights and security groups.

$
0
0

Hi All.

I have been working a few hours now trying to make the following script that would work like this:

You type in a path for a folder on the network.

It would read the name of the folder to a variable.Also make a variable of a certain part of the path. (sitecode)

Then make 2 security groups from said variables. Ie. Sitecode_FS_Foldername_R and _W

Then set the _R group for Read permissions and the _w For Write permissions.

But when i use the Set-ACL command line. it always makes Special permissions instead of the normal easy to view rights.

How to solve this?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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