Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

quota management

$
0
0

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.


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>