Using Elevate/Script Policies for Microsoft MMC.exe Snap-Ins (tash scheduler/services)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Using Elevate/Script Policies for Microsoft MMC.exe Snap-Ins (tash scheduler/services)

L3 Networker

This is an interesting case don't know if it has been answered before. We have a couple of users who need to perform tasks in the snap-ins like Task Scheduler or Services which is a child process under Microsoft Management Console.exe.

 

There is no option in EPM to elevate only the child process tasksch.msc, and we do not want to elevate the entire MMC.exe for the user. Is there a workaround to this in the elevate policies?

 

Or is there an option to use a script execution policy to start a script that provides the user access to start/stop a service or edit a task in task scheduler?

 

It is a pretty niche question I havn't seen an answer to on here so wanted to ask. Anything is appreciated!

1 accepted solution

Accepted Solutions

You are right, nothing for task scheduler but there is for services. That services configuration gives users the ability to play with services.

 

For task scheduler, what we did was use the MMC elevation but with parameters for taskschd.msc. So for example, create a new definition in your elevate policy.

 

Filename: mmc.exe

Publisher signature: Microsoft Windows

Location (in directory): C:\Windows\System32\

Parameters: C:\Windows\System32\taskschd.msc

 

Then apply the policy. Navigate to taskschd.msc, launch it and it will prompt you with the EPM prompt that its elevating.

 

Hope that helps. It took us awhile to figure that one out.

View solution in original post

17 REPLIES 17

L7 Applicator

Hi @Ryan Kuczer​ 

 

Yes in my understanding it should be possible by creating a PowerShell script that can launch child process without elevating MMC using Script Policy.

 

https://docs.cyberark.com/epm/latest/en/content/webservices/scriptpolicies.htm

 

 

 

L3 Networker

The "administrative task" policy in advanced policies allows you to define which snap ins get elevated within MMC.

 

.NET Configuration

Application Server

Authorization Manager

Certificate Services

Certificate Templates

Certificate snap-in

Device Manager

DHCP Manager

Disk Defragmenter

Disk Management

Distributed File System

DNS Manager

Event Viewer

Fax Service Manager

File Server Management

Group Policy Editor

Hyper-V Manager

Indexing Service

Internet Authentication Service

Internet Information Services (IIS)

Local Users and Groups

Performance Monitor

Remote Desktop

Removable Storage Manager

Removable Storage Operator Requests

Resultant Set of Policy

Routing and Remote Access

Services Configuration

Shared Folders

SQL Server Configuration Manager

Telephony

Terminal Services

Update Services

Windows Firewall

Windows Management Instrumentation (WMI)

Windows Internet Naming Service (WINS)

 

Here is the list from CyberArk EPM, I am on SaaS, version: 25.9.0.5007. I do not see one called Task Scheduler, is it called something else?

You are right, nothing for task scheduler but there is for services. That services configuration gives users the ability to play with services.

 

For task scheduler, what we did was use the MMC elevation but with parameters for taskschd.msc. So for example, create a new definition in your elevate policy.

 

Filename: mmc.exe

Publisher signature: Microsoft Windows

Location (in directory): C:\Windows\System32\

Parameters: C:\Windows\System32\taskschd.msc

 

Then apply the policy. Navigate to taskschd.msc, launch it and it will prompt you with the EPM prompt that its elevating.

 

Hope that helps. It took us awhile to figure that one out.

Thank you so much!!!

 

Just want to confirm for the location and parameters, that you used \ and not /.

 

My path is: ‪C:\Windows\System32\taskschd.msc.

Yes, thats correct. I wrote it exactly as it looks in our policy and tested. Prior i couldnt elevate taskschd.msc and after i applied the policy, I got the EPM prompt. It should work.

Nice this may be useful for us to know as we run mutliple scripts to install wsl2 and we need to use this to finish off the install in the user context I believe, many thx!

Nice this may be useful for us to know as we run mutliple scripts to install wsl2 and we need to use this to finish off the install in the user context I believe, many thx!

Field_Content_versions_oct20__068Vy00000u7mKcIAI.pngI am still having issues with the above, do you have any different options selected @Phillip Hornat​ ?

That looks exactly like what I have but we dont use the "include child processes" option. Odd.

 

I disabled my policy and I can no longer elevate it so I am positive that policy is providing the elevation. I see no difference with yours outside of the child processes. We have no policy elevating MMC outside of that one as my MMC.exe shows it as grey listed default policy.

 

I did check the box for child processes to see if it would break the policy but it still worked after that so pretty sure that isnt going to cause a problem.

 

Field_Content_versions_oct20__068Vy00000u86PrIAI.png

Hi @Phillip Hornat​ ,

 

Thank you for getting back to me i really appreciate it!

 

Interesting ok, must be something on my end in my environment causing the issue then. Will report back when I find out what it was. Might be policy priority.

Hi @Phillip Hornat​ ,

 

In regards to the Services Config option do you know if there is a way to give a user access to an individual service? And not all services with the standard Admin Task : Services Config?

@Ryan Kuczer​  Yes you can! Instead of creating an application policy, create a user policy and select services. You can then define the specific services you want them to have.

 

We blacklist all our security tools so that users cannot disable the services using this method but you can give permission to services this way as well.

Field_Content_versions_oct20__068Vy00000wRAA2IAO.png 

Field_Content_versions_oct20__068Vy00000wRdOyIAK.pngHope that helps!

Thanks! Do you have any idea why the user would still be blocked? I have given them full access via the services access policy. I do see they are getting the error since they are not in the local security policy Log on as a service right, would that fix it? I know it is a niche question so no worries if not

  • 1 accepted solution
  • 246 Views
  • 17 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!