Greetings Powershell Gurus,
Here is my rookie noob question for the day. I'm trying to work with a here string. I want to pull some user information with the get-user commandlet and plug some of that data into a txt file. Here is what I was thinking, but it isn't working.
$User = get-user | select-object FirstName, LastName, UserPrincipalName
$body = @"
Your username is "$user.firstname"."$user.lastname".
Your email address is: "$UserPrincipalName".
How do I plug in the information I collected with the get-user commandlet?
Am I even close?