Forum Discussion

Ron Mckerral's avatar
Ron Mckerral
Copper Contributor
Nov 06, 2019

Easy way to create a logon script with intune?

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

  • 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?
    • Ron Mckerral's avatar
      Ron Mckerral
      Copper Contributor

      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)

       

Resources