Re: Finding Orphaned Home Folders

From: Nathan (n.a.t.h.a.n_at_a.n.t.i.s.p.am)
Date: 07/14/04


Date: Wed, 14 Jul 2004 04:44:00 -0700

Yeah, I could just do a XLS inport from multiple sources,
but I need to check "owner" on the user shares. We have a
lot of users who were migrated from NDS (Novell 4.11). In
many cases the name of the users home folder is not the
same as their logon ID.

We are also talking about a large number of shares and a
larger number of users on a large number of servers. :)
Add to that we want to check user created folders
in "group shares" for orphaned by owner and the problem
gets larger. I need a utility where I can input the path
and it checks each folder's owner to see if the AD user
exists.

I've been doing some digging and found some WSH resources
that have me headed in the right direction. I found a C
source file that does exactly what I need, but once
compiled the customer (I work for the vendor) would call
it a "3rd party utility" and require testing/approval
before use.

I know the programming logic behind it, so now it's just
about learning WSH enough to make something that works by
weeks end. Too bad once it's done I won't be allowed to
post it here without getting a lot of signatures. ;)

>-----Original Message-----
>dump the lanmanserver share keys; dump the users and
associcated home dirs.
>Use aany number of utilities and uind unique entries in
the lanmanserver
>entries... in other words there is a share but not a user
that match's up..
>
>this all assumes homedirs were the same name as the
SamAccountName
>
>"Nathan" <n.a.t.h.a.n@a.n.t.i.s.p.am> wrote in message
>news:2b92b01c4691a$65ca27f0$a601280a@phx.gbl...
>> I'm looking for a way to use "native" (2000/2003 or
>> Resource Kit) tools to locate orphaned folders.
>>
>> Orphaned meaning that the user no longer exists in AD,
but
>> their home folder or any shared folder owned by the user
>> account still exists.
>>
>> In this instance it is important to avoid the use of 3rd
>> party utilities due to a cilent vendor relationship.
>>
>> Thanks for any pointers.
>>
>> Nathan
>
>
>.
>



Relevant Pages

  • Re: Network shares cannot connect
    ... User Name: SERVER$ ... Regarding the shares accessing problem, I suggest you try following steps ... let's focus on the Users Shared Folder first. ... To check this permission, please click the Advanced button, select ...
    (microsoft.public.windows.server.sbs)
  • Re: Firefox lock file?
    ... You may want to just change all ownership of everything in your *home* ... your files via Nautilus is to add the 'Owner' column to your Nautilus ... Research it first, read 'man chown' etc., *and backup your home folder ...
    (Ubuntu)
  • Re: Disconnected Network Drives cant be remapped or removed - Help!
    ... > "Disconnected Network Drive" He does have two other shares that work fine ... I believe these map to a different server ... Instead he gets f mapping to that folder along with every other letter ...
    (microsoft.public.windowsxp.general)
  • Disconnected Network Drives cant be remapped or removed - Help!
    ... "Disconnected Network Drive" He does have two other shares that work fine ... The "disconnected network drive" shares all seem to point to the same folder ... the alphabet after f mapping to that company folder as well. ... share from apps like Autocad. ...
    (microsoft.public.windowsxp.general)
  • Re: Create simple file share on the fly
    ... If you programatically add the 'Everyone' Group to the Folder, ... Descriptors, in WMI script. ... The sample command above would apply the group 'Everyone' to the folder ... The handmade shares show four items under the 'Group or user ...
    (microsoft.public.windowsxp.security_admin)