windows-powershell-docs
windows-powershell-docs copied to clipboard
New-AppLockerPolicy documentation examples fail at execution
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.
- ID: 83a5c40e-a011-4331-a36d-fd060ace4386
- Version Independent ID: 0cc63de0-b088-e96d-8b09-4c9c23ebd6e4
- Content: New-AppLockerPolicy (AppLocker)
- Content Source: docset/winserver2019-ps/applocker/New-AppLockerPolicy.md
- Product: w10
- Technology: windows
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend