- Open the Windows PowerShell command prompt.
- 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 cluster.ip.address.com:
net use "\\cluster.ip.address.com\ifs" /user:root password
- 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 "\\cluster.ip.address.com\ifs\smartlock\file.txt"
- 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"