Skip to main content
NetApp Response to Russia-Ukraine Cyber Threat
In response to the recent rise in cyber threat due to the Russian-Ukraine crisis, NetApp is actively monitoring the global security intelligence and updating our cybersecurity measures. We follow U.S. Federal Government guidance and remain on high alert. Customers are encouraged to monitor the Cybersecurity and Infrastructure Security (CISA) website for new information as it develops and remain on high alert.
NetApp Knowledge Base

SnapLock: Unable to extend retention time of WORM file using PowerShell

Views:
307
Visibility:
Public
Votes:
1
Category:
snaplock
Specialty:
dp
Last Updated:

Applies to

  • ONTAP 9
  • Data ONTAP 8.2 7-Mode
  • Data ONTAP
  • SnapLock

Issue

  • Unable to extend the retention date of a SnapLock compliance WORM-locked file.
  • Unable to modify the file's atime using PowerShell.
  • While attempting to extend the retention date of one of these WORM files, by changing the atime of a file to a later timestamp, an error message denying the action is reported. When attempting to change the atime on the file using PowerShell on the file accessed via a CIFS share.

Example PowerShell script is as follows:
$a = Get-Item "z:\test\test2.txt"$a.LastAccessTime = (Get-Date).AddDays(2)$a.IsReadOnly = $true$a.LastAccessTime = (Get-Date).AddDays(5)

  • While attempting to run the last command, that updates the atime, the following error is reported:

Exception setting "LastAccessTime": "Access to the path 'Z:\test\test2.txt' is denied."At line:1 char:1+ $a.LastAccessTime = (Get-Date).AddDays(5)+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [], SetValueInvocationException + FullyQualifiedErrorId : ExceptionWhenSetting

 

Scan to view the article on your device
CUSTOMER EXCLUSIVE CONTENT

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support