• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 756
  • Last Modified:

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?
0
jloomans
Asked:
jloomans
1 Solution
 
BSonPoshCommented:
$passwordA = "string1" + "string2"
$passwordb = $passwordA.ToUpper()

FYI Powershell Zone: http://www.experts-exchange.com/Programming/Languages/Scripting/MSH-Monad/
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now