windows-powershell-docs icon indicating copy to clipboard operation
windows-powershell-docs copied to clipboard

New-AppLockerPolicy documentation examples fail at execution

Open anderZubi opened this issue 3 years ago • 0 comments

Examples for New-AppLockerPolicy fail at execution. See example below:

PS C:\Users\User> Get-ChildItem C:\Windows\System32\*.exe | Get-AppLockerFileInformation | New-AppLockerPolicy -RuleType Publisher, Hash -User Everyone -RuleNamePrefix System32
New-AppLockerPolicy: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
New-AppLockerPolicy: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
New-AppLockerPolicy: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
New-AppLockerPolicy: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
New-AppLockerPolicy: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

I have not been able to successfuly execute the command. Therefore I don't know if problem is in the documentation or implementation of the module.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

anderZubi avatar Aug 18 '22 10:08 anderZubi