Find out what App Control would block in your environment — then build a policy from what you find.
Requires Microsoft Defender for Endpoint with Advanced Hunting · Advanced Hunting retains 30 days of data
Application control is the single most effective thing you can do to stop untrusted code running — and the one most organisations never finish deploying. The reason is almost always the same: nobody can answer “what will break if I turn this on?”
This page of Highwind answers that question using data your tenant is already collecting. Deploy an audit-mode policy, let it run, and every Code Integrity event lands in Advanced Hunting. Highwind pulls those events, compares them against real policy files, and tells you exactly which applications are not yet covered.
Advanced Hunting is still the engine, but most administrators arrive with a goal, not a query: block this, allow that, am I ready to enforce? From 3.7.0 the App Control area is organised around those goals.
| Menu | Page | What it is for |
|---|---|---|
| Investigate | Advanced Hunting | Events from your tenant, grouped by publisher or application, with recommended rules. |
| Impact Scanner | What a policy would block, grouped by application, before you enforce it. | |
| Enforcement Readiness | A scored readiness assessment and briefing. Each run is kept so you can see readiness move over time. | |
| Deploy App Control | App and File Scanner | Start here: scan folders on this machine; signed files are detected and the rule levels are listed in preference order. Double-click an installed app (or Show rules) to see, copy or export its rules, or Export base policy for a ready audit-mode Default Windows policy with those rules. |
| AppLocker Migration | Reads this PC's AppLocker rules, or an imported AppLocker XML, and shows what each becomes in App Control. Path and hash rules convert; publisher rules convert too: Find signers on this PC looks for the software, reads its signing certificate and writes a signer rule (pinned to file, product and version when the rule has them); rules whose software is not installed here stay "Needs signer". Managed installer rules stay in AppLocker; allow-all rules, user-scoped rules, exceptions, scripts and packaged apps are flagged for review. Export the converted rules as an audit-mode policy and the full overview as a report. Nothing on the PC is changed. A built-in signer database fills in publisher rules for software it has seen before, without the software on the PC; signers found on this PC are added to it, and Add signers from report teaches it from a migration report exported on another PC. | |
| Policy Analyzer (under Policy Management) | Import a folder of policy XML files and see how they work together. Checks each policy, then the whole set: base and supplemental links, a supplemental whose base is missing or does not allow supplementals, rules no signing scenario uses, user-mode and kernel-mode mix-ups, duplicate or contradicting rules, Managed Installer policies that carry their own allow-list, and what each option does. Add an audit or block event (typed in, or taken from Advanced Hunting) to see which policy made the decision and why an allow rule in another policy did not help. Every finding says why it matters, how to check it and how to fix it, with a security warning; test fixes in audit mode first. Ask Highwind AI sends the review to the assistant. Nothing on the PC is changed. | |
| Block Applications | Build a deny policy. Recommends the rule level for each application and shows the blast radius — everything else the rule would also catch — before you deploy it. | |
| Allow Applications | Pick applications and get a recommended allow strategy and rule level, assembled into a base or supplemental policy. | |
| Policy Management | Rule Recommendations | Rule-level advice per application, with a risk score. |
| Endpoint | Policies | The App Control policies active on this endpoint. Pick one from the list (base first, then its supplementals) to see its rules and signers. |
| Endpoint | Device Status | Code Integrity policy, VBS and Smart App Control state for the selected device. |
CiTool.exe applies it.VersionEx is bumped (a supplemental policy can optionally get a new PolicyID). A timestamped .orig.xml backup is written next to the file, rules already in the policy are skipped and counted, and a change-log comment is added inside the policy.VisibilityAppControlBlockPage, …AllowPage, …ReadinessPage, …ImpactPage, …RuleRecommendationsPage, …LocalPoliciesPage. See the registry reference or the ADMX templates.
Each step depends on the one before it. Do them in this order.
One row should equal one thing you would write a rule for. Match this setting to the rule type you plan to author.
Smallest result. One row per signer. Use when you intend to trust vendors wholesale with Publisher rules.
The usual starting point. One row per product per vendor — small enough to read end to end, specific enough to decide on.
One row per distinct file, ignoring version and location. Matches FilePublisher / FileName rules and collapses per-user install paths automatically.
One row per file per folder, with user-profile paths normalised to \Users\*\. Use when authoring FilePath rules.
Largest result. Every version of every binary. Only for Hash rule authoring — expect this to be very large.
C:\Users\<name>\AppData, so one application can produce one row per user — hundreds of thousands of rows describing a single app. Grouping at the level you will actually write rules at removes that at source, before any result-size limit is reached.
Group by decides how rows are grouped. Rule precedence, on the right of the same toolbar, decides which rule each row is recommended. They list similar-sounding names, so they are easy to confuse — but they are independent, and precedence is the one that shapes your finished policy.
It behaves exactly like PowerShell New-CIPolicy -Level <first> -Fallback <rest>: the first level an event actually satisfies wins. Drag to re-rank, or select and use the arrows. The order is saved between sessions, and a custom badge appears whenever it differs from the recommended default.
| Level | Matches on | Survives an update? |
|---|---|---|
| FilePublisher | Signer + original file name + minimum version | Yes — the usual right answer |
| Publisher | Signer + issuing CA | Yes — broadest; trusts a vendor's whole catalogue |
| SignedVersion | Signer + minimum version | Yes |
| FileAttribute | PE header fields (InternalName, ProductName) | Usually — good for signed files that get renamed |
| FileName | File name only | Yes, but defeated by renaming a file |
| Hash | Exact SHA256 | No — breaks on every patch |
| FilePath | Any file in a location | Yes, but only safe where standard users cannot write |
FilePath rule under C:\Users\ is user-writable — it effectively means "allow anything".
Recommended order, and what Reset to defaults restores: FilePublisher → Publisher → SignedVersion → FileAttribute → FileName → Hash → FilePath. After changing the order, existing results are stale until you re-evaluate — use Apply & re-compare in the same panel.
Next to By publisher on the Advanced Hunting page, By application rolls events up to the application they belong to (product, major version and vendor), the same grouping the Decisions view and the Fleet portal use. Each row shows devices, files, events, would-block and allowed counts, versions and hashes seen, whether it is signed, when it was last seen, and the rules it needs. Use the arrow to show or hide its files and the rule each one gets; a hash is explained when it is used. Double-click a row, or press Rules…, to see the policy that application would produce and save it or add it to an existing policy (the policy keeps its PolicyID and only the version rises). Tick applications to export just those; with none ticked, Export uses every application in the list. Advanced Hunting does not carry every file detail, such as the signer, so press Scan… on a row to scan the application's folder on one of the devices that reported it. The scan opens in the App and File Scanner, which builds the rules from the real files using your rule order. This needs administrator access to the device's administrative share.
The App and File Scanner follows the same rule precedence. Changing the order updates the Recommend column straight away, and files reached through an administrative share such as \\localhost\C$\Program Files\… are treated as the local path, so a path rule is offered when you rank it above Hash.
Disposition is the result of comparing each event against the policies you loaded.
The Recommend column suggests the rule type that would authorise the file, based on the metadata the event actually carries — a signer if one exists, otherwise file attributes, a path, or a hash as a last resort.
A rollout is not a single sitting. You pull a month of data, work through the top publishers, email four application owners, and come back on Thursday. The Decisions workbench is what lets that work accumulate instead of starting over each time.
When the binary is on this machine, Highwind confirms it is the file the event describes (SHA-256 or Authenticode hash), verifies the signature with Windows, including catalog signing, and anchors publisher rules on the real signing certificate.
Advanced Hunting is read-only and uses delegated permissions: Highwind queries as the person who signs in, so that person must also be allowed to run Advanced Hunting in the Microsoft Defender portal. Highwind uses a public client, so there is no client secret, and it never writes anything.
| Sign-in path | Resource | Delegated permission |
|---|---|---|
| Default (Microsoft Defender XDR) | https://api.security.microsoft.com | AdvancedHunting.Read |
| Legacy Defender for Endpoint | https://api.securitycenter.microsoft.com | AdvancedQuery.Read |
| Microsoft Graph | https://graph.microsoft.com | ThreatHunting.Read.All |
GCC, GCC High and DoD use the matching sovereign hosts; pick the cloud before signing in. The sign-in window waits up to 3 minutes, then gives up. Cancel sign-in stops it sooner.
14d82eec-204b-4c2f-b7e8-296a70dab67e. By default Highwind signs in with this well-known Microsoft public client (the same one the Microsoft Graph PowerShell module uses), so it is not a Highwind-named app and the consent prompt carries that name. It appears under Enterprise applications only after someone in the tenant has signed in with it; if the search finds nothing, nobody has consented yet. If the Advanced Hunting settings use your own client ID, search for that instead.Connect-MgGraph -Scopes Application.Read.All,DelegatedPermissionGrant.Read.All, adding -Environment USGov (GCC High), USGovDoD or China outside the commercial cloud. These are administrator-level read scopes, so you may be asked to consent to them too. If a cmdlet fails with a vague “One or more errors occurred”, run $Error[0].Exception.InnerException.Message to see the real reason, usually insufficient privileges:
$sp = Get-MgServicePrincipal -Filter "appId eq '14d82eec-204b-4c2f-b7e8-296a70dab67e'"
Get-MgOauth2PermissionGrant -Filter "clientId eq '$($sp.Id)'" |
Select-Object Id, ConsentType, PrincipalId, ResourceId, Scope
ConsentType is AllPrincipals for admin consent and Principal for one user (PrincipalId is that user).Use this when users hit Need admin approval and your tenant has no approval workflow, or you simply want nobody to see a prompt. An administrator gives Highwind permission to run Advanced Hunting as the signed-in user. It adds no new rights: what each person can see is still set by their Defender portal role. You need the Cloud Application Administrator or Global Administrator role, and the Microsoft Graph PowerShell module (Install-Module Microsoft.Graph.Authentication, Microsoft.Graph.Applications, Microsoft.Graph.Identity.SignIns, Microsoft.Graph.Users).
runHuntingQuery, permission ThreatHunting.Read.All). Microsoft has said the older Defender XDR and Defender for Endpoint hunting APIs are being retired (retirement began January 2026, see Microsoft message center item MC1220762), so use Graph for new setups. Graph hunting is available in the commercial, GCC, GCC High and DoD clouds, but not in China. In Highwind, open the Advanced Hunting settings and choose Microsoft Graph as the sign-in path so it matches what you grant here.
Pick your environment and API; the commands below change to match. The client ID is the same in every step and every cloud: 14d82eec-204b-4c2f-b7e8-296a70dab67e is the Microsoft Graph Command Line Tools application, which the Graph PowerShell module itself uses in all clouds. What differs by cloud is the sign-in address, which the -Environment setting in step 1 handles. If your Advanced Hunting settings use your own client ID, put that in step 2 instead.
Connect-MgGraph -Scopes Application.ReadWrite.All,DelegatedPermissionGrant.ReadWrite.All
Connect-MgGraph -Environment USGov -Scopes Application.ReadWrite.All,DelegatedPermissionGrant.ReadWrite.All
Connect-MgGraph -Environment USGovDoD -Scopes Application.ReadWrite.All,DelegatedPermissionGrant.ReadWrite.All
GCC uses the same addresses as commercial, so it uses this command too.$clientAppId = '14d82eec-204b-4c2f-b7e8-296a70dab67e' # Microsoft Graph Command Line Tools
$apiAppId = '00000003-0000-0000-c000-000000000000' # Microsoft Graph
$scope = 'ThreatHunting.Read.All'
$clientAppId = '14d82eec-204b-4c2f-b7e8-296a70dab67e' # Microsoft Graph Command Line Tools
$apiAppId = '8ee8fdad-f234-4243-8f3b-15c294843740' # Microsoft Threat Protection (Defender XDR API)
$scope = 'AdvancedHunting.Read'
$clientAppId = '14d82eec-204b-4c2f-b7e8-296a70dab67e' # Microsoft Graph Command Line Tools
$apiAppId = 'fc780465-2017-40d4-a0c5-307022471b92' # WindowsDefenderATP (Defender for Endpoint API)
$scope = 'AdvancedQuery.Read'$client = Get-MgServicePrincipal -Filter "appId eq '$clientAppId'"
if (-not $client) { $client = New-MgServicePrincipal -AppId $clientAppId }
$api = Get-MgServicePrincipal -Filter "appId eq '$apiAppId'"
if (-not $api) { $api = New-MgServicePrincipal -AppId $apiAppId }
Microsoft Graph always exists in a tenant, so the second lookup finds it.
If creating the API fails in your cloud, the API is not available there; use Microsoft Graph instead.Everyone in the tenant (AllPrincipals):
New-MgOauth2PermissionGrant -ClientId $client.Id -ConsentType AllPrincipals `
-ResourceId $api.Id -Scope $scope
One user only (Principal), useful for a pilot:
$me = (Get-MgUser -UserId 'you@contoso.com').Id
New-MgOauth2PermissionGrant -ClientId $client.Id -ConsentType Principal -PrincipalId $me `
-ResourceId $api.Id -Scope $scopeConsentType AllPrincipals (or Principal for the pilot). Allow a few minutes, then sign in from Highwind: there should be no prompt.
Get-MgOauth2PermissionGrant -Filter "clientId eq '$($client.Id)'" |
Select-Object Id, ConsentType, PrincipalId, ResourceId, ScopeIf a grant for the same client and API already exists, New-MgOauth2PermissionGrant fails. Add the scope to it instead: Update-MgOauth2PermissionGrant -OAuth2PermissionGrantId <Id> -Scope '<existing scopes> <new scope>'. Granting does not give the user a Defender portal role: they still need Security data basics → Read and device-group scope.
Connect-MgGraph -Scopes DelegatedPermissionGrant.ReadWrite.All
$me = (Get-MgUser -UserId 'you@contoso.com').Id
$sp = Get-MgServicePrincipal -Filter "appId eq '14d82eec-204b-4c2f-b7e8-296a70dab67e'"
Get-MgOauth2PermissionGrant -Filter "clientId eq '$($sp.Id)' and principalId eq '$me'" |
ForEach-Object { Remove-MgOauth2PermissionGrant -OAuth2PermissionGrantId $_.Id }AllPrincipals grant the same way, or delete the enterprise application (Enterprise applications → Properties → Delete) to reset it completely. It is recreated on the next sign-in.Advanced Hunting has a 30-day retention, a per-query complexity limit, a response-size cap and a request rate limit. On an estate of a few hundred thousand devices, all four bite.
-context.txt records the query window, the filters applied and the policies compared against, so the file can be handed to someone else without explanation.ConvertFrom-CIPolicy and deploy.The same guidance is available inside the app: Knowledge Base → Application Control → Advanced Hunting.