Hello all,
I am working in a little project that involves reading a csv file, query ad against the csv file and set the the right values in AD.
Through the code I have captured the following values
$AD_USER.sn
$InputLastName
$InputLastName = Read-Host 'Type the new Last Name:'
$NewLastName = Read-Host 'Are you sure, you want to replace the following lastname "$($AD_USER.sn)" by $($InputLastName) (Y/N)'
So, when I ask the question: 'Are you sure, you want to replace the following lastname "$($AD_USER.sn)" by $($InputLastName) (Y/N)',
So, not sure how to echo the values previously captured on $AD_USER.sn and $InputLastName in the Read-Host statement
Thanks for your help,
$InputNewLastName = Read-Host 'Type the new Last Name:'
$NewLastName = Read-Host 'Are you sure, you want to replace the following lastname "$($AD_USER.sn)" by $($InputNewLastName) (Y/N)'