Hello Mirza Aurangzeb,
Thank you for posting in Q&A forum.
Based on your description, you can try to identify and resolve the issue by following these steps:
Check for Windows Updates: Make sure Windows Server 2019 has the latest updates and patches installed. Sometimes, certain issues can be solved with a simple update system. In the "Settings" option, select "Updates" and "Security", and then click "Windows Update". After the update is installed, you may need to restart the server for the changes to take effect.
Check user permissions:
Make sure that the user you're using has administrator privileges. You can check if a user is in the Administrators group in the Control Panel > User Accounts.
Try a different administrator account:
Create a new local Administrator account and try to run IIS under that account.
Check your security software and antivirus programs:
Some security software may prevent applications from running with administrator privileges. You can try disabling or temporarily closing the software and then trying to run IIS again.
To view the event logs:
Open the Event Viewer.
Navigate to Windows Logs > Applications.
Look for errors or warnings related to IIS.
In addition, can you provide more detailed information about the error reported during the installation process?
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best Regards,
Yanhong Liu
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.