Hello,
I Am trying to assign SIP address to the user through script and parsing thru CSV and facing the error.Can anyone please help
PART1
Import-csv C:\XX\XX.txt | ForEach-Object {
Set-CsCommonAreaPhone -Identity $_.DisplayName -SipAddress sip:$_.DisplayName@XXX.com
}
ERROR i am getting
Set-CsCommonAreaPhone : Incorrect domain "" specified.PART 2
and other case i want to know where i take 1 variable from User and take the other input from CSV explained below...I know how to take variable from USer...but not able to get that set.....
Set-CsCommonAreaPhone -Identity $_.DisplayName -SipAddress sip:(User-input-variable).$_.DisplayName@XXX.com
so i want sipaddress to be
User-input-variable = Test
$_.DisplayName from CSV sheet lets suppose to be TONY
so my sipaddress should be set to test.tony@XXX.com
Regards
Sushant