This is a fairly old and ugly vbs script, and
it only works for one OU in the domain, but it should get the job done. You’ll
need to modify strPathToContainer and strDomain. Option Explicit Dim strPathToContainer, strDomain Dim oUser, oUserContainer strPathToContainer =
"OU=Student" strDomain = ",DC=evangel,DC=edu" Set oUserContainer =
GetObject("LDAP://" & strPathToContainer & strDomain) oUserContainer.Filter =
Array("User") For Each oUser In oUserContainer oUser.PutEx 1,
"profilePath", vbNullString oUser.SetInfo() Next Set oUserContainer = nothing MsgBox "Done" From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Harding, Devon How can I remove the logon.bat from all my user (2000+)
accounts at one time in my domain? I’ve switch to GPO for the logon
scripts. Windows Systems Engineer Southern Wine & Spirits
- BSG 954-602-2469 __________________________________ |
- [ActiveDir] remove logon script? Harding, Devon
- RE: [ActiveDir] remove logon script? Brian Desmond
- RE: [ActiveDir] remove logon script? Ayers, Diane
- RE: [ActiveDir] remove logon script? Crawford, Scott
- RE: [ActiveDir] remove logon script? Medeiros, Jose
- RE: [ActiveDir] remove logon script? Harding, Devon
- RE: [ActiveDir] remove logon script? Harding, Devon
- RE: [ActiveDir] remove logon script? Cace, Andrew
- RE: [ActiveDir] remove logon script? Harding, Devon
- RE: [ActiveDir] remove logon script? Brian Desmond
- RE: [ActiveDir] remove logon script? Harding, Devon
- RE: [ActiveDir] remove logon script? Harding, Devon