Set a retention period through Windows Powershell

You can specify when a file will be released from a WORM state through Microsoft Windows Powershell.


  1. Open the Windows PowerShell command prompt.
  2. Optional: Establish a connection to the Isilon cluster by running the net use command.
    The following command establishes a connection to the /ifs directory on
    net use "\\\ifs" /user:root password
  3. Specify the name of the file you want to set a retention period for by creating an object.

    The file must exist in a SmartLock directory.

    The following command creates an object for /smartlock/file.txt:
    $file = Get-Item "\\\ifs\smartlock\file.txt" 
  4. Specify the retention period by setting the last access time for the file.
    The following command sets an expiration date of July 1, 2015 at 1:00 PM:
    $file.LastAccessTime = Get-Date "2015/7/1 1:00 pm"