Software Development Kit (SDK) and API Discussions

How to change a flexclone security style via Powershell?

teebee
978 Views

Sorry if this thread is misplaced not sure where to put Powershell questions...

 

I'm running Powershell cmdlets 9.9.1 (latest version) What I'm trying to accomplish is this.

 

I have a CIFS volume. I create a snapshot. I make a flexclone and mount it up.  Everything is good there.

 

However I want to change the security style on the flexclone from NTFS to UNIX .

 

I have gone through every cmdlet that I believe is applicable and can't spot how to make this change any assistance would be appreciated.  It's easy on a brand new volume but can't seem to find how to change the security style on an already existing volume. 

 

Thanks in advance

1 REPLY 1

mbeattie
936 Views

Hi,

 

You can use the "Update-NcVol" CmdLet with a query and attribute template. For example:

 

$q = Get-NcVol -Template
Initialize-NcObjectProperty $q VolumeSecurityAttributes
$q.VolumeSecurityAttributes.Style = "ntfs"
$q.Vserver = "vserver1"
$q.Name = "cifs_data_001"
$a = Get-NcVol -Template
Initialize-NcObjectProperty $a VolumeSecurityAttributes
$a.VolumeSecurityAttributes.Style = "unix"
Update-NcVol -Query $q -Attributes $a

 

Hope that helps

 

/Matt

If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public