Solved

Setting NTFS permission using a script

Posted on 2003-11-04
3
178 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
3 Comments
 
LVL 3

Accepted Solution

by:
erikdr earned 100 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
This is a guide to the following problem (not exclusive but here) on Windows: Users need our support and we supporters often use global administrative accounts to do this. Using these accounts safely is a real challenge. Any admin who takes se…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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