Hoe u Configuration Manager -script kunt repareren, is geen ondertekende fout 0x87d00327. When using the PowerShell feature in Compliance Settings to run a script, De client kan fouten retourneren met een beschrijving van “Script is not signed'. Hieronder vindt u een voorbeeld van een baseline -implementatiestatus waarbij klanten fouten retourneren.
Solution
Dit komt door het huidige uitvoeringsbeleid voor Powershell op klantmachines. In de Clientinstellingen, onder Computeragent, Er is een optie om de PowerShell execution policy. De enige valkuil hier is dat het iets anders betekent dan iemand zou denken. Dit zijn de opties:
- Omzeilen: The ConfigMgr client bypasses the PowerShell configuration on the local system so that unsigned scripts can run.
- Beperkt (default in ConfigMgr 2012): The ConfigMgr client uses the current PowerShell configuration on the local system, die bepaalt of, of niet, niet -ondertekende scripts kunnen lopen.
- Allemaal ondertekend (default in ConfigMgr 2012 SP1): The ConfigMgr client runs scripts only if they are signed by a trusted publisher and applied independently from the current PowerShell configuration on the local system.
1. Open SCCM Console, Klik op “Administratie"En ga naar"Clientinstellingen';
2. Selecteer Instellingen en klik op “Eigenschappen"Klik in het bovenste menu of de rechter muisknop en selecteer"Eigenschappen';
3. Ga naar "Computeragent';
4. Scroll naar beneden en zoek de optie “PowerShell execution policy" - set "Omzeilen"En klik op"OK';
The best places to look at the results are the log files. In dit geval, there is no log file that shows the current setting of the PowerShell execution policy. Dus de beste plek om naar te kijken is de Beleidsspion. In dit geval, het zal laten zien PowerShellexecutionPolicy = 1 als een instelling onder, Machine \ Ccm_clientAgentConfig. De betekenis van de verschillende mogelijke waarden zijn:
- 0 = Allemaal ondertekend
- 1 = Bypass
- 2 = Beperkt
Dit werkte geweldig. Thank you!