Input Error: Can not find script file “c:\inetpub\adminscripts\adsutil.vbs”

Background

Trying to inspect an IIS Configuration setting on a MS Windows 2008 box and ran into an error as the MS Script that drives the whole thing is missing

Lab

Code


set "_baseScriptFolder=c:\inetpub\adminscripts"

set "_identifier=1"

cscript c:\inetpub\adminscripts\adsutil.vbs get w3svc/1/root/reports/NTAuthenticationProviders

Output


Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "c:\inetpub\adminscripts\adsutil.vbs".

 

Diagnostic

MS Windows 2008 ships with IIS v7.  The Admin Scripts were discontinued post IIS v6.

To gain access to c:\inetpub\adminscripts\adsutil.vbs, one has to augment IIS with “IIS 6 Scripting Tools“.

Remediation

GUI

Steps

  1. Open Server Manager
  2. Click on Web Server (IIS)
  3. Scroll to Role Services and click “Add Role Services”
  4. You will need to install
    • IIS 6 Management Compatibility
      • IIS 6 Metabase Compatibility
      • IIS 6 WMI Compatibility
      • IIS 6 Scripting Tools

 

AddRoleServices-Menu

Walkthrough

SelectRoleServices

Revised

SelectRoleServices - After

Script


start /w pkgmgr /iu:IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts

References

AdminScripts folder is missing in IIS 7

  1. AdminScripts folder is missing in inetpub in IIS 7 RS
    Link
  2. Missing IIS admin scripts – Can not find script file
    Link

 

IIS Management

  1. Saad Ladki
    Home > Learn > Install > Chapter 1. Installing IIS 7 > Install Typical IIS Workloads
    Link
  2. IIS Team – You do not have permission to view this directory or page using the credentials that you supplied.
    Link

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s