locked
Creating user in AD using powershell RRS feed

  • Question

  • Hi,

    How to create ad user in opalis using powershell?

    Monday, March 3, 2014 2:04 PM

All replies

  • Hi,

    best will be, you take the "Run .Net Activity" and put your PowerShell Script in there.

    Example Script

    new-aduser $LoginName -GivenName $FirstNameField -Surname $LastnameField -DisplayName $Displayname -UserPrincipalName "$LoginName@domain.com" -ChangePasswordAtLogon $true -AccountPassword (ConvertTo-SecureString –AsPlainText “password1password_1” -Force) -Path "OU=$OU,OU=User,OU=Company,DC=domain,DC=com" -Company $Company -Department $Department -enabled $true -EmployeeNumber $EmployeeNumber -Description $EmployeeNumber -EmailAddress $SMTPAdresse -Division $Division
    


    Seidl Michael | http://www.techguy.at | twitter.com/techguyat | facebook.com/techguyat

    Thursday, May 15, 2014 3:34 PM