我想从Active Directory中获取用户信息,但是AD中的信息不是我想要的,我需要对它进行如下分类。
如何编写vbs代码以实现这一目标,任何人都可以提供帮助?
Array1 = Array("PC Sales", "Server Sales", "Switches Sales")
Array2 = Array("PC Support", improv"Server Support", "Switches Support")
Array3 = Array("Building Maintenance", "Cleaning", "Equipment Maintenance", "Reception")
depart_ad = Array(objRecordset.Fields("department").Value & "")
If some users "depart_ad" in Array1, Then
department = "Sales Deaprtment"
If some users "depart_ad" in Array2, Then
department = "Support Deaprtment"
If some users "depart_ad" in Array3, Then
department = "Admin Deaprtment"