Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - How to enumerate folder owners

Reply
 
Old 01-28-2009   #1 (permalink)
Larry


 
 

How to enumerate folder owners

How can I enumerate folder owners? That doesn't appear to be within the realm
of the File System Object.

My System SpecsSystem Spec
Old 01-28-2009   #2 (permalink)
Pegasus \(MVP\)


 
 

Re: How to enumerate folder owners


"Larry" <Larry@xxxxxx> wrote in message
news:2003E7D0-EB77-4A0D-A55F-D2C4AEA29092@xxxxxx
Quote:

> How can I enumerate folder owners? That doesn't appear to be within the
> realm
> of the File System Object.
I don't think you can do this with the File System Object. You probably need
to use WMI - see here:
How Can I Determine the Owner of a File?
http://www.microsoft.com/technet/scr...4/hey1007.mspx


My System SpecsSystem Spec
Old 01-28-2009   #3 (permalink)
Larry


 
 

Re: How to enumerate folder owners

I went poking around in WMI Explorer before my original posting and saw that
I could discover the file ownership but I didn't and still don't see a way to
get FOLDER ownership. Am I missing something or are we on the wrong path?

"Pegasus (MVP)" wrote:
Quote:

>
> "Larry" <Larry@xxxxxx> wrote in message
> news:2003E7D0-EB77-4A0D-A55F-D2C4AEA29092@xxxxxx
Quote:

> > How can I enumerate folder owners? That doesn't appear to be within the
> > realm
> > of the File System Object.
>
> I don't think you can do this with the File System Object. You probably need
> to use WMI - see here:
> How Can I Determine the Owner of a File?
> http://www.microsoft.com/technet/scr...4/hey1007.mspx
>
>
>
My System SpecsSystem Spec
Old 01-28-2009   #4 (permalink)
Pegasus \(MVP\)


 
 

Re: How to enumerate folder owners

If you test the Scripting Guy's code on a folder then you will immediately
see that it works just as well. You've got to be a little inquisitive!


"Larry" <Larry@xxxxxx> wrote in message
news:86DE6897-0FC4-47A5-8D7B-D6722E07CCD4@xxxxxx
Quote:

>I went poking around in WMI Explorer before my original posting and saw
>that
> I could discover the file ownership but I didn't and still don't see a way
> to
> get FOLDER ownership. Am I missing something or are we on the wrong path?
>
> "Pegasus (MVP)" wrote:
>
Quote:

>>
>> "Larry" <Larry@xxxxxx> wrote in message
>> news:2003E7D0-EB77-4A0D-A55F-D2C4AEA29092@xxxxxx
Quote:

>> > How can I enumerate folder owners? That doesn't appear to be within the
>> > realm
>> > of the File System Object.
>>
>> I don't think you can do this with the File System Object. You probably
>> need
>> to use WMI - see here:
>> How Can I Determine the Owner of a File?
>> http://www.microsoft.com/technet/scr...4/hey1007.mspx
>>
>>
>>

My System SpecsSystem Spec
Old 01-28-2009   #5 (permalink)
Larry


 
 

Re: How to enumerate folder owners

Thanks! I took it at face value. I'll try it out.

"Pegasus (MVP)" wrote:
Quote:

> If you test the Scripting Guy's code on a folder then you will immediately
> see that it works just as well. You've got to be a little inquisitive!
>
>
> "Larry" <Larry@xxxxxx> wrote in message
> news:86DE6897-0FC4-47A5-8D7B-D6722E07CCD4@xxxxxx
Quote:

> >I went poking around in WMI Explorer before my original posting and saw
> >that
> > I could discover the file ownership but I didn't and still don't see a way
> > to
> > get FOLDER ownership. Am I missing something or are we on the wrong path?
> >
> > "Pegasus (MVP)" wrote:
> >
Quote:

> >>
> >> "Larry" <Larry@xxxxxx> wrote in message
> >> news:2003E7D0-EB77-4A0D-A55F-D2C4AEA29092@xxxxxx
> >> > How can I enumerate folder owners? That doesn't appear to be within the
> >> > realm
> >> > of the File System Object.
> >>
> >> I don't think you can do this with the File System Object. You probably
> >> need
> >> to use WMI - see here:
> >> How Can I Determine the Owner of a File?
> >> http://www.microsoft.com/technet/scr...4/hey1007.mspx
> >>
> >>
> >>
>
>
>
My System SpecsSystem Spec
Old 02-01-2009   #6 (permalink)
Reventlov


 
 

Re: How to enumerate folder owners

Il giorno Wed, 28 Jan 2009 13:10:06 -0800, =?Utf-8?B?TGFycnk=?=
<Larry@xxxxxx> ha scritto:
Quote:

>How can I enumerate folder owners? That doesn't appear to be within the realm
>of the File System Object.
This lists the permissions on the folders, but I'm not sure if it tells the owner too.
It's a vbs program called ntfs_stuff and it should use xcacls to retrieve informations
about files and folders.
http://www.tech-archive.net/Archive/.../msg00462.html

http://www.eggheadcafe.com/software/...stuff-v10.aspx

--
Giovanni Cenati (Bergamo, Italy)
Write to "Reventlov" at katamail com
http://digilander.libero.it/Cenati (Esempi e programmi in VbScript)
--
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to enumerate classes from a DLL .NET General
using .Net DirectoryEntry to enumerate domains Vista networking & sharing
enumerate registry subkeys VB Script
enumerate shortcut types PowerShell
Enumerate servers in NT4 domain PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46