Files and Folders Security with VBS

The following script allows to modify the security of files or folders (including sub-folders and content).

In the following example, the following actions are executed:

  • Creation of an INF file in C:\Temp (Security.inf)
  • This INF allows to grant read and write access rights to the folder C:\Program Files\Soft\Folder and the file C:\Windows\system32\File
  • Execution of the INF file and creation of a log file in C:\Temp (Security.log)
  • Deletion of the INF file