Re: User Account SID - Map to new user

From: Alaa Abdelhalim [MSFT] (alaa_at_online.microsoft.com)
Date: 06/17/03


Date: Mon, 16 Jun 2003 19:08:02 -0700


There are tools and API functions to do that for domain users. I don't think
there's any such tools (from Microsoft at least) for local users. But I'm
guessing you might find some third party tools that scan the hard drive and
basically modify security descriptors that contain the specified user SID to
include the SID of the new user you specify.

-- 
Alaa Abdelhalim [MSFT]
-----
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send e-mail directly to this alias. This alias is for
newsgroup purposes only.
"dbrennan" <dbrennan@invotion.com> wrote in message
news:090a01c33418$11758600$a501280a@phx.gbl...
> I am looking for a way to remap or repurpose a given user
> SID.
>
> For example:
>
> User1 is a local user on a box.  User 1 has varying
> permissions on drive e:.  User1 is deleted/removed.
>
> Now I have an orphaned sid with permissions all over the
> e: drive, but no user to map it to.  I want to be able to
> re-assign a local user to that SID.
>
> Is this possible?
> With win32?  With WMI?
>
> Thanks!
>
> Dan
> .
>
>


Relevant Pages

  • Re: How do I recognize a machine account?
    ... Use LookupAccountSid to get the SID_NAME_USE that will tell you what kind of SID it is. ... And by "the machine account" I mean the one created for the machine when it joins a domain. ... i.e. on my non-domain machine fruitcakelady I ... can create a local user called fruitcakelady$. ...
    (microsoft.public.platformsdk.security)
  • how the enumerate the groups of a user account SID?
    ... Say I have the SID of a local user. ... How to I enumerate the SIDs of the ... Searching on MSDN did not get me ...
    (microsoft.public.platformsdk.security)
  • how to ensure that the owner of a file is a local administrator?
    ... GetNamedSecurityInfo() with OWNER_SECURITY_INFORMATION on that file) ... with the SID of the builtin administrator's group which I created using ... Even though I am sure that I created a new local user on my box that I ...
    (microsoft.public.platformsdk.security)
  • SID of non-existent user
    ... When a local user is deleted from a system, ... how to clean the ACLs where the SID of this user was added? ...
    (microsoft.public.security)
  • Re: Access is denied to this object
    ... sid wrote: ... I did not any issues with FileMon, but RegMon did find these two calls: ... Isaac Perez Moncho wrote: ... The call to Server.CreateObject failed while checking permissions. ...
    (microsoft.public.scripting.vbscript)