Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Calling User names from a TXT file

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Calling User names from a TXT file
  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 >>
 Calling User names from a TXT file - 5/25/2006 2:28:33 AM   
  BDIntern

 

Posts: 34
Score: 0
Joined: 5/19/2006
Status: offline
I'm writing a script that will move inactive users from one ou to another, which I have, and its working. But now I need to change the wWWHomePage attribute of every user to the current date.

What I have is a txt file with a different user name on every line. I want to call each user (without typing in the cn) and change the wWWHomePage.  Microsoft's page said this:

Set objUser = GetObject _
  ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
objUser.Put "wWWHomePage", http://www.fabrikam.com




But in ^ that script you have to type the cn every time...

Please help :/

_____________________________

"640k ought to be enough for anybody"
-Bill Gates
 
 
Post #: 1
 
 RE: Calling User names from a TXT file - 5/25/2006 3:56:36 AM   
  DiGiTAL.SkReAM


Posts: 1183
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
This is just air code, so be careful...

      



_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to BDIntern)
 
 
Post #: 2
 
 
 
  

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 >> Calling User names from a TXT file 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