Hi all,
Our team recently revised our powershell script to allocate Teams softphone to new staffs. Previously we were using the Set-CsUser command. However, since it got deprecated, we were forced to change it to the new Set-CsPhoneNumberAssignment command.
The weird thing is, when we run the script manually, it can read the CSV file and allocate the number correctly. However, when we run it via the orchestrator, the robot keeps getting the error Set-CsPhoneNumberAssignment not recognised as a cmdlet.
Things we have tried:
- Reinstalling the MicrosoftTeams module for powershell
- Updating .NET Framework
- Starting powershell with administrator rights but we encounter another error were uipath needs to be started with elevated rights in order to communicate
Appreciate any kind advice.