r/PowerShell • • Dec 04 '25

Scripting Help

Hello everyone. I am trying to create a script that creates new ad users by using a csv file. I am struggling with the display name variable. I am setting display name has a variable. I have $DisplayName = “($user.’FIRST NAME’) + ($user.’LAST NAME’)”. Can someone help me figure out why it’s not working?

2 Upvotes

23 comments sorted by

View all comments

Show parent comment

-5

u/Dirty_Panda715 Dec 04 '25

Sorry I am a complete beginner at this. Also trying to figure out how to add a picture of it.

10

u/SpecManADV Dec 04 '25

No one wants to see screenshots of code.

9

u/QuarterBall Dec 04 '25

Don't add pictures of code - add the actual code text by editing your post.

5

u/BlackV Dec 04 '25

Sub rules ask you to not post images