Hi,
I am trying to remove the first 4 characters from the output from my array. I have been doing some researching and having a play about and the below does't produce any errors, but still adds the sip: at the beginning of each line of the output. Any ideas
how to get this to do what I want it to please?
$oldarray=Get-CsUser | Where-Object {$_.HostingProvider -eq "sipfed.online.lync.com"} | Select-Object -Property sipaddress | Out-String
$newarray=$oldarray | ForEach-Object {$_.Remove(0,1)}
$newarray
This still outputs sip:first.last@domain.com