I am using IIS10 and trying the command:
appcmd set apppool /apppool.name: defaultapplicationpool /recycling.periodicRestart.time:00:30:00
And I get an answer:
APPPOOL object "defaultapplicationpool" changed
But in fact, nothing happened to the pool. The settings were not applied.
I found a solution using powershell:
Set-ItemProperty -Path IIS:\AppPools\defaultapplicationpool -Name recycling.periodicRestart.schedule -Value @{value = '00:30:00'}
But it's more convenient for me to use appcmd.
Can anyone explain why there is such a problem?