Powershell script in Trust/Elevate policy action with child process

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

Powershell script in Trust/Elevate policy action with child process

L2 Linker

Hi,

 

I know there is some limitation with adding parameters in executing in commandline.

If I add an powershell script in Trust/elevate policy action with child process and try to run it showing access denied. however if i try to do same in command prompt it is working.

 

Is there specific limitation between command prompt and powershell ? is my understanding not correct?

 

Thanks

3 REPLIES 3

L4 Transporter

Hello @Surendran M​ ,

it's hard to answer that without a case and some logs... It really depends on your policy definitions and order.

can you open a case and provide the support info please? Support can take it on from there.

Thanks,

 

L2 Linker

Hi @Ilan Tsanany​ 

 

I have set of script which needs admin mode of powershell. Added those script in elevate policy with child process as well. however, the script is not working. My question is being script in elevated policy why it is not working.?

If i open PowerShell with Elevate if necessary, policy action and script not being part of any policy. if i execute the script it is working fine without issues.

 

I want to execute this script in adminmode of powershell is there any bestway to do?

 

 

 

 

L4 Transporter

Hi @Surendran M​ 

 

Would you be able to check the PowerShell execution policy to ensure that it allows scripts to be run with elevated privileges?

 

  • The execution policy can be set at different levels (e.g., local machine, current user) and may affect the ability to run scripts with elevated privileges.

 

Also can you please check the content of the PowerShell script to ensure that it does not perform any actions that are restricted?

 

  • Some actions may be restricted when running in an elevated context for security reasons.

 

 

 

  • 14 Views
  • 3 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!