The transition to NetApp MS Azure AD B2C is complete. If you missed the pre-registration, you will be invited to reigister at next log in.
Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

ONTAP Discussions

[Netapp Powershell Toolkit] Assigning an export-policy


I'm having a hard time figuring out how to apply an export-policy to a volume using the netapp powershell toolkit.  Does anyone have a good example of how to do this?  I saw another thread on this subject on these forums but it didn't make it very clear to me.



Hi @Nick_Talbot,


You probably found that post.

It is basically all in there:


1. Connect to a controller:


2. Create your policy and rule:

New-NcExportPolicy -VserverContext SVM_NAME -Name POLICY_NAME 

New-NcExportRule -VserverContext SVM_NAME -Policy POLICY_NAME -ClientMatch HOSTS

3. Apply the policy to the Volume:

update-ncvol -query @{name="VOL_NAME"} -Attributes @{volumeexportattributes=@{policy="POLICY_NAME"}}


You will need to change the follwing information:


- POLICY_NAME (3 times)

- HOSTS (the client match is either a client or a range of IPs, or a subnet)




I hope that helps.





NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner