# SharpAppLocker | C# Port Of The Get-AppLockerPolicy PS Cmdlet | Microsoft Tool

**URL:** <https://onehack.st/t/sharpapplocker-c-port-of-the-get-applockerpolicy-ps-cmdlet-microsoft-tool/100348>\
**Category:** Tools & Scripts\
**Tags:** tools, windows\
**Created:** [August 11, 2020, 2:53pm UTC](https://onehack.st/t/sharpapplocker-c-port-of-the-get-applockerpolicy-ps-cmdlet-microsoft-tool/100348 "2020-08-11T14:53:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlueHacker](https://onehack.st/user_avatar/onehack.st/bluehacker/32/174721_2.png) [@BlueHacker](https://onehack.st/u/BlueHacker)\
**Post date:** [August 11, 2020, 2:53pm UTC](https://onehack.st/t/sharpapplocker-c-port-of-the-get-applockerpolicy-ps-cmdlet-microsoft-tool/100348/1 "2020-08-11T14:53:42Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/4/9/49312ae0982912ae9f732960cf2311a8456139ab.png)

C# port of the Get-AppLockerPolicy PS cmdlet

* * *

/ **_| | / \_ | | | |  
 `--.| | ____ _ _ _____ / /_ _ _____ | | ______ | | ________ `–. ’_ / \_` | ' **| '\_ | \_ | '\_ | '\_ | | / \_ /** | |/ / \_ '**|  
/**/ / | | | (_| | | | |_) | | | | |_) | |_) | |**_| (_) | (**| \< / |  
\_\ __/|| |_|,_|_| | . **/_| |_/ .** /| . **/\_\__ ** / **_/** _|_|**_||  
| | | | | |  
|_| |_| |_|

V1.0.0 - by Flangvik & Jean\_Maes\_1994

Usage:  
-h, -?, --help Show Help

-l, --local Queries local applocker config

-d, --domain Queries domain applocker config (needs an ldap  
path)

-e, --effective Queries the effective applocker config on this  
computer

-x, --xml output applocker in XML format (default is json)

```
  --ldap=VALUE the ldap filter to query the domain policy from

```

for detailed information please take a look at the MSDN url: [https://docs.microsoft.com/en-us/powershell/module/applocker/get-applockerpolicy?view=win10-ps](https://docs.microsoft.com/en-us/powershell/module/applocker/get-applockerpolicy?view=win10-ps)

## GitHub:

> **[GitHub - Flangvik/SharpAppLocker: C# port of the Get-AppLockerPolicy PS cmdlet](https://github.com/Flangvik/SharpAppLocker)**
>
> C# port of the Get-AppLockerPolicy PS cmdlet
