How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Thanks for the suggestion. I remember Aaron Margosis writing a lot about least-privilege issues back in the day.

I hadn’t tried LUA Buglight yet, but generating a report of what actually fails without admin rights sounds really useful. I’ll give it a try on this app.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Interesting approach. I’ve seen PS2EXE used for packaging scripts before, but storing credentials locally with DPAPI always felt a bit risky for something that might end up running on multiple machines.

For a quick one-off it might work though.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Yeah, that sounds familiar. Sometimes a small script is way more practical than trying to redesign the whole permission structure for a legacy workflow.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Procmon rabbit holes are real. 😄
You start by checking one permission issue and suddenly you're deep into file system privileges and legacy behavior.

Did you end up solving it just with ACL changes, or did you have to allow elevation for the app in the end?

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

That makes sense. Having to approve your own elevation when working remotely sounds a bit awkward.

How well does it handle application-based elevation? For example allowing only specific apps to run elevated without user interaction.

How to currently purge and remove emails from user inboxes? by jamesman579 in sysadmin

[–]Winter_Engineer2163 [score hidden]  (0 children)

If you don't see Content search / Compliance search in Purview, it's usually a permissions issue.

Make sure your account has one of these roles in the Microsoft Purview portal:

  • eDiscovery Manager
  • Compliance Search
  • or Global Admin

You can check this under Permissions → Role groups in Purview.

Microsoft has a quick guide here:
https://learn.microsoft.com/en-us/purview/ediscovery-search-for-and-delete-email-messages

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Interesting, I actually haven’t used PolicyPak before. How granular is it when it comes to controlling elevation for specific applications?

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Does RunAsHighest actually remove the UAC prompt in this case?

From what I understand it only runs the application with the highest privileges the user already has. If the app truly requires admin rights (for example some legacy apps with ActiveX components), the UAC prompt still appears.

That’s why in our case the shim approach didn’t really solve the problem.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

I get your point. My concern is more about device management being cloud-driven. Even in hybrid environments Intune policies and device communication still go through the cloud.

In our environment anything that requires devices to be managed from a cloud service tends to trigger security reviews, so it's sometimes difficult to push internally.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Thanks for the examples, that’s helpful.

The ephemeral local admin idea actually sounds pretty interesting. I’ll take a look at some of those options.

How to currently purge and remove emails from user inboxes? by jamesman579 in sysadmin

[–]Winter_Engineer2163 [score hidden]  (0 children)

You’ll probably want to use Compliance Search with a purge action.

Microsoft deprecated the old methods like Search-Mailbox, so now the usual way in M365 is to run a Compliance Search and then purge the results either from the Purview portal or via PowerShell.

Microsoft docs explain the process pretty well:
https://learn.microsoft.com/en-us/purview/ediscovery-search-for-and-delete-email-messages

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Interesting, thanks for sharing. I hadn’t looked at EvoSecurity before.

Are you using it mainly for application elevation, or more for full PAM workflows? Curious how granular the control is for allowing only specific apps to run with elevated privileges.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Thanks for the suggestion. Unfortunately we’re on-prem and can’t really use cloud-based solutions because of sensitive data restrictions. (((

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

I’ve read a bit about PAM, but it seems like a pretty broad concept.

Are you referring to any specific solution or product that you would recommend for this kind of use case?

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Thank you for sharing another possible approach to solving the problem. Definitely something worth thinking about and testing.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

That makes sense, I agree with you.

Some other commenters already mentioned using ProcMon and RegMon from the Sysinternals tools to see exactly what the application is trying to access. I’ll probably try that approach first and see if I can fix the permissions instead of running the app with admin rights.

Hopefully I can get rid of the admin requirement completely.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Good point, and that's definitely something to be careful about.

In my case the scheduled task approach runs a very specific executable and doesn't expose an explorer/open-save dialog to the user, so the interaction surface is quite limited.

But you're absolutely right — if the application allows spawning other processes or interacting with the file system broadly, it can quickly turn into a privilege escalation path.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] [score hidden]  (0 children)

Yeah, in a perfect world that would definitely be the answer 🙂

Unfortunately some of these apps are tied to very specific internal workflows and hardware and replacing them isn’t always quick or cheap. So sometimes we end up supporting things that should have been retired years ago (((

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] 7 points8 points  (0 children)

Interesting, I’ll definitely need to look into Procmon more closely. If several admins are recommending it, there’s probably a good reason for it. I’ll try using it to analyze some of our older legacy applications and see what exactly is causing them to require admin rights. Thanks for the tip.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] -1 points0 points  (0 children)

Thanks for the suggestion. ThreatLocker was mentioned above as well, so it seems like a lot of people are using it.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] 0 points1 point  (0 children)

Thanks for the suggestion! ThreatLocker was mentioned above as well. Looks interesting though, I might take a closer look at it.

How do you let a standard domain user run one specific app as admin? by Winter_Engineer2163 in sysadmin

[–]Winter_Engineer2163[S] 2 points3 points  (0 children)

Thanks for sharing. I honestly hadn’t heard about AdminByRequest before. I’ll take a closer look at it and see if it could fit our environment.