So stoppen / starten Sie einen Anwendungspool in IIS 8
Caveat: mit jeweils einer Zeile!
Ich hatte diese Befehle für die Verwendung in IIS 6 und sie funktionierten einwandfrei.
Start
(get-wmiobject -namespace 'root\MicrosoftIISv2' -computername 'REMOTE_SERVER' -class 'IIsApplicationPool' | where-object {$_.Name -eq 'W3SVC/AppPools/MY_FANCY_APPPOOL'}).InvokeMethod('Stop', $null)"
-und
Halt
(get-wmiobject -namespace 'root\MicrosoftIISv2' -computername 'REMOTE_SERVER' -class 'IIsApplicationPool' | where-object {$_.Name -eq 'W3SVC/AppPools/MY_FANCY_APPPOOL'}).InvokeMethod('Start', $null)
Ich suche nach einer Alternative in IIS 8. Ich brauche ein paar Einzeiler und sieMus be Powershell-Befehle. Ich rufe sie über ein @ aInvokePowerShellCommand
Aktivität in TFS. Gibt es da draußen jemanden, der mir helfen kann?