Atreidae / Migrate-SkypeUsersToTeams

MIT License
0 stars 0 forks source link

Script gets confused in step three if a user without a sip address #1

Open Atreidae opened 7 months ago

Atreidae commented 7 months ago

When attempting to run Step 3 against some users the script doesn't handle the fact they might not be fully cloud homed yet very well

If for some reason Teams is not aware of the users SIP address (For example, the user was deleted from on prem, but still has a msrtcSIPServiceDeploymentLocator set to SRV:) this codeblock in step 3 will just error out

Write-Progress -Activity "Step 3" -Status "User $currentuser of $usercount. $Usernametxt ETA: $eta / @ $estimatedCompletionTime" -CurrentOperation SipAddress -PercentComplete ((($currentuser) / $usercount) * 100)
      $Sip = (get-csonlineuser $User.UPN).sipaddress
      New-UcmReportStep -Stepname "Locate Sip Address" -StepResult $sip.ToString()
      Write-UcmLog -message "Sip Address: Good" -Severity 2

Need to update this section to correctly report in the HTML that Teams cannot see the users SIP address

Atreidae commented 7 months ago

Example production run (entries 11 and 15) Error, unknown error You cannot call a method on a null-valued expression. image