Avatar of Mohammed Hamada
Mohammed Hamada
Flag for Portugal

asked on 

Cleaning CSV file with powershell script

Dear Experts,

I am trying to use powershell to clean a CSV file from certain values. The output of powershell is normally like this


Name                                                                                                            $_.AgentsByUri                                                                                                                  
----                                                                                                                             --------------                                                                                                                  
ResponseGroup1                                                                                         {sip:user@domain.ca, sip:user2@domain.ca}

I want to clear the csv file from the {sip:} And leave users with their uri only. So the output would be like the following

Name                                                                                                            $_.AgentsByUri                                                                                                                  
----                                                                                                                             --------------                                                                                                                  
ResponseGroup1                                                                                        user@domain.ca, user2@domain.ca

I tried to do this with trim but didn't work properly.
PowershellMicrosoft Lync ServerExchange

Avatar of undefined
Last Comment
Mohammed Hamada

8/22/2022 - Mon