RE: [ActiveDir] Script to find owner of home directory

2006-03-22 Thread joe
ssage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, March 21, 2006 10:55 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script to find owner of home directory This is an interesting topic. I am having loads of issues w/ different applica

RE: [ActiveDir] Script to find owner of home directory

2006-03-22 Thread Steve Rochford
-Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joeSent: 22 March 2006 02:00To: ActiveDir@mail.activedir.orgSubject: RE: [ActiveDir] Script to find owner of home directory This could prove troublesome, I would expect most of t

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread Marcus.Oh
:dsm:cci:mvp marcusoh.blogspot.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of joe Sent: Tuesday, March 21, 2006 8:59 PM To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script to find owner of home directory 1. When using slashes in a query you

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread joe
eSent: Tuesday, March 21, 2006 5:43 AMTo: ActiveDir@mail.activedir.orgSubject: Re: [ActiveDir] Script to find owner of home directory Why dont you ask NTFS instead of AD? Why not you use something like subinacl and query the folders of the owner? Assuming all folders that are valid have proper owne

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread joe
www.joeware.net/win/ad3e.htm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Rochford Sent: Tuesday, March 21, 2006 4:34 AM To: ActiveDir@mail.activedir.org Subject: [ActiveDir] Script to find owner of home directory I know to write a script wh

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread Steve Rochford
MAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Charlie Kaiser Sent: 21 March 2006 14:45 To: ActiveDir@mail.activedir.org Subject: RE: [ActiveDir] Script to find owner of home directory You'll need to escape the backslash characters with a "\5c" (without the quotes). Use this

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread Steve Rochford
ail.activedir.orgSubject: Re: [ActiveDir] Script to find owner of home directory Why dont you ask NTFS instead of AD? Why not you use something like subinacl and query the folders of the owner? Assuming all folders that are valid have proper owners, I guess the invalid folders will have unresolv

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread Douglas W Stelley
Rochford > Sent: Tuesday, March 21, 2006 1:34 AM > To: ActiveDir@mail.activedir.org > Subject: [ActiveDir] Script to find owner of home directory > > I know to write a script which will take a username and find > that user's > home directory but can I do the reverse? What I wan

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread Charlie Kaiser
Systems Engineer Essex Credit / Brickwalk 510 595 5083 ** > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Steve Rochford > Sent: Tuesday, March 21, 2006 1:34 AM > To: ActiveDir@mail.activedir.org > Subject:

RE: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread Charlie Kaiser
lto:[EMAIL PROTECTED] On Behalf Of > Douglas W Stelley > Sent: Tuesday, March 21, 2006 7:08 AM > To: ActiveDir@mail.activedir.org > Subject: RE: [ActiveDir] Script to find owner of home directory > > > Hey, that's pretty good! works nicely! > > I'm trying

Re: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread matheesha weerasinghe
Why dont you ask NTFS instead of AD? Why not you use something like subinacl and query the folders of the owner? Assuming all folders that are valid have proper owners, I guess the invalid folders will have unresolvable SIDs or Administrator as the owner against them.   M@  On 21/03/06, Steve Roch

Re: [ActiveDir] Script to find owner of home directory

2006-03-21 Thread matheesha weerasinghe
Why dont you ask NTFS instead of AD? Why not you use something like subinacl and query the folders of the owner? Assuming all folders that are valid have proper owners, I guess the invalid folders will have unresolvable SIDs or Administrator as the owner against them.   M@  On 21/03/06, Steve Roch

[ActiveDir] Script to find owner of home directory

2006-03-21 Thread Steve Rochford
I know to write a script which will take a username and find that user's home directory but can I do the reverse? What I want to to is clean up the home directories folders - I've got nearly 20,000 home folders but only about 15,000 active accounts so what I want to do is take each folder name and