Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


automated adding users

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,26397
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> automated adding users
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 automated adding users - 9/27/2005 4:24:57 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
Hi,

Ik am currently busy with a script that reads a excel sheet that comes from a database which contains userinfo to be imported in active directory.

But not all users must get an account only people that have a Y in the access row
Now i can create cases etc in my script, but the people administering the database also want users who do not longer needs access to be disabled in active directory and any updates to names etc. should be done all from that export they give to me.

This is my current script just to create users, but how do all that with one script or is this impossible?

Thanks in advance


      



 
 
Post #: 1
 
 RE: automated adding users - 9/27/2005 5:12:26 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Bezerk,

If i am reading your case:

"[..] users who do not longer needs access to be disabled in active directory and any updates to names etc. should be done all from that export they give to me [..]"

Do you who should be disabled? Do you know who should be disallowed access upfront? If both are to answered yes, then IMO i don't see an issue, as the users are altered and the Access level is known, then you can just go ahead with the import...

Snipah

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to Bezerk)
 
 
Post #: 2
 
 RE: automated adding users - 9/27/2005 7:36:13 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
yes

but how do i write this down in my script.

Also a lot of name changes are taking place so all records who are active need to be updated every night.

So basicly it comes done to this

If in the excel sheet in the column access is set to Y there needs to be a check if the user is created in AD, or else the name etc needs to be updated.

If in the excel sheet in the column access is set to N there needs to be a check if the user i created in AD, if so then be disabled of if the user is not created in active directory it can skip it.

Also no groups are specified only roles, with some cases i made i determines the OU and group membership

This all needs to go in to my script, only i am getting some errors with the loops.

I will post my updated script tomorrow when i am back at work.

The excel sheet contains almost 45.000 entries.

I have experience with automatically creating users but not in an automated process like this.

Regards,

Rob

(in reply to Snipah)
 
 
Post #: 3
 
 RE: automated adding users - 9/27/2005 7:56:50 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
I reckon this will not be too hard for you, as you already know the majority of what you are trying to achieve...

We will work on If statements and checks throughout the script...

_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to Bezerk)
 
 
Post #: 4
 
 RE: automated adding users - 9/27/2005 5:48:48 PM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
This is what i have so far, it checks if the user exists if not then creates it.

It still needs al lot of polishing, and i have to get exchange back in.



      


(in reply to Snipah)
 
 
Post #: 5
 
 RE: automated adding users - 9/27/2005 9:24:05 PM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
I am almost there.

Users are being created, exchange mailboxes are created etc.

But the first if doesn't work as i wanted it to work.

After i created the users and ran the script again, i goes through the first if and wants to create the users again.
Must be logical error, but i can't find it yet.

This is the code so far.

Any help is appreciated.

Regards,

Rob





      

(in reply to Bezerk)
 
 
Post #: 6
 
 RE: automated adding users - 9/29/2005 1:12:32 AM   
  Bezerk

 

Posts: 22
Score: 0
Joined: 6/20/2005
From: Netherlands
Status: offline
script is ready problem solved.

(in reply to Bezerk)
 
 
Post #: 7
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> automated adding users Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts