#36673 - 2003-02-19 08:01 PM
Permissions for a folder
|
cmarti
Hey THIS is FUN
Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
|
Is there a way to pull permissions from a folder using wsh or vbscripting somehow? I already know about cacls, xcacls, and dumpsec. Neither of them give me what I'm trying to accomplish..
Thanks in advance..
|
|
Top
|
|
|
|
#36674 - 2003-02-19 08:08 PM
Re: Permissions for a folder
|
Howard Bullock
KiX Supporter
   
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
I can dump them with Perl. Would a standalone EXE serve your need? Not sure if I can write it within your desired timeframe though.
|
|
Top
|
|
|
|
#36676 - 2003-02-19 08:11 PM
Re: Permissions for a folder
|
cmarti
Hey THIS is FUN
Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
|
Thanks for the quick reply. I'd actually like to know how to do it through kix by using a getobject, if that's possible..
|
|
Top
|
|
|
|
#36677 - 2003-02-19 08:14 PM
Re: Permissions for a folder
|
cmarti
Hey THIS is FUN
Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
|
We have a share on one of our servers, inside of this share is a lot of directories that are owned by users. I'd like to create a report with the directory owner, which is actually a user group that always has -security at the end of it. I would like to: 1 get the owners of the directories in a file, 2 parse through it with kix finding the -security group for each folder 3 and write it to a separate file
I can do 2, and 3 but not 1....
I've already did a search on the board... [ 19. February 2003, 20:15: Message edited by: cmarti ]
|
|
Top
|
|
|
|
#36679 - 2003-02-19 08:42 PM
Re: Permissions for a folder
|
cmarti
Hey THIS is FUN
Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
|
Here's what I get when I run it as a .vbs script. code:
D:\test.vbs(1, 1) Microsoft VBScript compilation error: Invalid character
Here's what I get when I run as a kix script. code:
ERROR : unexpected command! Script: D:\test2.SCR Line : 6
|
|
Top
|
|
|
|
#36681 - 2003-02-19 08:49 PM
Re: Permissions for a folder
|
cmarti
Hey THIS is FUN
Registered: 2001-02-26
Posts: 297
Loc: Little Rock, AR
|
ok...thanks....
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 764 anonymous users online.
|
|
|