Event banner
AMA: Windows management with Intune
Event Ended
Wednesday, Mar 20, 2024, 08:30 AM PDTEvent details
Do you manage Windows endpoints in Intune? Do you have questions that extend beyond configuration and involve ensuring security, compliance, and a seamless user experience on Windows? Join this Ask M...
Char_Cheesman
Updated Dec 27, 2024
DerekTEAL
Mar 20, 2024Copper Contributor
We have applications pushed via Intune to a device that runs scripts or commands on the computer but get blocked due to the application running at user level. (users get blocked using cmd and PowerShell) is there a way to allow the applications but still Deny access to the user? At present I have restricted PowerShell to only remotely signed but it's not ideal on student computers.
RichR-VPS
Mar 20, 2024Brass Contributor
Not sure this is helpful but on the off chance that it is....
I have had to put this line at teh beginning of some of my scripts
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -scope Process -Force
then at the end
Set-ExecutionPolicy -ExecutionPolicy Restricted -scope Process -Force
not sure it is needed at the end since the process will be ended but it felt right to reset the value at the end.