Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Windows 2000 Server (TECHNET) > Group Policy to Disbale Users
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 18th December 07:49
sav
External User
 
Posts: 1
Default Group Policy to Disbale Users



Is there a way that I can create a group Policy that is linked to an OU
inwhich when I move a user to that OU the policy will automatcially disable
that user? For example, If I have an OU called "Disabled Users" every user I
add to this OU will be disabled.
  Reply With Quote


  sponsored links


2 18th December 07:49
hank arnold
External User
 
Posts: 1
Default Group Policy to Disbale Users



Nice idea.... Hope it can be done.....

Regards,
Hank Arnold
  Reply With Quote
3 19th December 03:54
jorge de almeida pinto [mvp - ds]
External User
 
Posts: 1
Default Group Policy to Disbale Users


not with AD by default...

what you could do is create a batch file and create a scheduled task that
regularly checks for enabled users. When found, it should disable the users

--

Cheers,
(HOPEFULLY THIS INFORMATION HELPS YOU!)

# Jorge de Almeida Pinto # MVP Windows Server - Directory Services

BLOG (WEB-BASED)--> http://blogs.dirteam.com/blogs/jorge/default.aspx
BLOG (RSS-FEEDS)--> http://blogs.dirteam.com/blogs/jorge/rss.aspx
------------------------------------------------------------------------------------------
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test before implementing!
------------------------------------------------------------------------------------------
#################################################
#################################################
------------------------------------------------------------------------------------------
  Reply With Quote
4 21st December 22:56
kurt roggen
External User
 
Posts: 1
Default Group Policy to Disbale Users


Schedule a script on a dc that runs every x time.
It's job: disable all account found in your OU "Disabled Users"

Script could like this:
On Error Resume Next

Const ADS_UF_ACCOUNTDISABLE = 2
Const E_ADS_PROPERTY_NOT_FOUND = &h8000500D

Set objOU = GetObject ("LDAP://ou=Disabled
Users,cn=Users,dc=NA,dc=fabrikam,dc=com")
ObjOU.Filter= Array("user")

For Each objUser in objOU
objUser.Put "userAccountControl", intUAC OR ADS_UF_ACCOUNTDISABLE
objUser.SetInfo
Next

---
Kurt Roggen
http://blogontheweb.com/roggenk
  Reply With Quote
5 21st December 22:57
kurt roggen
External User
 
Posts: 1
Default Group Policy to Disbale Users


Oeps, missed this posting.
Batch could be using dsquery.exe to get users and redirect output as input
for dsmod.exe
dsquery user "params" | dsmod user "params"
--
Kurt Roggen
http://blogontheweb.com/roggenk


"Jorge de Almeida Pinto [MVP - DS]"
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666