Quick one!

Author
Discussion

neil_cardiff

Original Poster:

17,113 posts

270 months

Wednesday 25th September 2002
quotequote all
Having just killed my companies complete Active Directory permission structure (s'not my fault - it crashed half way through) I have two queries if anyone can help?

1. Does anyone know of an app that prints off a complete directory structure
2. When changing AD permissions, does it delete and then recreate the permission - hence giving the problem that I have in that all the existing permission have been removed?

Thanks,

Yours soon to be fired.

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
On the first one can you not just dir/s and pipe it to a text file?

Matt.

bigtone

1,211 posts

290 months

Wednesday 25th September 2002
quotequote all
Been trying to do the same thing myself, and print all files in a directory.

Can you post the syntax for the text file output?

Cheers,
Tony

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
dir/s *.* >> c:listing.txt

This will give you a list of all files in all subdirectories output to a text file.

There may be another dir swtich that allows you only to list directory structures, I'll have a look.

Matt.

>> Edited by plotloss on Wednesday 25th September 12:36

bigtone

1,211 posts

290 months

Wednesday 25th September 2002
quotequote all
Fantastic stuff - thanks Matt!

I keep telling the managers I look at PH for work purposes!!

Cheers, Tony

neil_cardiff

Original Poster:

17,113 posts

270 months

Wednesday 25th September 2002
quotequote all
Thats a cool tip, but not quite what I needed,

I needed to 'visually' see all the directories (like you would in explorer' so that I can then review the security.

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
To get a listing of directories only, the command is:

dir/s/b/ad >> c:listing.txt

That will just be a list of directories.

Matt.

>> Edited by plotloss on Wednesday 25th September 12:47

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
Neil,

Collapse the tree fully (only one entry) in explorer and then hit the * key on the numeric keypad, this will open up every tree branch.

Is that any good?

Matt.

neil_cardiff

Original Poster:

17,113 posts

270 months

Wednesday 25th September 2002
quotequote all
It would be on a local machine - but on NAS with 100+ Gb data, it has very quickly filled my screen up. Then I still need to print it off (we are an architects and have a huge A0 priunter for drawings so I will just hijack that)

bigtone

1,211 posts

290 months

Wednesday 25th September 2002
quotequote all
How big a directory structure are you looking at Neil - print screen and paste into some sort of graphics package, or even into word, and print from there?

I'll take a look at tucows...

Tony

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
Hmmn bugger, I'm all out of options then without resorting to vbScript.

Matt.

neil_cardiff

Original Poster:

17,113 posts

270 months

Wednesday 25th September 2002
quotequote all
quote:

Neil,

Collapse the tree fully (only one entry) in explorer and then hit the * key on the numeric keypad, this will open up every tree branch.

Is that any good?

Matt.



I have just tried it, and the text file is scarily taking a while to create...nearly a 1Mb so far


>> Edited by neil_cardiff on Wednesday 25th September 12:54

CarZee

13,382 posts

273 months

Wednesday 25th September 2002
quotequote all
why can't you just restore the permissions from tape:

rough procedure would be to XXXXXX the entire XXXXX structure (or portion affected) restoring XXXX (XXX, XXXXXXX, whatever), but don't XXXXXX.. then use something like XXXXX with the /XX switch to copy the restored XXXXXX over XXXXX..

but this is all assuming an XXXXX based dirctory structure.. if your XXX runs from somehting like XXX it's a different story as all the permissions will be kept in a XXXXX as an XXXXX only store XXX for XX and X as XXXs..



>> Edited by CarZee on Wednesday 25th September 13:11

neil_cardiff

Original Poster:

17,113 posts

270 months

Wednesday 25th September 2002
quotequote all
To reapply the AD permissions across the NAS is not really a problem, only take 15mins or so, but to restore from tape (we have a DLT1 at present - upgrading to LTO soon) would take 15 mins just get to the first object.

Would be a good idea if it totally went tits up.

The NAS is a W2S Server - albiet a cut down version.

bigtone

1,211 posts

290 months

Wednesday 25th September 2002
quotequote all
Found a bit of kit that you can download an 'evaluation' copy of at:

www.jam-software.com/treesize.shtml

Lists one of it's main features as being able to "Print detailed reports which show your directory structure including lots of information"

Any good?

Tony

CarZee

13,382 posts

273 months

Wednesday 25th September 2002
quotequote all
if you just XXXXX all the XXX of all the Xs on a XXXX, do :

for XXXXXX do XXXX %a

or for just dXX XXXX from root of XXXX do:

for /f XX in (XXXXXXXXX) do cacls %a

and pipe it to a text file with a > XXXXXXX



>> Edited by CarZee on Wednesday 25th September 13:09

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
That'll be £780 please for CarZee's and my time!



Matt.

CarZee

13,382 posts

273 months

Wednesday 25th September 2002
quotequote all
Bugger - didn't know I was working for reduced rates.. gonna go back and edit out some critical info

plotloss

67,280 posts

276 months

Wednesday 25th September 2002
quotequote all
quote:

Bugger - didn't know I was working for reduced rates.. gonna go back and edit out some critical info





Matt.

neil_cardiff

Original Poster:

17,113 posts

270 months

Wednesday 25th September 2002
quotequote all
and it's only wednesday