Forum Discussion

handiansudianto's avatar
handiansudianto
Copper Contributor
Oct 06, 2022

re-apply policy

I have script to delete 'test.zip' on the desktop and this scrip is working by intune.

But i the user create another file with same name and same extension 'test.zip' the file is not deleted. How we can force intune to apply the policy all of time? 

  • Is it on the public desktop or in c:\users\username\desktop? If you are licensed correctly, pro-active remediations is the way to go
    • handiansudianto's avatar
      handiansudianto
      Copper Contributor

      not only in c:\users\username\desktop but also for another specific path (in some folder in D drive) Also i already pin some app to the taskbar, and when user delete the shortcut can intune re-appy the policy?

      • Harm_Veenstra's avatar
        Harm_Veenstra
        MVP
        You could create a Win32 package with a detection script that checks for the files in different locations if it finds them... (Exit 1 if found, exit 0 if not found) Then it should execute the install script for the package which is basically a delete file in those locations ...

        For the other question, I suggest opening a new topic 🙂

Resources