Creating 2000 users Id only using script (no exchange)

I have received a request to create 200 users\
Here are the details
Purpose: To be used for the ABC load testing (new version) that use AD authentication
Create new NT Domain users: (they can be created through script)
Rules:
- Create 2000 new NT users
- No mailbox should be created/assigned
- No rights should be provided to the users, they should only have possibility to be used for AD authentication
- The users should have sequential names like ABC_LT0000 ==> ABC_LT1999
- The passwords should never expire and not change.
- The passwords should be communicated as a list of user/pwd separately to me: 
- The user can be made part of a different organisationel unit to ease management of them.
This is urgent. please advise

I found this script and i modified it
#csv format needs to be as follows: 
#Alias,Firstname, Lastname,Name,UPN,OUpath,Database,password
#change the name and path of the csv file as required. 
$users = Import-CSV E:\Users\Hpssira\blkusr.csv 
$users| foreach
$Password = -AccountPassword ( ConvertTo-SecureString 'Pass@1234' -AsPlainText -Force) -Enabled $true
new-mailbox -name $_.name -alias $_.alias -FirstName $_.Firstname -LastName $_.Lastname -userPrincipalName  $_.UPN -database $_.Database -OrganizationalUnit $_.OUpath -Password $Password –ResetPasswordOnNextLogon $true
Missing expression after unary operator '-'.
At E:\users\hpssira\tired.ps1:10 char:14
+ $Password = - <<<< AccountPassword ( ConvertTo-SecureString 'Pass@1234' -AsPlainText -Force) -Enabled $true
    + CategoryInfo          : ParserError: (-:String) [], ParseException
    + FullyQualifiedErrorId : MissingExpressionAfterOperator
I am using my Last name First name as my ALias. is that correct or should i change it to samaccountname

