Bypass UAC via MECM/SCCM

Andy 51 Reputation points
2021-10-27T01:07:34.54+00:00

Client Version Windows 10 2004
MECM version 2107
I am using Compliance Settings to uninstall apps on clients everything runs smoothly except UAC (if clients with admin rights no problem at all).
Is there any method we can bypass UAC via PowerShell or settings?
I know we can using GPO but it's not controlled by us
Thank you in advance

Windows for business | Windows Client for IT Pros | Devices and deployment | Configure application groups
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2021-10-27T08:45:22.687+00:00

    Hi, @Andy
    Thank you for posting in Microsoft Q&A forum.

    We may try to uninstall software using WMI, here is a great example to uninstall Java by compliance setting, you may refer to it to see if it helps:
    https://blog.ctglobalservices.com/powershell/mas/uninstall-java-or-other-software-with-configmgr-compliance-baselines/
    (Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.)

    Don't check the option "Run scripts by using the logged on user credentials".


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.