Forum Discussion

nekocat's avatar
nekocat
Copper Contributor
Jul 22, 2021

run script from specific location on windows 10 machines

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

 

 

  • 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?

Resources