Error: Set-FsrmQuotaTemplate : 0x80070057, The parameter is incorrect.
i advised go on here - https://social.technet.microsoft.com/forums/en-us/03e97939-aaa5-4da7-9385-9e86de0d99b9/error-setfsrmquotatemplate-0x80070057-the-parameter-is-incorrect?forum=winserverpowershell
problem:
when try create new or modify settings fsrm quota template, example:
-------------------------------
#create action
$action= new-fsrmaction -type command -command "c:\windows\system32\cmd.exe"
#create thresholds
$threshold = new-fsrmquotathreshold -percentage 80 -action $action
$threshold2 = new-fsrmquotathreshold -percentage 95 -action $action
#create quota
set-fsrmquotatemplate -name "test" -size 1073741824 -threshold $threshold,$threshold2
-------------------------------
receive next errors:
------------------------------set-fsrmquotatemplate : 0x80070057, parameter incorrect.
@ line:1 char:9
+ set-fsrmquotatemplate -name "test" -size 1073741824 -threshold $threshol ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ categoryinfo : invalidargument: (msft_fsrmquotatemplate (name = "test"):root/microsoft/...rmquotatempla
te) [set-fsrmquotatemplate], cimexception
+ fullyqualifiederrorid : mi result 4,set-fsrmquotatemplate
------------------------------
maybe can me resolve errors.
p.s. if add settings manually (use gui) - work perfect, if use command line - not work.
resolved.
need add additionally: "-securitylevel localservice -killtimeout 0" it's ok.
best regards, andrei ...
microsoft certified professional
Windows Server > File Services and Storage
Comments
Post a Comment