I need my users to be able to run a program as an admin but dont want to get them the admin details. We work in a remote desktop environment (Azure VDI) and when they run a particular program as themselves, it crashes. However, it they run the program with Admin credentials, even when they log on as a user, the program works. I want to run the program with admin credentials but without it prompting for them.
I created a ps1 file to open it and when I run it from Powershell run as administrator, it works with no prompts. How do I get the ps1 file to run in admin mode without having to enter the username and password?
crashcould mean many things. Is this just apermission deniedfailure?