@nasha mehr , From your description, I know we get some problems when enroll devices. For the first error, it seems the user is not authorized to enroll. To fix it, we can try the solutions in the following link:
https://learn.microsoft.com/en-us/troubleshoot/mem/intune/windows-user-cannot-enroll
Meanwhile, please also check if there's any Enrollment device platform restriction set in our environment which may block the enroll.
However, if the above solutions can still not help, I guess the issue can be with the device based on your test. Please reinstall the device with a clean OS to see if it can work.
For the second problem, it seems the Company portal and Teamviewer are are failed to deploy. To troubleshoot this, you can deploy the two apps to one test device. Then do troubleshooting only on this device to fix the issue. after the issue is fixed, then we can consider to deploy it to all the devices we want.
For the company portal app, I would like t confirm if it is deployed via the following method? What is the error we get?
https://learn.microsoft.com/en-us/mem/intune/apps/store-apps-company-portal-autopilot
For Teamviewer app, I would like to confirm if the app is deployed via the Win32 app? If yes, look into IME log to check on the issue. Here is a link about how to troubleshoot win32 issue for the reference:
https://www.anoopcnair.com/intune-win32-app-troubleshooting/
Note : Non-Microsoft link, just for the reference.
For the above issues, the troubleshooting needs log analysis, to protect your environment, for such case, we suggest to open case to work on it. Here is a link with the steps about how to open case for the reference:
https://learn.microsoft.com/en-us/mem/get-support
Hope it can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.