Microsoft Virtualization Discussions

Delete an export policy via Powershell

b22

Hello community,

 

I want to write a powershell command for the WFA to delete exports policys, since there is none.

But I just can't find a Powershell command that does that. All I can find is the 'New-NcExportPolicy' command to create an export policy.

So is there simply no command for deleting one or am I missing something?

 

Would be happy if you could tell me the appropriate command.

1 ACCEPTED SOLUTION

mark_schuren

Which version of PSTK are you using? I use 4.4 and it shows me:

 

PS C:\> Get-Command *NcExport*

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Cmdlet          Add-NcExportRuleClientmatches                      dataontap
Cmdlet          Get-NcExportAccessCacheConfig                      dataontap
Cmdlet          Get-NcExportPolicy                                 dataontap
Cmdlet          Get-NcExportRule                                   dataontap
Cmdlet          Get-NcExportsAccessCache                           dataontap
Cmdlet          New-NcExportPolicy                                 dataontap
Cmdlet          New-NcExportRule                                   dataontap
Cmdlet          Remove-NcExportPolicy                              dataontap
Cmdlet          Remove-NcExportRule                                dataontap
Cmdlet          Remove-NcExportRuleClientmatches                   dataontap
Cmdlet          Rename-NcExportPolicy                              dataontap
Cmdlet          Set-NcExportAccessCacheConfig                      dataontap
Cmdlet          Set-NcExportRule                                   dataontap
Cmdlet          Set-NcExportRuleIndex                              dataontap
Cmdlet          Set-NcExportsAccessCache                           dataontap
Cmdlet          Test-NcExportAccess                                dataontap

View solution in original post

1 REPLY 1

mark_schuren

Which version of PSTK are you using? I use 4.4 and it shows me:

 

PS C:\> Get-Command *NcExport*

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Cmdlet          Add-NcExportRuleClientmatches                      dataontap
Cmdlet          Get-NcExportAccessCacheConfig                      dataontap
Cmdlet          Get-NcExportPolicy                                 dataontap
Cmdlet          Get-NcExportRule                                   dataontap
Cmdlet          Get-NcExportsAccessCache                           dataontap
Cmdlet          New-NcExportPolicy                                 dataontap
Cmdlet          New-NcExportRule                                   dataontap
Cmdlet          Remove-NcExportPolicy                              dataontap
Cmdlet          Remove-NcExportRule                                dataontap
Cmdlet          Remove-NcExportRuleClientmatches                   dataontap
Cmdlet          Rename-NcExportPolicy                              dataontap
Cmdlet          Set-NcExportAccessCacheConfig                      dataontap
Cmdlet          Set-NcExportRule                                   dataontap
Cmdlet          Set-NcExportRuleIndex                              dataontap
Cmdlet          Set-NcExportsAccessCache                           dataontap
Cmdlet          Test-NcExportAccess                                dataontap

View solution in original post

Announcements
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
Public