Tag Archives: File

Remove a known file from Current User desktop (VBS)

Purpose: Remove a predefined file from every actual user profile folder in a workstation.

In a scenario where you have delivered files to every or some user profiles of a workstation, you need to iterate through the C:\Users\Public\ -subfolders to reach your files. Of course this can be used as well against something that you have not delivered at all. These scenarios can be faulty application shortcuts directly in user desktop, user based configuration files in AppData -folders or similar.

Usage: cscript.exe IT_OSD_VBS_RemoveAFileFromEveryUserProfile.vbs (no parameters exist)
Configuration: You need to insert the file that you want to remove to strFolderPathLocal

Continue Reading