run script from specific location on windows 10 machines

Occasional Visitor

Hi.

 

I need to block  scripts from running on user machines, except from 1 specific location.  Since this will impact policy scripts from running from Intune, I'm looking for help with how to create a policy in Intune that would then copy the .ps1 to this approved directory on the end user machine and run from there.

 

TIA

 

 

1 Reply
Hi

Are you already using applocker? maybe adding some exclusions. So all other locations are blocked except the location where user based powershell scripts are launched from?