NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

Powershell New-NcFileserviceAudit Possible bug

Zeno
2,674 Views

I am trying to use PowerShell to script the audit configuration process and everything is working except New-NcFileserviceAudit. From what I can see in PowerShell ISE you can set the parameters up either using "RotateSize" or "RotateSched" . I am trying to use RotateSched and when I run it I get the error "New-NcFileserviceAudit : Invalid value specified for "rotate-size" element within "fileservice-audit-config-create": "0"." Even though "rotate-size" shouldn't be something that is set under the rotate schedule and yes I have tried adding it as a parameter and it fails out with "New-NcFileserviceAudit : Parameter set cannot be resolved using the specified named parameters." Here is what I am trying to run "New-NcFileserviceAudit -Destination /Junctionpath -RotateLimit 1440 -AuditEvents file_ops -RotateMinute 0  -Format xml -VserverContext SVM Name". I have removed the destination and vservercontext information from here.

 

Any help would be greatly appreciated. Thank you,

0 REPLIES 0
Public