Link to home
Start Free TrialLog in
Avatar of jloomans
jloomansFlag for United States of America

asked on

Powershell code to combine to AD attribute strings

In the past I've used the following VBscript code to combine two Active Directory objects into one string.  

      PasswordA = Left(oUser.Lastname,3) & Right=(oUser.adminDisplayName,5)
      PasswordB = Ucase(PasswordA)

I need to write this same code in Powershell and place it in a CSV file.  Recommendations on the most efficient method?
ASKER CERTIFIED SOLUTION
Avatar of BSonPosh
BSonPosh
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial