Microsoft Virtualization Discussions

How to set up user quota with the ONTAP Powershell toolkit

Geum
1,165 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
213 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
214 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