Similar Messages

  • How to create multiple users in solaris using script

    hi
    how i can create multiple users (2000 users) using shell script with a common password .
    useradd is creating one user at a time.
    thanks

    I m new to solaris and scripting also.
    how i can write a script for this .

  • Backup SQL Agent Jobs - whats the difference between "create to" and "drop to" using "script job as"?

    Hi,
    This should be straightforward, but being new to SQL Server 2008, can someone advise the difference between "create to" and "drop to" using "script job as"?
    Thanks
    IT Support/Everything

    hello,
    "CREATE TO" create a CREATE statement for the job, e.g. to execute this script on a other server to create the same job there.
    "DROP TO" means you get a script to delete an existing job.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Create the user master records using the Enterprise Portal

    Hello gurus!!
    I'm configuring SRM 7.0 with EP.
    I'm configuring the organizational structure, and steps guide (pdf and Solution Manager ) are:
    1. Go to transaction SU01 and create an ABAP User. (SRMADMIN)
    2. Assign this user the administrator role /SAPSRM/ADMINISTRATOR
    3. As the administrator, creater the organizational plan
    4. Create the remaining organizational unit
    5. Using the Enterprise Portal application, Business Parter:Employee, create the user master records for the departmental managers.
    How I must create the user in Enterprise Portal? What user I have to use to log on in the Enterprise Portal application? Has the user to be integrated in the organzational structure??
    Thanks in advance!!!!
    Best regards.
    Maria.

    Hi,
    You can create users in WebDynpro application. You can also create users in USERS_GEN transaction.
    Regards,
    Masa

  • Creating a user defined control using java Beans

    Hi,
    I want to create a user defined control which is used to draw a line ...
    same as we using in VB as Line control.In java we will create the component using using Beans . I created a code
    which will draw a line in the run time .For tat i extend the class with JPanel,but i cant use the same program in beans....b'coz it simply draws the jpanel when we drag and drop that control in the form....
    so can u give me some ideas to create a control which is used to draw a line .....i am attaching the same which i did .....
    thank u in advance...
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    import javax.swing.event.*;
    public class Line extends JPanel
    BufferedImage image;
    Color color;
    Stroke stroke;
    Point start = new Point();
    Point end = new Point();
    public Line()
    color = Color.blue;
    stroke = new BasicStroke(1f, BasicStroke.CAP_BUTT,
    BasicStroke.JOIN_MITER);
    protected void paintComponent(Graphics g)
    super.paintComponent(g);
    if(image == null)
    initImage();
    g.drawImage(image, 0, 0, this);
    // Draw temp line over image.
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setPaint(Color.red);
    g2.drawLine(start.x, start.y, end.x, end.y);
    public void setTempPoints(Point p1, Point p2) {
    start = p1;
    end = p2;
    repaint();
    public void draw(Point p1, Point p2)
    Graphics2D g2 = image.createGraphics();
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
    RenderingHints.VALUE_ANTIALIAS_ON);
    g2.setPaint(color);
    g2.setStroke(stroke);
    g2.drawLine(p1.x, p1.y, p2.x, p2.y);
    g2.dispose();
    start = end;
    repaint();
    private void clearImage()
    Graphics g = image.getGraphics();
    g.setColor(getBackground());
    g.fillRect(0, 0, image.getWidth(), image.getHeight());
    g.dispose();
    repaint();
    private void initImage()
    int w = getWidth();
    int h = getHeight();
    image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = image.createGraphics();
    g2.setPaint(getBackground());
    g2.fillRect(0,0,w,h);
    g2.dispose();
    public static void main(String[] args)
    Line wbclient = new Line();
    DrawingListener listener = new DrawingListener(wbclient);
    wbclient.addMouseListener(listener);
    wbclient.addMouseMotionListener(listener);
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(wbclient);
    f.setSize(400,400);
    f.setLocation(200,200);
    f.setVisible(true);
    class DrawingListener extends MouseInputAdapter
    Line wbclient;
    Point start;
    Point end;
    final int MIN_DIST = 5;
    public DrawingListener(Line fh)
    this.wbclient = fh;
    public void mousePressed(MouseEvent e)
    start = e.getPoint();
    public void mouseReleased(MouseEvent e)
    end=e.getPoint();
    if(start.distance(end) > MIN_DIST)
    wbclient.draw(start, end);
    public void mouseDragged(MouseEvent e)
    wbclient.setTempPoints(start, e.getPoint());
    }

    Hi Ravi,
    How about something like this:
    IUserMaint user = UMFactory.getUserFactory().newUser("myNewUser");
    user.setFirstName("1st Name");
    user.setLastName("2nd Name");
    user.setEmail("[email protected]");
    user.save();
    user.commit();
    IUserAccount uacc = UMFactory.getUserAccountFactory().newUserAccount("myNewUser", user.getUniqueID());
    uacc.setPassword("initial");
    uacc.setPasswordChangeRequired(false);
    uacc.save();
    uacc.commit();
    Hope this helps.
    Daniel

  • E-recruiting: create internal user failture when using RCF_CREATE_USER

    Hi, experts
        When I create candidate and internal user in E-recuriting using report RCF_CREATE_USER, the system returns me a message: "I::000 Enter at least one number for the business partner" , and so i can't create the user successfully.
        Can anyone show me the solution?
        Thanks very much.
        Best Regards,
        qiuguo

    Hi
    just a thought.....it may not be creating a CP /BP....check your authorization.....hope this helps.....b/r

  • Creating a user in EP using a java standalone application

    Hi,
      I am trying to create a java application to create a user in Enterprise Portal.
      I am getting the following error:
    com.sap.security.api.UMRuntimeException: Cannot lookup ManageConnectionFactory "jdbc/sapep". Possible reasons: 1) The connector in which ManagedConnectionFactory "jdbc/sapep" is defined is not deployed or not started, 2) Cannot deserialize object due to a naming exception.
    ume.db.connection_pool_type=jdbc/sapep
    ume.db.connection_pool.j2ee.xatransactions_used=false
    ume.db.connection_pool.j2ee.is_unicode=true
    ume.db.connection_pool.j2ee.oracle_native_driver_used=false: Cannot lookup ManageConnectionFactory "jdbc/sapep". Possible reasons: 1) The connector in which ManagedConnectionFactory "jdbc/sapep" is defined is not deployed or not started, 2) Cannot deserialize object due to a naming exception.
      Q1. Is it possible to create user from java standalone application.
      Q2. Pls. help to resolve the error or give any sample code if you have
      Thanks in advance.
    Regards,
      Pratik

    Hi Ravi,
    How about something like this:
    IUserMaint user = UMFactory.getUserFactory().newUser("myNewUser");
    user.setFirstName("1st Name");
    user.setLastName("2nd Name");
    user.setEmail("[email protected]");
    user.save();
    user.commit();
    IUserAccount uacc = UMFactory.getUserAccountFactory().newUserAccount("myNewUser", user.getUniqueID());
    uacc.setPassword("initial");
    uacc.setPasswordChangeRequired(false);
    uacc.save();
    uacc.commit();
    Hope this helps.
    Daniel

  • Error when trying to create/edit users in the tree domain from exchange

    The scenario is we have one forest and two different domains in tree domain architecture(Forest : expo.com)(tree : dept.com) with windows 2012R2
    We have deployed exchange 2013 in another server with windows 2012R2 based on expo.com.
    When I try to create new user for dept.com I am getting the below error. but the same is working for expo.com
    error
    Active Directory operation failed on Server2.dept.com. This error is not retriable. Additional information: Access is denied. Active directory response: 00000005: SecErr: DSID-031521E1, problem 4003 (INSUFF_ACCESS_RIGHTS), data

    When I try to create mailbox for the existing user in the dept.com i am getting the below error. but the same is working for expo.com
    error
    Active Directory operation failed on Server2.dept.com. This error is not retriable. Additional information: Insufficient access rights to perform the operation. Active directory response: 00002098: SecErr: DSID-03150BC1, problem
    4003 (INSUFF_ACCESS_RIGHTS), data 0 
    Please help on providing me the details of configuration to do for solving the issue.

    Hi araddy,
    Thank you for your question.
    For user account in dept.com, we should create it on DC in dept.com domain.
    By my understanding, we have install Exchange 2013 in expo.com domain, there are no Exchange that install in dept.com domain. If I misunderstanding, please be free to let me know.
    If that, If that, we should create link mailbox for user in dept.com domain. In the Exchange forest, for each user in the accounts forest that will have a mailbox in the Exchange
    forest, create a mailbox that is associated with an external account by the following link:
    https://technet.microsoft.com/en-us/library/jj673532(v=exchg.150).aspx
    The more details could be referred by the following link:
    https://technet.microsoft.com/en-us/library/aa998031%28v=exchg.150%29.aspx
    If there are any questions regarding this issue, please be free to let me know.
    Best Regard,
    Jim
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Jim Xu
    TechNet Community Support

  • I am using a web hosted email site and I am unable to use the clipboard/cut/paste functions? I already tried to create a user.js file with script but its still not working. What else can I do?

    I have double, triple checked to script and I can't find any errors.
    The only thing I might be unsure of is the actual site that I am listing. I tried https://www.webmail.????.com and I tried https://www.????.com. Is it that its a secure site? HELP

    Did you try to use the keyboard instead (Cmd+V and Cmd+X and Cmd+C)?
    Maybe Shift + Insert works as well on Mac (does work on Windows and Linux).
    *http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard
    *https://addons.mozilla.org/firefox/addon/allowclipboard-helper/ - AllowClipboard Helper

  • Can I create ASP user validated website using existing MD5 passwords from SQL table?

    I'm attempting to build a user authenticated site in Dreamweaver CS5 using an existing USERS table from another site.  The password field in the existing SQL table appears to be MD5 encoded.  How can I MD5 encode the form field (or the SQL query) so that it verifies MD5 to MD5?
    Currently, it's comparing the form's plain text field to the MD5 encrypted password field in SQL.
    I've built a simple login form using the following:
    <form id="form1" name="form1" method="POST" action="<%=MM_LoginAction%>">
        <input name="username" type="text" id="username" accesskey="u" tabindex="1" /><input name="password" type="password" id="password" accesskey="p" tabindex="2" /><input name="submit" type="submit" value="submit" />
        </form>
    With the stock Dreamweaver Log In User Server Behavior as follows:
    <%
    ' *** Validate request to log in to this site.
    MM_LoginAction = Request.ServerVariables("URL")
    If Request.QueryString <> "" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
    MM_valUsername = CStr(Request.Form("username"))
    If MM_valUsername <> "" Then
      Dim MM_fldUserAuthorization
      Dim MM_redirectLoginSuccess
      Dim MM_redirectLoginFailed
      Dim MM_loginSQL
      Dim MM_rsUser
      Dim MM_rsUser_cmd
      MM_fldUserAuthorization = ""
      MM_redirectLoginSuccess = "results.asp"
      MM_redirectLoginFailed = "error.html"
      MM_loginSQL = "SELECT user_name, password"
      If MM_fldUserAuthorization <> "" Then MM_loginSQL = MM_loginSQL & "," & MM_fldUserAuthorization
      MM_loginSQL = MM_loginSQL & " FROM dbo.users WHERE user_name = ? AND password = ?"
      Set MM_rsUser_cmd = Server.CreateObject ("ADODB.Command")
      MM_rsUser_cmd.ActiveConnection = MM_ADSX_STRING
      MM_rsUser_cmd.CommandText = MM_loginSQL
      MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param1", 200, 1, 32, MM_valUsername) ' adVarChar
      MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 32, Request.Form("password")) ' adVarChar
      MM_rsUser_cmd.Prepared = true
      Set MM_rsUser = MM_rsUser_cmd.Execute
      If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
        ' username and password match - this is a valid user
        Session("MM_Username") = MM_valUsername
        If (MM_fldUserAuthorization <> "") Then
          Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
        Else
          Session("MM_UserAuthorization") = ""
        End If
        if CStr(Request.QueryString("accessdenied")) <> "" And false Then
          MM_redirectLoginSuccess = Request.QueryString("accessdenied")
        End If
        MM_rsUser.Close
        Response.Redirect(MM_redirectLoginSuccess)
      End If
      MM_rsUser.Close
      Response.Redirect(MM_redirectLoginFailed)
    End If
    %>
    Please help!

    unfortunately classic asp does not have a built in function for md5. what we used for our legacy sites is a javascript that hashes a string to MD5. here's the code we've used in the past http://pajhome.org.uk/crypt/md5/md5.html
    your asp should have something like this...
    <script language="jscript" src="path_to_js_file/md5.js" runat="server"></script>
    <%
    'hash the password
    Dim md5password       ' md5password variable will hold the hashed text from form variable txtPassword
    md5password = hex_md5(""&Request("txtPassword")&"")
    ' based on the code you posted...
    MM_rsUser_cmd.Parameters.Append MM_rsUser_cmd.CreateParameter("param2", 200, 1, 32, md5password) ' adVarChar
    %>

  • How to create mail user who only send or receive email to local user

    I setup iplanet message server 5.2 SP1 for window 2000. It work right. But I don't know how to setup a mail user which can only send/receive email to/from local email user(user from the same message server). Thanks.

    The easiest way I can think of, would be to isolate these users to a different mail server.
    Once you isolate them, you can isolate that server so that it cannot connect to the external world, but only to your other servers, so local mail would be allowed, but not external mails.
    I can't think of any way to achieve what you're asking for in the same server that allow some users full access.

  • Problem in creating new label in flashbuilder using script

    import  
      mx.controls.*;
    public function init():void{ 
    var Mylabel:Label=new Label; 
    Mylabel.move(10,10);
    Mylabel.text=
    "Welcome"; 
    when i use this code it shows Overrides Object.init issue wats wrong in this?can any one provide me right way?

    I pasted your code into an <fx:Script> block of a new Flex Project in Flash Builder 4 and didn't get any compilation error. If you're getting a compilation error, please post the complete code and the exact wording of the error.
    Gordon Smith
    Adobe Flex SDK Team

  • Create access restriction in designer using script

    Hello,
    I am looking for a way to automate the creation of access restriction within universe.
    I looked in the API universe reference and it seems that there is no entries for such an object
    For information I use Business Objects XIR2 with SP3
    Thanks for any help or answer

    Creation/Modification of Universe Access Restrictions is not part of the Universe Designer SDK, but part of the BusinessObjects Enterprise SDK. 
    It requires sending requests to the CMS using the SDK to get User and UserGroup information.
    For the COM-based version of the Enterprise SDK, the object is known as Overload, and described here:
    [http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/BOE_SDK/boesdk_com_doc/doc/boesdk_com_doc/CrystalEnterpriseOverloadPluginLibrary.html#1351377]
    Sincerely,
    Ted Ueda

  • Need to create Mail User that Only Sends

    is there a way i can set up a user that can only send emails but not receive? the user does not want any emails to come to this address, but needs to send information occasionally to others via this address.
    i guess this would be much like the 'automated' emails sometimes received that say 'do not reply to this sender'
    thanks in advance

    One way to do this would be to just set up a mail account in your favorite email app, and set all the user information as you like (i.e. name, reply-to address, etc.). Then in Server Admin, just put that user's ip in the list of machines that are allowed to relay. No need to even set up a real account on the server for that user.
    MacBook Pro   Mac OS X (10.4.6)  

  • Creating e-mail campaign - only using images - help!

    I'm working on a Mac - I have Creative Suite Design Premium 5.5 - in the past my company has used mailchimp and icontact with sucess, but I'd like to do it myself - I design the segments of the email myself within illustrator/photoshop/indesign and save as pdf, then save-as PNG - using photobucket for an image host - Basically I wanted to know if there's a way to do this thru dreamweaver - thanks for any help you may have! please describe simple step by step instructions if you have an answer - you're awesome!
    Bobby

    thanks - i resposted in the correct area

Maybe you are looking for

  • How can I make a folder in the TV for my home movies

    How can I make a folder in the TV shows for my home movies collection?  I have created a folder in the library in finder and put all the videos in there but they do not appear in itunes. pshultz

  • My root management server goes to grayed state frequently

    Hi All, I have a strange issue with my SCOM 2007 R2 CU4. My management server grayes out frequently and when i check the operations manager console it throws me these two errors. Can anyone give me a solution for this. Note:  The following informatio

  • Recording audio from a published file?

    Hi, I am using Captivate 4 with Windows XP. I am creating a soft skill learning project and what I would like to do is when the users are going through the training, I would like the published Captivate file to capture audio from the user via a micro

  • Background missing when exporting from indesign to pdf

    Sometimes when I export a file from indesign to pdf, my background doesn't show up. The background is just a block of solid colour, or gradient. The background block of colour is usually the full size of the page. I've tried to play around to see wha

  • Custom Tag Attribute not correctly rendered

    Hello, I made a custom tag and I want the engine to parse dynamic scripts and evaluate them. I call the tag like this :     <form:toolbaritem id="icon_cancelar" action="javascript:listingAction('<%= request.getContextPath() %>/logout.do');" icon="<%=