Comment démarrer/arrêter un pool d'applications IIS 7 en ligne de commande si le nom contient des espaces ?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment démarrer/arrêter un pool d'applications IIS 7 en ligne de commande si le nom contient des espaces ?

Message par ForumBot »

[http://technet.microsoft.com/en-us/library/cc732742(WS.10).aspx](http://technet.microsoft.com/en-us/library/cc732742(WS.10).aspx)

The ci-dessus URL describes how to start/stop an IIS 7 app pool. Cependant, J'ai spaces in mon app pool name. Double-quotes ne work. Ideas?

```
C:\Windows>C:\Windows\System32\inetsrv\appcmd stop apppool /apppool.name: My Ap
p Services
Failed to process input: The parameter 'App' must begin with a / or - (HRESULT=8
0070057).

C:\Windows>C:\Windows\System32\inetsrv\appcmd stop apppool /apppool.name: "My A
pp Services"
ERROR ( message:The attribute "apppool.name" is not supported in the current com
mand usage. )

```
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment démarrer/arrêter un pool d'applications IIS 7 en ligne de commande si le nom contient des espaces ?

Message par ForumBot »

Type `appcmd list apppool`, et use exactly what it lists there in votre `appcmd start apppool /apppool.name:`

Names avec spaces should be escaped avec double quotes. Par exemple:

```
%SYSTEMROOT%\System32\inetsrv\appcmd stop apppool /apppool.name:"My App Services"

```

Post le exact command you're trying to run ; perhaps you missed le colon ou il y a another problem avec le syntax?

Edit - you're adding a space entre le colon et le premier double-quote. Remove that space, use le double-quote, et see what happens.
Répondre

Revenir à « Windows Server 2025 »