简体   繁体   中英

Remove properties from files in powershell

I need to remove all properties (title, author, camera,...) from files in one folder with PowerShell (in Windows 10). Is that even possible or any simple command to do that or would I need to remove each property one by one?

If you need a simple one-off solution or occasional solution Windows explorer has this function built-in.

  1. Select all your files in the folder.
  2. Right click one and select Properties then Details tab.
  3. Bottom of Properties has "Remove Properties and Personal Information" --Has options to create copies of files with properties removed or remove from active files. Select properties individually or Select All.

删除元

This blog post explains how to do it for exel files, you can adjust it to work for other file types as well.

https://devblogs.microsoft.com/scripting/use-powershell-to-remove-personal-information-from-excel/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM