Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Recommended Posts

Posted

I want to rename the file extension of all the student users ntuser.dat to ntuser.man, i have this powershell script that will do the rename but powershell cant see the files as they are hidden, i am a complete powershell novice so any help to achieve this task would be appreciated.

 

dir -recurse *.dat | rename-item -newname { $_.name -replace '.dat','.MAN' }

Posted
Thanks for that Steve that did the trick :D, i have just found out there are a lot of files in the user profiles dir with the extension of .dat, do you know how i would just target the ntusers.dat file?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...