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

How to set up user quota with the ONTAP Powershell toolkit

Geum
2,566 Views

 

Storage is running ONTAP 9.14.1, and Powershell toolkit is 9.16.1.2501.

I'm trying to use the ONTAP Powershell toolkit on storage that's connected to AD to set up user quotas.

Powershell entered a command to generate a user quota and got an error message

 

PS > $Volume = 'userdata_test'

PS > $UserID = '1653409'

PS > $VServer = ‘svm1_main'

PS > New-NcQuota -Volume $Volume -Qtree "" -QuotaTarget $UserID -QuotaType User -DiskLimit 5GB -VserverContext $VServer

New-NcQuota : The term 'New-NcQuota' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

+ New-NcQuota -Volume $Volume -Qtree "" -QuotaTarget  ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFoundL(New-NcQuota:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

 

What command should I use to create userquota using Powershell toolkit?

 

Thanks&Regards,

Geum

 

1 ACCEPTED SOLUTION

Ashun
1,614 Views

I think you have used the wrong command. You should select this cmdlet   **Add-NcQuota**.
The command help can be viewed in the module directory
.. \ Modules \ NetApp ONTAP \ 9.16.1.2501 \ webhelp.C \ cmdlet_Add - NcQuota. HTML

View solution in original post

1 REPLY 1

Ashun
1,615 Views

I think you have used the wrong command. You should select this cmdlet   **Add-NcQuota**.
The command help can be viewed in the module directory
.. \ Modules \ NetApp ONTAP \ 9.16.1.2501 \ webhelp.C \ cmdlet_Add - NcQuota. HTML

Public