Easy way to create a logon script with intune?

%3CLINGO-SUB%20id%3D%22lingo-sub-989992%22%20slang%3D%22en-US%22%3EEasy%20way%20to%20create%20a%20logon%20script%20with%20intune%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-989992%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20there%20a%20way%20to%20create%20a%20logon%20script%20or%20any%20way%20to%20get%20a%20powershell%20script%20to%20run%20at%20every%20logon%20on%20a%20Win%2010%201903%20device%20that%20in%20Intune%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-989992%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-993036%22%20slang%3D%22en-US%22%3ERE%3A%20Easy%20way%20to%20create%20a%20logon%20script%20with%20intune%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-993036%22%20slang%3D%22en-US%22%3EI%20don't%20think%20so%2C%20a%20schedule%20task%20my%20help%20with%20this%20and%20you%20could%20deliver%20that%20task%20through%20Intune%20perhaps.%20But%20I%20have%20to%20ask%20why%20or%20what%20you're%20trying%20to%20achieve%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-993112%22%20slang%3D%22en-US%22%3ERE%3A%20Easy%20way%20to%20create%20a%20logon%20script%20with%20intune%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-993112%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F293080%22%20target%3D%22_blank%22%3E%40PeterEgerton%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eas%20crazy%20as%20this%20sounds%2C%20i'm%20looking%20at%20a%20solution%20to%20clean%20up%20duplicates%20(copies)%20of%20shortcuts%20the%20MS%20Teams%2FOnedrive%20constantly%20creates%20when%20we%20have%20KFM%20enabled.%20This%20will%20be%20used%20to%20cleanup%20others%20also.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20tried%20a%20few%20solutions%20online%2C%20though%20they%20either%20run%20once%20with%20PS%20(and%20that's%20it)%20or%20not%20at%20all.%20(Intune)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
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)