Recycling IIS application pool using PowerShell: “Exception calling Recycle”
问题 It looks like a recent windows update has broken some functionality I was using to recycle IIS6 application pools, as this has been working for months up to today. Exception calling "Recycle" : "Win32: The object identifier does not representException calling "Recycle" : "Win32: The object identifier does not represent a valid object. the function I was using to recycle the application pools was: function recycle-pool($strServerName) { $objWMI = [WmiSearcher] "Select * From IIsApplicationPool