Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


NTFS Permission "List Folder Contents"

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,48268
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> NTFS Permission "List Folder Contents"
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 NTFS Permission "List Folder Contents" - 6/13/2007 2:47:35 PM   
  zdarma

 

Posts: 6
Score: 0
Joined: 6/13/2007
Status: offline
I would like to set NTFS permissions on certain folders to "'List Folder Contents". Other than configuring each folder one by one and checking off the right box, I am unable to mass set the permissions via a batch. I have tried using CACLS and XCACLS, but neither of them allows me to set user permissions to "List Folder Contents"

Does anyone have a way to do this ?

Thanks in advance
 
 
Post #: 1
 
 RE: NTFS Permission "List Folder Contents" - 6/13/2007 3:38:12 PM   
  dm_4ever


Posts: 2366
Score: 38
Joined: 6/29/2006
From: Orange County, California
Status: offline
Check out: http://www.jsifaq.com/SF/Tips/Tip.aspx?id=8225

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to zdarma)
 
 
Post #: 2
 
 RE: NTFS Permission "List Folder Contents" - 6/14/2007 1:16:08 AM   
  zdarma

 

Posts: 6
Score: 0
Joined: 6/13/2007
Status: offline
Thanks a lot, it works like a charm.

I just have one problem. I am trying to get the "Allow inheritable permissions ..... to this object" unchecked. I am able to uncheck the box, but if I do, it removes all the permiissions I have set or reset depending on the case. The only way I have been able to get the box unchecked and  keep my permissions is to have  the script do the modifications on two seperate script lines per folder. The first command, sets the permission and when that is done, it unchecks the box.

This is a copy of my script, for what I have done to make it work :

cscript C:\toto\XCACLS.vbs K:\Users\FOLDER /e /p DOMAIN\USER_ACCOUNT:1
cscript C:\toto\XCACLS.vbs K:\Users\FOLDER /i copy /e


This is a copy of my script as I would like it to work.

cscript C:\toto\XCACLS.vbs K:\Users\FOLDER /e /p DOMAIN\USER_ACCOUNT:1 /I COPY

I have tried to put the "/I switch" in different places in my script, but the only way it seems to work is the way I described it above.


Is this normal or am I missing something?

(in reply to dm_4ever)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> NTFS Permission "List Folder Contents" Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts