Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » New-AppLockerPolicy

New-AppLockerPolicy - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Creates a new AppLocker policy from a list of file information and other rule creation options.

New-AppLockerPolicy [-FileInformation] <List<FileInformation>> [-IgnoreMissingFileInformation [<SwitchParameter>]] [-Op
timize [<SwitchParameter>]] [-RuleNamePrefix <String>] [-RuleType <List<RuleType>>] [-User <String>] [-Xml [<SwitchPara
meter>]] [<CommonParameters>]

The New-AppLockerPolicy cmdlet uses a list of file information to automatically generate a list of rules for a given us
er or group. Rules can be generated based on publisher, hash, or path information.

Run the Get-AppLockerFileInformation cmdlet to create the list of file information.

By default, the output is an AppLockerPolicy object. If the XML parameter is specified, the output will be the AppLocke
r policy as an XML-formatted string.