Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

put commands on one line?

Status
Not open for further replies.

remcovanuitert

Technical User
Apr 3, 2003
28
BE
Is there a way I can put the following commands on one line:

oUser.Put "samAccountName","Jo"
oUser.Put "givenName","Jo"
oUser.Put "sn","Brown"
oUser.Put "userPrincipalName","jo@reskit.com"

I need something like this:
oUser.Put "samAccountName","Jo";oUser.Put "givenName","Jo";oUser.Put "sn","Brown";oUser.Put "userPrincipalName","jo@reskit.com"

What is correct syntax for this? Thanks in advance,
Remco

PS some background information: I need to add 500 users to my Active Directory. If I can have this script on one line, I can easily paste this in the existing list of users (in excel).
 
I know I have seen a script in the past on this forum that could help you. I believe markdmac responded to one that has a script just as your asking that queries an excel file for this information.
 
Hello remcovanuitert,

Continuation :)) may help:
Code:
oUser.Put "samAccountName","Jo" : oUser.Put "givenName","Jo" : oUser.Put "sn","Brown" : oUser.Put "userPrincipalName","jo@reskit.com"
(on one single line)

regards - tsuji
 
I need
What is the business case that force you to write oneliner scripts ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks a lot for your replies! This is helping me a lot.

Regards,
Remco

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top