Hi all,
I'm trying to script storage quotas on a windows 2012 server. I am running the console as admin but I get the following error though;
PS C:\Windows\system32> New-FsrmQuota -CimSession Server10 -Path "C:\temp" -Description "limit usage to 20 MB based on template." -Template "20 MB Limit"
New-FsrmQuota : 0x80045301, The requested object was not found.
At line:1 char:1
+ New-FsrmQuota -CimSession Server10 -Path "C:\temp" -Description "limit usage to ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_FSRMQuota:Root/Microsoft/.../MSFT_FSRMQuota) [New-FsrmQuota], CimExc
eption
+ FullyQualifiedErrorId : HRESULT 0x80045301,New-FsrmQuota
+ PSComputerName : Server10
The template does exist. Any ideas what this could be?
Thanks in advance.