Easy way to create a logon script with intune?

Highlighted
Occasional Contributor

Is there a way to create a logon script or any way to get a powershell script to run at every logon on a Win 10 1903 device that in Intune?

 

2 Replies
Highlighted
I don't think so, a schedule task my help with this and you could deliver that task through Intune perhaps. But I have to ask why or what you're trying to achieve?
Highlighted

@PeterEgerton 

 

as crazy as this sounds, i'm looking at a solution to clean up duplicates (copies) of shortcuts the MS Teams/Onedrive constantly creates when we have KFM enabled. This will be used to cleanup others also.

 

I've tried a few solutions online, though they either run once with PS (and that's it) or not at all. (Intune)