Location: List Archives

List Archives

This forum is an archive of all posts to our mailing list over the past few years.  The forum is set read only therefore to contribute you will need to join our list community.  See more info about this here.

List Archives

Subject: RE: [ActiveDir] OT: adding additional attribute to user creation script
Prev Next
You are not authorized to post a reply.

AuthorMessages
ASteeleUser is Offline

Posts:12

09/08/2008 3:44 PM  
Hi John,
If I were you, now that you have the accounts, would look into ADModify.Net. It enables you to select a user, or group of users and make specific or variable based changes to attributes for those users/computers/groups/objects in the directory. I've used it to do exactly what you are asking.

http://www.codeplex.com/admodify/Release/ProjectReleases.aspx?ReleaseId=6065 to be exact.

/aaron

Aaron Steele
PointBridge | Consultant
M: 773.580.8099
EM/IM: asteele@pointbridge.com<mailto:asteele@pointbridge.com>
Do you have Office Communicator? Federate<http://technet.microsoft.com/en-us/magazine/cc137801.aspx> with PointBridge and Securely Instant Message<sip:asteele@pointbridge.com> or Call Me<tel:asteele@pointbridge.com>.

From: ActiveDir-owner@mail.activedir.org [mailto:ActiveDir-owner@mail.activedir.org] On Behalf Of John Christie
Sent: Wednesday, August 20, 2008 11:44 AM
To: activedir
Subject: [ActiveDir] OT: adding additional attribute to user creation script

Hi

Thanks to Brandon and Co, I managed to use the following script to automate the creation of various mailbox enabled user accounts:

************************************************************************
foreach($user in (import-csv user1.csv))
{
$mypassword = convertto-securestring $User.Password -asplaintext -force
New-Mailbox -name $user.Name -sAMAccountName $user.sAMAccountName -UserPrincipalName $user.UPN -database "EXC01\SCCCS\SCCCSDatabase" -Password $MyPassword -OrganizationalUnit "test.local/SCC" -ResetPasswordOnNextLogon
}

*************************************************************************

I now need to do the following:

1) I need to disable the 'Automatically update e-mail addresses based on email address policy' option found on the E-Mail Addresses tab for all users which are created. From looking on the net I need to do "Get-Mailbox -OrganizationalUnit "Name of OU" | Set-Mailbox -EmailAddressPolicyEnabled $False but where would I place this in the script?

2) I need to add a Proxy SMTP Address to all of the users accounts created in the CSV. I have the email addresses in the CSV file but I noticed that the New-Mailbox cmdlet doesn't give me the option to set this. How do I do this?

3) I need all the users to be a member of a security group....

How do I achieve my goal?

Thanks!

You are not authorized to post a reply.
Forums >ActiveDir Mail List Archive >List Archives > RE: [ActiveDir] OT: adding additional attribute to user creation script



ActiveForums 3.7
AdventNet Banner
Friends

Friends

Namescape
Members

Members

MembershipMembership:
Latest New UserLatest:rwrabinowitz
New TodayNew Today:1
New YesterdayNew Yesterday:1
User CountOverall:4273

People OnlinePeople Online:
VisitorsVisitors:263
MembersMembers:0
TotalTotal:263

Online NowOnline Now:

Ads

Copyright 2008 ActiveDir.org
Terms Of Use