Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cannot change "Last Modified Time"

Featured Replies

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.

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.

  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.