I have made some changes, I have looked at that Spreadsheet file it is creating and it looks good. There are occassionally blanks like on the home drive field if they don't have a home drive. This hadn't caused a problem before.
I am making it through the first loop on SUB ModifyAcct, and then...
I am writing a script that will enumerate members of Group1 and put their requested AD properties into a spreadsheet. The script will then bind to each user from that spreadsheet and make the requested modifications.
I am having problems with making some of the modifications.
Problems:
1. It...
Ok I got it to work... here is what I've done.
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set objNewPort = objWMIService.Get _
("Win32_TCPIPPrinterPort").SpawnInstance_
objNewPort.Name =...
I am wanting to create a script or a batch file that I can post on a intranet site that I can direct users to for printer installs.
We like to have the printer installed as a local printer, with a tcp/ip port (this resolves both by the IP address or the name of the printer). Here is the code I...
What I am trying to occomplish is I have a script that generagtes a list of users that are tied to a specific global group. From that list I want to go through all the users and remove them from any Distribution Lists.
The group type is always Distributions list or 8
The Group Scope is...
I have about 400 Contact cards I need to create. I am running into an error when creating the mailNickname. I want it to be a phone number however I get the following error.
Line: 40
Char: 4
Error: Unspecified error
Code: 80004005
Source: (null)
It will work when I do...
I am trying to add a GUI to run a few scripts from. I have decided to use HTA. I am not very familiar with HTA, and I'm getting better as VBScript. Here is the HTA code I have so far...
<head>
<title>Employee Separations</title>
<HTA:APPLICATION
APPLICATIONNAME="Employee Separations"...
Thanks for the simplified answer. I am curious then how this piece is working....
' Add to Group
If strougroup = False Then
Set objgroup = GetObject("LDAP://" & Strougroup)
objGroup.PutEx ADS_PROPERTY_APPEND, "member", Array(strdn)
objGroup.SetInfo
End If
Thanks again!
Ok I'm pretty new at this, I do not see the problem?
If "CN=PROXY_USERS,OU=Groups,OU=KBS,DC=Domain,DC=com" = True Then
1) Bind to the Group
2) Remove UserX from group
End If
Thats exactly what I'm wanting it to do.
Let me see if I can explain it a little better...
There are three scripts I have wrote to occomplish what I am trying to acheive. Over all I am trying to list information about the members of a specific group (We'll call it XYZ) and then modify some attributes of each user account that is tied...
Strougroup and StrOUProxy are referenced to two groups.
What I am trying to accomplish now is from that list of users in group 1 if the script finds they are in Strougroup do nothing, if not add them to strougroup. If the script finds them in StrOUProxy remove them from that group, if its not...
Ok I got that script to work.
Here is what I did...
Enumeration Groups a user is a memberof
Option Explicit
on error resume next
Dim objGroup, objuser, objExcel, iRow, strUser, iCol
dim strExcelPath, objApp, strGroupName
strExcelPath = "\\Server\share\EmpSepScript\Work_Log.xls"
set...
Join(objUser.proxyAddresses)
That worked!! Now I just need some assistance getting it to cycle through all users in the group and list all the groups they are members of.
Thanks for the help so far!!
I am trying to pull out a some attributes from a user's Active Directory account that is a member of a specific group and place it into a spreadsheet.
I cannot get it to list the SMTP addresses and the groups. I also cannot get it to loop through all users.
Here is the script.
Option...
Is it possible using VBScript to modify the CN, Name, and Distinguished name for a list of users in Active Directory.
I am trying to write a script to use when we separate employees. The standard now is to put the date they left infront of their name in active directory. I can get the display...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.