Take the tour ×  I have the following in a vbs file that i am
trying to run from the command line:  strServerName =
"ServerName" strAppPoolName = "DefaultAppPool" set objAppPools =
GetObject("IIS://" & strServerName
& "/w3svc/AppPools/" & strAppPoolName & "")  And yet when I run
the vbs from cmd line i get the following error:  Microsoft
VBScript runtime error: ActiveX component can't create object:
'Get Object'_  I am running XP on my local machine, and the
remote machine has IIS 7.  How can I get this to work?
share|improve this question add comment  5 Answers  I am not
sure regarding the particular vb script but I would recommend
using "appcmd" (http://learn.iis.net/page.aspx/114/getting-
started-with-appcmdexe)    1. Add %windir%\system32\inetsrv to
your path if it is not already   2. in a command prompt type:
appcmd recycle apppool "apppool_name" share|improve this answer
appcmd wont work for remote machines. –  Adrian Mar 23 '11 at
13:30 add comment  While not a vbs fi