It is difficult for support engineers to guide users to the company portal because the company portal is called differently depending on the system language. In german, for example, the Company Portal is called “Unternehmensportal”. To simplify this and make access faster I have written a small system tray icon. This icon is not only there to open the Company Portal, it also offers many other functions to simplify the troubleshooting process.
The System Tray tool provides the following functions:
Sync: When you select the Sync button, a IME sync (Intune Management Extension) is triggered.
$syncIme = New-Object -ComObject Shell.Application $syncIme.open("intunemanagementextension://syncapp")
Open Company Portal: With this button you can open the Company Portal.
Troubleshoot: This menu contains various actions to troubleshoot the IME. This can be very helpful for support cases
- Install CMTrace (Invoke-WebRequest -Uri $cmtraceSourceLink -OutFile $cmtracePath)
- You can specify in path in the $cmtraceSourceLink variable from where you want to download the CMTrace. Default is from my GitHub repository. The installation path is (C:\Windows\Temp).
- Show IME Logs (explorer c:\ProgramData\Microsoft\IntuneManagementExtension\Logs)
- Collect diagnostic logs (MdmDiagnosticsTool.exe -out c:\temp\diagnostic)
- IME Restart (Restart-Service -Name “IntuneManagementExtension”)
- User Certificate (Certmgr.msc)
- Machine Certificate (Certlm.msc)
- IME Registry (regedit + [System.Windows.MessageBox]::Show(‘Navigate to: “HKLM\SOFTWARE\Microsoft\IntuneManagementExtension”‘) )
Exit: Stop the System Tray Icon
How to Deploy
- Now we just need to deploy the scripts via Intune. To do this, we open the MEM portal and navigate to Devices -> Scripts
- Download the deployment script from my git hub repository
- There are two scripts one for direkt execution (Create-IntuneSystemtray.ps1) and one for the deployment via Intune (Deploy-IntuneSystemtrayScript.ps1)
- Click ADD
- Enter a name
- Click Next
- Upload the Script
- Select Yes at “Run this script using the logged on credentials“
- Click Next
- Click Add Groups
- Select a Group and click Select
- Click Next
- Click Add
The script shows you how to create a system tray icon and how to distribute it using Intune. You can customize the script to your needs. For example, you can add a button that uploads the logs to a customized storage. If you have any questions or need help then let me know.
Stay healthy, Cheers