IIS 6.0 Adsutil.vbs server name command line parameter

Adsutil.vbs is a versatile and useful tool to administer IIS 6.0 servers. But did you know there is a remote server command line parameter? With this you can use Adsutil.vbs remotely.
Published on Tuesday, 12 January 2010

Adsutil.vbs is a versatile and useful tool to administer IIS 6.0 servers, and everyone knows it, of course. But, did you know there is a remote server command line parameter? With this you can use Adsutil.vbs on remote Windows Server IIS 6.0 servers. The parameter is:


-s:

IIS 6.0 Remote management with adsutil.vbs (adsutil.vbs to automate tasks on local and remote servers)

You can administer remote IIS 6.0 webservers with this parameter setting. Very convenient in a loop:

for /f %i in (server_list.txt)
 do @cscript c:\Inetpub\AdminScripts\Adsutil.vbs
 GET W3SVC/1/ROOT/AppPoolId -s:%i

You can find adsutil.vbs (and metaacl.vbs) as download here. Save both .txt files as .vbs.