07-23-2023, 03:43 AM
I'm trying to recycle several of my application pool using commands in a bat file but it doesn't work.
This is my file :
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool1
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool2
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool3
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool4
This is the response in cmd :
Failed to process input: The parameter 'recycle' must begin with a / or - (HRESULT=80070057).
I've tried to had the command start at the beginning of each line but it doesn't work either.
Thanks for your help.
This is my file :
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool1
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool2
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool3
%windir%\system32\inetsrv\appcmd recycle apppool /apppool.name:AppPool4
This is the response in cmd :
Failed to process input: The parameter 'recycle' must begin with a / or - (HRESULT=80070057).
I've tried to had the command start at the beginning of each line but it doesn't work either.
Thanks for your help.