Hello team !
I'have a basic issue here, i'am wondering how i can build a path with information issued from simple CSV file which headers are :
hostname,domain
Server1,DomainA
I want to build this path :
$Path = D:\Test_folder
Export-Csv $Path\Services\$server.hostname-Services.csv -notype
Error :
At line:168 char:34
+ $Path\Services\$server.hostname+-Services.csv
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token '\Services\$server.hostname+-Services.csv' in expression or statement.
Your help is really appreciated as i'am getting white hair since serveral hours on googling without any result.