Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. thanks12

    Disable user in AD

    Ok. This is the code I am using. I am not an expert in coding. just using a code available and tweaking as per my requirement. Tried different methods like .accountdisabled = True, but it didn't worked. Hope you can assist me to complete this. 'Script deletes Users from a csv file. 'csv format...
  2. thanks12

    Disable user in AD

    Can someone guide me how to disable the user instead of delete the user Sub DelUser Dim objOU Set objOU = GetObject(strOU) objOU.Delete "User", "cn=" & strUserCN & "" ' instead of delete, I need to disable user Set ObjOU = Nothing strUserCN = "" End Sub

Part and Inventory Search

Back
Top