Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1570
  • Last Modified:

Using Powershell to create a Netapp Volume

I am attempting to automate a task to create a volume on our Netapp Filer using the Powershell Toolkit.  So far it is fairly easy, however one item that I am unable to find is how to set, or even check the Security Style (NTFS, UNIX, MIXED).

Can anyone tell me how do I check this, and/or change this setting using Powershell?
0
malarkie
Asked:
malarkie
  • 3
2 Solutions
 
FilipZahradnikCommented:
New-NaVol -Name "myvol1" -Aggregate "aggr1" -Size "5g" 
Set-NAQtree -Path "/vol/myvol1" -SecurityStyle "NTFS"

Open in new window

You use the Qtree command to set security style on both volumes and qtrees.
0
 
FilipZahradnikCommented:
To check the security style, use this:
Get-NaQtree "/vol/myvol1" | select SecurityStyle

Open in new window

0
 
malarkieAuthor Commented:
It seems a little odd that you would use a qtree command for both a Volume, and a Qtree.  Either way though, those were exactly what I was looking for.

thank you.
0
 
FilipZahradnikCommented:
I know it's confusing, but technically the root of the volume is a qtree as well.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now