Enable applocker powershell commandlets in Home versions of Windows

Lorne Martin 0 Reputation points

According to this site, I should be able to apply local applocker polices on Home versions of Windows. I cannot get the Set-AppLockerPolicy command to run in powershell. I am running Windows 10 Home Version 22H2 (OS Build 19045.4529). I have applied KB5024351 as the article above suggests, as well as KB5024351, which I understand is an updated version of this patch. But I still get the following error:

PS C:\test> Set-AppLockerPolicy -XMLPolicy applockerpolicy.xml
Set-AppLockerPolicy : The term 'Set-AppLockerPolicy' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Set-AppLockerPolicy -XMLPolicy applockerpolicy.xml
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Set-AppLockerPolicy:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,288 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 33,946 Reputation points Microsoft Vendor

    Hi Lorne Martin

    It seems the AppLocker module is corrupted. Please make sure the file C:\Windows\System32\WindowsPowerShell\v1.0\Modules\AppLocker\AppLocker.psd1 still exists. Run these commands in an elevated PowerShell window to see if the issue can be fixed.

    DISM.exe /Online /Cleanup-image /Restorehealth
    sfc /scannow

    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments