I created a local user, that I addd to the local admin group. So outside of
the local admin account, I've also got another account in the local admin
group. Lets call it localA.

My question is once the pc is added to the domain, and a person logs in with
a domain account, I want to be able to remove the account called localA.

How do I script that out? I was thinking of putting a script in the default
users startup, that will look for my FQDM and if it detects it, then it will
remove the localA account, and delete itself.

I just need to know how I can delete that localA account.... the rest I
think I can handle

Thanks

RE: Disable local account by ucthakur-NOSPAM

ucthakur-NOSPAM
Mon Mar 13 14:38:26 CST 2006

Visit following Microsoft Technet script center web page and you'll find what
you're looking for (and many more :)

http://www.microsoft.com/technet/scriptcenter/scripts/ds/local/users/default.mspx

These two Links on above page will answer your question:
Delete a Local User Account
Disable a Local User Account

Regards,
Umesh
-------
"Old programmers never die. They just terminate and stay resident."



"Jason" wrote:

> I created a local user, that I addd to the local admin group. So outside of
> the local admin account, I've also got another account in the local admin
> group. Lets call it localA.
>
> My question is once the pc is added to the domain, and a person logs in with
> a domain account, I want to be able to remove the account called localA.
>
> How do I script that out? I was thinking of putting a script in the default
> users startup, that will look for my FQDM and if it detects it, then it will
> remove the localA account, and delete itself.
>
> I just need to know how I can delete that localA account.... the rest I
> think I can handle
>
> Thanks
>
>
>

Re: Disable local account by Jason

Jason
Mon Mar 13 15:07:41 CST 2006

Thanks, thats exactly what I was looking for.


"Umesh Thakur" <ucthakur-NOSPAM@hotmail.NOSPAM.com> wrote in message
news:3CB1FEFD-8A05-46FD-9CA6-E2842865BC02@microsoft.com...
> Visit following Microsoft Technet script center web page and you'll find
> what
> you're looking for (and many more :)
>
> http://www.microsoft.com/technet/scriptcenter/scripts/ds/local/users/default.mspx
>
> These two Links on above page will answer your question:
> Delete a Local User Account
> Disable a Local User Account
>
> Regards,
> Umesh
> -------
> "Old programmers never die. They just terminate and stay resident."
>
>
>
> "Jason" wrote:
>
>> I created a local user, that I addd to the local admin group. So outside
>> of
>> the local admin account, I've also got another account in the local admin
>> group. Lets call it localA.
>>
>> My question is once the pc is added to the domain, and a person logs in
>> with
>> a domain account, I want to be able to remove the account called localA.
>>
>> How do I script that out? I was thinking of putting a script in the
>> default
>> users startup, that will look for my FQDM and if it detects it, then it
>> will
>> remove the localA account, and delete itself.
>>
>> I just need to know how I can delete that localA account.... the rest I
>> think I can handle
>>
>> Thanks
>>
>>
>>