PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms..win.server.scripting > Need script to delete list of AD accounts
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Need script to delete list of AD accounts

Réponse
 
LinkBack Outils de la discussion
Vieux 04/10/2007, 23h23   #1
D.P. Roberts
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Need script to delete list of AD accounts

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!


  Réponse avec citation
Vieux 05/10/2007, 09h09   #2
Pegasus \(MVP\)
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need script to delete list of AD accounts


"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?


  Réponse avec citation
Vieux 05/10/2007, 16h21   #3
D.P. Roberts
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need script to delete list of AD accounts

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?
>



  Réponse avec citation
Vieux 06/10/2007, 19h37   #4
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need script to delete list of AD accounts

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?
>>

>
>



  Réponse avec citation
Vieux 08/10/2007, 19h34   #5
D.P. Roberts
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Need script to delete list of AD accounts

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?
>>>

>>
>>

>
>



  Réponse avec citation
Vieux 08/10/2007, 21h16   #6
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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?
>>>>
>>>
>>>

>>
>>

>
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h54.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16625 seconds with 14 queries