Have you looked for a GPO that is overriding configmgr? Have you tried reinstalling the client?
Powershell execution policy in client settings does not work for some clients
We are using compliancy with powershell scripts to determine whether clients are compliant. Very small number of clients fail with the error 0X87D00327 - Script is not signed. When I look in the logfiles it clearly states the client uses the 'All Signed' policy instead of the 'Bypass' setting in the client settings. I checked the following:
- The resultant client settings confirm the client settings for the Computer Agent - Powershell execution policy
I tried to resolve the issue by these actions
- Trigger the Action 'Machine Policy Retrieval & Evaluation Cycle'
- Monitor the logs on the client for errors
- I've reset the client policy through WMI completely and trigger the action 'Machine Policy Retrieval & Evaluation Cycle' again
all to no avail.
Can you provide me with a root cause and solution for the clients?
3 answers
Sort by: Most helpful
-
-
AllenLiu-MSFT 48,586 Reputation points Microsoft External Staff
2023-02-22T06:47:06.5766667+00:00 Hi, @Arjan Kauffman
Thank you for posting in Microsoft Q&A forum.
You may try to run Get-ExecutionPolicy to confirm the current execution policy.
You may run Get-ExecutionPolicy -List to get the execution policy list, check if there any machine policy or user policy defined?
The machine policy is set by the group policy:
Computer Configuration -> Administrative Templates -> Windows Components -> Windows PowerShell
The user policy is set by the group policy:
User Configuration -> Administrative Templates -> Windows Components -> Windows PowerShell
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add 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.
-
Limitless Technology 44,666 Reputation points
2023-02-23T09:47:16.1933333+00:00 Hi. Thank you for your question and reaching out. I’d be more than happy to help you with your query
The root cause of the issue appears to be that the clients are not set to use the 'Bypass' setting for the PowerShell execution policy. This setting can be configured either through Group Policy or through the registry. If the 'Bypass' setting is not configured, then the clients will be using the 'All Signed' policy, which results in the 0X87D00327 - Script is not signed error.
To resolve this issue, you should make sure that the clients are using the 'Bypass' setting for the PowerShell execution policy. You can do this by either configuring the appropriate Group Policy setting or by manually editing the registry on each client to set the ExecutionPolicy key to 'Bypass'. After doing this, you should trigger the Action 'Machine Policy Retrieval & Evaluation Cycle' again to ensure the policy is applied to the clients.
If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.