Solved

Setting NTFS permission using a script

Posted on 2003-11-04
3
179 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
bypass UAC - always notifiy 4 73
Windows Network & Server security audit tools or script ? 2 110
Is CCleaner a virus?  Do you use CCleaner? 18 397
Botnet detection help me please 21 134
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…
Our Group Policy work started with Small Business Server in 2000. Microsoft gave us an excellent OU and GPO model in subsequent SBS editions that utilized WMI filters, OU linking, and VBS scripts. These are some of experiences plus our spending a lo…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

820 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