Re: Need script to delete list of AD accounts
If the separate script works to your satisfaction, I'd say leave well enough
alone. If you wanted to do it from the account deletion script, you would
need to be using an account that had sufficient rights on all servers where
home folders might be located to un-share them (if shared) and then delete.
Sorry, but I don't have the code, and no need for a bulk delete script
anyway.
/Al
"D.P. Roberts" <DProberts@pbride.com> wrote in message
news:eIgMcndCIHA.1208@TK2MSFTNGP05.phx.gbl...
> Yes. I have a separate script to delete home directories but if you know
> of a solution that does both I'm all ears.
>
> Thanks.
>
> "Al Dunbar" <AlanDrub@hotmail.com.nospaam> wrote in message
> news:%23Ia3%23fECIHA.4836@TK2MSFTNGP06.phx.gbl...
>> Would you be at all concerned about any home folders that these accounts
>> might have had, like, should they be deleted as well?
>>
>> /Al
>>
>> "D.P. Roberts" <DProberts@pbride.com> wrote in message
>> news:ua9XoN2BIHA.4176@TK2MSFTNGP06.phx.gbl...
>>> That is exactly what I was looking for - thanks!
>>>
>>> "Pegasus (MVP)" <I.can@fly.com> wrote in message
>>> news:eY8wEcyBIHA.4880@TK2MSFTNGP03.phx.gbl...
>>>>
>>>> "D.P. Roberts" <DProberts@pbride.com> wrote in message
>>>> news:e49Y1UtBIHA.2004@TK2MSFTNGP06.phx.gbl...
>>>>>I have a text file of several hundred usernames that need to be deleted
>>>>>from Active Directory. These users are scattered among several OUs, but
>>>>>they are all located in the same domain. Is there a way in vbs I can
>>>>>delete these accounts? If not, are there any 3rd party applications
>>>>>that can do this?
>>>>>
>>>>> Thanks!
>>>>>
>>>>
>>>> Would the command
>>>>
>>>> net user DRoberts /domain /delete
>>>>
>>>> do it for you?
>>>>
>>>
>>>
>>
>>
>
>
|