Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Set-AppLockerPolicy

Set-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
Sets the AppLocker policy for the specified Group Policy Object (GPO).

Set-AppLockerPolicy [-XmlPolicy] <String> [-Ldap <String>] [-Merge [<SwitchParameter>]] [-Confirm [<SwitchParameter>]] 
[-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Set-AppLockerPolicy [-PolicyObject] <AppLockerPolicy> [-Ldap <String>] [-Merge [<SwitchParameter>]] [-Confirm [<SwitchP
arameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]

The Set-AppLockerPolicy cmdlet sets the specified GPO to contain the specified AppLocker policy. If no Lightweight Dire
ctory Access Protocol (LDAP) is specified, then the default is the local GPO.

The input values for the AppLocker policy can be an AppLockerPolicy object or an XML-formatted file containing the AppL
ocker policy.