I need to prevent PIF files and any payloads they launch from running on managed Windows 10 and 11 devices. I don't want to rely on hiding or deleting files by extension. Would App Control for Business, AppLocker, Defender for Endpoint, or another control be the right fit?
How can I block PIF execution across Intune-managed Windows devices?
Answers
I'd start with App Control for Business, formerly WDAC, if the goal is to control what can execute rather than chase one extension. An allow policy can restrict executable payloads based on what the organization actually approves, regardless of whether they arrive through a PIF or some other route.
That doesn't automatically mean every PIF launch mechanism is covered. Test the specific files and launch paths you care about, along with legitimate applications, in audit mode before enforcing. Check the resulting events and use them to refine the policy. Intune can deploy the policy, but rollout and compatibility testing are still the hard parts.
Reply to this answer
AppLocker is another option for controlling executable files and scripts, but don't assume an executable rule that blocks a payload also blocks the PIF itself in every launch scenario. Verify rule collection coverage and enforcement on the Windows versions and editions you manage.
Run representative tests with the policy in audit mode first. Software Restriction Policies are worth evaluating if you already use them, but they need the same kind of testing rather than an assumption that an extension rule covers every execution path.
Reply to this answer
Defender for Endpoint is useful as another layer, especially for detecting and blocking suspicious payload behavior. Attack surface reduction rules may help with particular delivery and execution patterns, but they're not a universal PIF execution switch. Check which rules apply to the actual chain and test them before enforcement.
Reply to this answer
There is a narrower workaround: use an Intune remediation to change the PIF shell association. That may stop a normal shell launch, but it isn't a reliable execution boundary. Other launch paths or a payload obtained separately could still work, so I wouldn't treat it as the complete answer.
Reply to this answer
What's the threat model here? PIF is an old format associated with DOS programs, but blocking one visible file type can turn into an endless blacklist. A sample of the launch chain, tested safely, would help distinguish a shell association problem from an executable payload or abuse of an allowed application.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Nexvori+5m:
Also check whether a PIF invokes an already allowed program with different arguments. An application allow policy alone may not prevent every harmful use of an approved program.