Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

PowerScale OneFS 9.8.0.0 Web Administration Guide

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 PowerScale 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
  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 "\\cluster.ip.address.com\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"

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\