97 lines
3.9 KiB
HTML
97 lines
3.9 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<html dir=ltr><head><title>About Administration Scripts</title>
|
|
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
TempString = navigator.appVersion
|
|
if (navigator.appName == "Microsoft Internet Explorer"){
|
|
// Check to see if browser is Microsoft
|
|
if (TempString.indexOf ("4.") >= 0){
|
|
// Check to see if it is IE 4
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
|
|
}
|
|
else {
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
|
|
}
|
|
}
|
|
else if (navigator.appName == "Netscape") {
|
|
// Check to see if browser is Netscape
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
|
|
}
|
|
else
|
|
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
|
|
//-->
|
|
</script>
|
|
|
|
<SCRIPT LANGUAGE="VBScript">
|
|
<!--
|
|
Sub Window_OnLoad()
|
|
Dim frmContents
|
|
On Error Resume Next
|
|
If Not Parent Is Nothing Then
|
|
Set frmContents = Parent.Contents
|
|
If Not frmContents Is Nothing Then
|
|
frmContents.Window.TOCSynch_Click
|
|
End If
|
|
End If
|
|
End Sub
|
|
//--></SCRIPT>
|
|
|
|
<meta name="description" content="Conceptual information about administration scripts, and links to related information about IIS Admin Objects.">
|
|
<META HTTP-EQUIV="Content-Type" content="text/html; charset=Windows-1252">
|
|
|
|
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
|
|
<META NAME="MS.LOCALE" CONTENT="EN-US">
|
|
<META NAME="MS-IT-LOC" Content="Internet Information Services">
|
|
|
|
</head>
|
|
|
|
<body bgcolor="#FFFFFF" text="#000000">
|
|
<font face="Verdana,Arial,Helvetica">
|
|
|
|
<h1><a name="abtadminscripts">About Administration Scripts</a></h1>
|
|
|
|
<p>This topic contains conceptual information about Administration Scripts, including IIS Admin Objects, the Cscript.exe command-line scripting utility, and the default installation location of Administration Scripts.</p>
|
|
|
|
<ul>
|
|
<li><a href="#iiaso">IIS Admin Objects</a></li>
|
|
<li><a href="#cscript.exe">Cscript.exe</a></li>
|
|
</ul>
|
|
|
|
<h2><a name="iiaso">Internet Information Services Admin Objects </a></h2>
|
|
|
|
<p>Administration Scripts automate some of the most common administrative tasks and demonstrate the functionality of the IIS Admin Objects. You can use them to create and control Web sites, applications, directories,
|
|
and more.</p>
|
|
|
|
<p>You can run Administration Scripts through the use of VBScript files that are installed
|
|
by default to the directory \InetPub\adminscripts on your system drive.</p>
|
|
|
|
<h2><a name="cscript.exe">Cscript.exe</a></h2>
|
|
|
|
<p>The VBScript Administration Scripts are meant to be used with the Cscript.exe command-line scripting utility and work best if Cscript is registered for running .vbs files. </p>
|
|
|
|
<p> To register Cscript, run the <a href="adsutil.htm">adsutil.vbs</a> sample. It will register Cscript.exe for you.</p>
|
|
|
|
<p>You can also register Cscript.exe as the default scripting host by running the following command in a command prompt:</p>
|
|
|
|
<P><strong>cscript //H:cscript</strong></P>
|
|
|
|
|
|
<p>Once Cscript is registered, you can call scripts by themselves without
|
|
specifying the scripting engine. For example, you can type the following in a
|
|
command prompt:</p>
|
|
<p><b>pauseweb.vbs /?</b></p>
|
|
<p>instead of:</p>
|
|
<p><b>cscript pauseweb.vbs /?</b></p>
|
|
<p>However, some scripts will send output to popup windows instead of to the
|
|
command window, which can be troublesome if there is a lot of output. To avoid
|
|
popup windows, always use cscript before the script name.</p>
|
|
|
|
|
|
<hr class="iis" size="1">
|
|
<p align="center"><em><a href="/iishelp/common/colegal.htm">© 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
|
|
|
|
</font>
|
|
</body>
|
|
</html>
|