Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Setting NTFS permission using a script

Posted on 2003-11-04
3
Medium Priority
?
192 Views
Last Modified: 2013-12-04
Dear All
I want to make a script (VBS)
that changes the NTFS permissions
for a shared folder from the default (EveryOne-FullControl)
to be owned by  two domain users by name (Usere1 , and User2)and the should have Full Control ,and EveryOne should read Only

If you can also help me on how to set a limit on the size of the folder,i'll be really Grateful

Thanx
0
Comment
Question by:emadmome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Accepted Solution

by:
erikdr earned 400 total points
ID: 9685390
Usually I've done all of these with resource kit tools. XACLS does what you need for the NTFS permissions, and can be launched from VBScript. Probably there's also a tool for viewing/modding the folder size.
But there may be native VBScript command for both of them too...

HTH,

<Erik> - The Netherlands
0

Featured Post

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

No security measures warrant 100% as a "silver bullet". The truth is we also cannot assume anything but a defensive and vigilance posture. Adopt no trust by default and reveal in assumption. Only assume anonymity or invisibility in the reverse. Safe…
Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question