Category filter

Script to rename files on Windows 10 devices

Management of files becomes easier if they are named sensibly. Hexnode lets admins to rename files on multiple devices simultaneously using scripts.

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

Batch Script

E.g., To rename the file test.txt in the Desktop of the user Deborah to testing.txt,


cd C:\Users\Deborah\Desktop
ren test.txt testing.txt

Powershell Script

E.g., To rename the file test.txt in the Desktop of the user Deborah to testing.txt,


rename-item “C:\Users\Deborah\Desktop\test.txt” “C:\Users\Deborah\Desktop\testing.txt”

Notes:

  • Use quotes if the name has a space in between.
  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository