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

Script to revoke home folder permission

$
0
0

We are in the process of migrating file server to new hardware and need help with revoking permission to Home folders. We want users to manually copy onlymeaningful data from old home drive to new home drive. After 2 weeks, we want to restrict users by giving only read access to their home folders and after that will delete the folder. SO here is what i am looking for;

A script to read user name from input file (notepad or excel) and read the homeDirectory attribute from AD and reset permission for input user and set only to read only. I just want to reset permission for user from full control to read only. All other permission remains intact (Admins - Full control). Can somebody help me with a vbscript?

Sandy.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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