October 30, 201312 yr I'm unable to change the "Last Modified Time" on folders on unRAID. I have a PowerShell script that I want to run, but I discovered that I cannot change the last modified time on some folders. I think I have figured out that I cannot change the last modified time or creation date to before the folder was actually created on unRAID. Ive tried with powershell and a couple other utilities. Everything works just fine if I'm working with folders on a Windows Server. In its simplest form, here is a script to change a date in PowerShell: PS D:\scripts> $folder = get-item '\\nas\TV\Breaking Bad' PS D:\scripts> $folder.LastWriteTime <<<<------- Displays current time Monday, September 30, 2013 8:13:35 AM PS D:\scripts> $folder.LastWriteTime = "10/01/2007" <<<<------- Sets the time you want PS D:\scripts> $folder.LastWriteTime <<<<------- Displays current time (see, it didnt change to the date I wanted) Sunday, September 15, 2013 11:53:02 PM Any ideas? Thanks.
October 30, 201312 yr USE AT YOUR OWN RISK! Take a look here: http://oreilly.com/openbook/samba/book/ch08_01.html 8.1.1.3 dos filetimes 8.1.1.4 dos filetime resolution 8.1.1.5 fake directory create times These are not set @ /etc/samba/smb.conf Not sure if you could set those, but it's a thought.
October 30, 201312 yr Author Well, I tried that and it didnt work. I tried adding the following lines to both smb.conf and smb-extra.conf (separately, of course) and neither one worked. dos filemode = yes dos filetime resolution = yes dos filetimes = yes fake directory create times = yes
Archived
This topic is now archived and is closed to further replies.