注意IsWebServer.ServerBindings,它就是你想要的..IIsWebService (ADSI) You can use the IIsWebService object to set inheritable metabase properties for Web sites and Web virtual directories. The IIsWebService object is an ADSI container object.ADsPath IIS://MachineName/W3SVC where MachineName can be any computer name or LocalHost.Syntax varReturn= object.MethodParameters varReturn A variable that receives the return value from the method.object A variable that contains the IIsWebServer object, usually as a result of a previous GetObject operation.Method The object method chosen. Can Contain IIsFilters (ADSI) IIsWebServer (ADSI) IIsWebInfo (ADSI) Properties Windows ADSI Object Properties Metabase Properties A-Asp... AccessFlags AspEnableTypelibCache AccessSSLFlags AspErrorsToNTLog AdminACL AspExceptionCatchEnable AllowPathInfoForScriptMappings AspLogErrorRequests AnonymousPasswordSync AspProcessorThreadMax AnonymousUserName AspQueueConnectionTestTime AnonymousUserPass AspQueueTimeout AppAllowClientDebug AspRequestQueueMax AppAllowDebugging AspScriptEngineCacheMax AppFriendlyName AspScriptErrorMessage AppIsolated AspScriptErrorSentToBrowser AppPackageID AspScriptFileCacheSize AppPackageName AspScriptLanguage AppRoot AspSessionMax AppWamClsid AspScriptTimeout AspAllowOutOfProcComponents AspSessionTimeout AspAllowSessionState AspThreadGateEnabled AspBufferingOn AspThreadGateLoadHigh AspCodepage AspThreadGateLoadLow AspEnableApplicationRestart AspThreadGateSleepDelay AspEnableAspHtmlFallback AspThreadGateSleepMax AspEnableChunkedEncoding AspThreadGateTimeSlice AspEnableParentPaths AspTrackThreadingModel
M-U ScriptMaps MaxConnections ServerAutoStart MaxEndpointConnections ServerBindings MimeMap ServerComment NetLogonWorkstation ServerListenBacklog NTAuthenticationProviders ServerListenTimeout PasswordCacheTTL ServerSize PasswordChangeFlags SSIExecDisable PasswordExpirePrenotifyDays SslUseDsMapper PoolIdcTimeout ProcessNTCRIfLoggedOn UploadReadAheadSize UseHostName Realm WAMUserName RedirectHeaders WAMUserPass Methods Windows ADSI Object Methods Standard methods for ADSI objects. Windows ADSI Container Object Methods Standard methods for ADSI container objects. Requirements Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed [IIS 5.0] [IIS 5.1] [IIS 6.0] IIsWebServer (ADSI) You can use the IIsWebServer object to set metabase properties that apply to a specific Web virtual server and to set inheritable metabase properties for virtual directories, Web directories, and Web files. Specific methods are also available to control server operation. Web virtual servers are identified in the metabase by their index numbers. The first Web server is number 1, the second is number 2, and so on.The IIsWebServer object is an IIS ADSI container object.ADsPath IIS://MachineName/W3SVC/N where MachineName can be any computer name or LocalHost.Syntax varReturn= objWebServer.MethodParameters varReturn Specifies result value.ObjWebServer Refers to the IIS ADSI object.Method Specifies the method called. Can Contain IIsCertMapper (ADSI) IIsWebVirtualDir (ADSI) IIsFilters (ADSI) Properties Windows ADSI Object Properties Metabase Properties A-Asp... AccessFlags AspEnableParentPaths AccessSSLFlags AspEnableTypelibCache AdminACL AspErrorsToNTLog AllowKeepAlive AspExceptionCatchEnable AllowPathInfoForScriptMappings AspLogErrorRequests AnonymousPasswordSync AspProcessorThreadMax AnonymousUserName AspQueueConnectionTestTime AnonymousUserPass AspQueueTimeout AppAllowClientDebug AspRequestQueueMax AppAllowDebugging AspScriptEngineCacheMax AppFriendlyName AspScriptErrorSentToBrowser AppIsolated AspScriptFileCacheSize AppOopRecoverLimit AspScriptLanguage AppPackageID AspSessionMax AppPackageName AspScriptTimeout AppRoot AspSessionTimeout AppWamClsid AspThreadGateEnabled AspAllowOutOfProcComponents AspThreadGateLoadHigh AspAllowSessionState AspThreadGateLoadLow AspBufferingOn AspThreadGateSleepDelay AspCodepage AspThreadGateSleepMax AspEnableApplicationRestart AspThreadGateTimeSlice AspEnableAspHtmlFallback AspTrackThreadingModel AspEnableChunkedEncoding
M-U MaxBandwidth RedirectHeaders MaxBandwidthBlocked ScriptMaps MaxConnections SecureBindings MaxEndpointConnections ServerAutoStart MimeMap ServerBindings NetLogonWorkstation ServerComment NotDeletable ServerListenBacklog NTAuthenticationProviders ServerListenTimeout PasswordCacheTTL ServerSize PasswordChangeFlags ServerState PasswordExpirePrenotifyDays SSIExecDisable PoolIdcTimeout ProcessNTCRIfLoggedOn UploadReadAheadSize UseHostName Realm Methods IIsWebServer.Continue (ADSI) Resumes the server. IIsWebServer.Pause (ADSI) Pauses the server. IIsWebServer.Start (ADSI) Starts the server. IIsWebServer.Status (ADSI) Retrieves the current status of the server. IIsWebServer.Stop (ADSI) Stops the server. See Also Windows ADSI Object Methods Standard methods for ADSI objects. Windows ADSI Container Object Methods Standard methods for ADSI container objects. Requirements Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed
并没有我建的站点阿?
thank you, boybluesky
如果还是在解决上次帖子那个问题,建议你不要使用iis直接建立别的机器上的站点。
我看见21code上有个webserver程序,应该是可以实现对二级域名站点的管理的。如果再配合对host文件的操作,应该也可以实现对一级域名的管理。
You can use the IIsWebService object to set inheritable metabase properties for Web sites and Web virtual directories. The IIsWebService object is an ADSI container object.ADsPath
IIS://MachineName/W3SVC
where MachineName can be any computer name or LocalHost.Syntax
varReturn= object.MethodParameters
varReturn
A variable that receives the return value from the method.object
A variable that contains the IIsWebServer object, usually as a result of a previous GetObject operation.Method
The object method chosen.
Can Contain
IIsFilters (ADSI) IIsWebServer (ADSI)
IIsWebInfo (ADSI) Properties
Windows ADSI Object Properties
Metabase Properties
A-Asp...
AccessFlags AspEnableTypelibCache
AccessSSLFlags AspErrorsToNTLog
AdminACL AspExceptionCatchEnable
AllowPathInfoForScriptMappings AspLogErrorRequests
AnonymousPasswordSync AspProcessorThreadMax
AnonymousUserName AspQueueConnectionTestTime
AnonymousUserPass AspQueueTimeout
AppAllowClientDebug AspRequestQueueMax
AppAllowDebugging AspScriptEngineCacheMax
AppFriendlyName AspScriptErrorMessage
AppIsolated AspScriptErrorSentToBrowser
AppPackageID AspScriptFileCacheSize
AppPackageName AspScriptLanguage
AppRoot AspSessionMax
AppWamClsid AspScriptTimeout
AspAllowOutOfProcComponents AspSessionTimeout
AspAllowSessionState AspThreadGateEnabled
AspBufferingOn AspThreadGateLoadHigh
AspCodepage AspThreadGateLoadLow
AspEnableApplicationRestart AspThreadGateSleepDelay
AspEnableAspHtmlFallback AspThreadGateSleepMax
AspEnableChunkedEncoding AspThreadGateTimeSlice
AspEnableParentPaths AspTrackThreadingModel
Auth...-I
AuthFlags DefaultDoc
AuthPersistence DefaultDocFooter
CacheControlCustom DefaultLogonDomain
CacheControlMaxAge DirBrowseFlags
CacheControlNoCache DirectoryLevelsToScan
CacheISAPI DisableSocketPooling
ContentIndexed DontLog
ConnectionTimeout EnableDocFooter
CPULimitLogEvent EnableReverseDns
CPULimitPause HttpCustomHeaders
CPULimitPriority HttpErrors
CPULimitProcStop HttpExpires
CPUResetInterval HttpPics
CreateCGIWithNewConsole HttpRedirect
CreateProcessAsUser InProcessIsapiApps
IPSecurity
Log...
LogExtFileFlags LogOdbcPassword
LogFileDirectory LogOdbcTableName
LogFileLocaltimeRollover LogOdbcUserName
LogFilePeriod LogonMethod
LogFileTruncateSize LogPluginClsid
LogOdbcDataSource LogType
M-U ScriptMaps
MaxConnections ServerAutoStart
MaxEndpointConnections ServerBindings
MimeMap ServerComment
NetLogonWorkstation ServerListenBacklog
NTAuthenticationProviders ServerListenTimeout
PasswordCacheTTL ServerSize
PasswordChangeFlags SSIExecDisable
PasswordExpirePrenotifyDays SslUseDsMapper
PoolIdcTimeout
ProcessNTCRIfLoggedOn UploadReadAheadSize
UseHostName
Realm WAMUserName
RedirectHeaders WAMUserPass Methods
Windows ADSI Object Methods Standard methods for ADSI objects.
Windows ADSI Container Object Methods Standard methods for ADSI container objects. Requirements
Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed
[IIS 5.0] [IIS 5.1] [IIS 6.0]
IIsWebServer (ADSI)
You can use the IIsWebServer object to set metabase properties that apply to a specific Web virtual server and to set inheritable metabase properties for virtual directories, Web directories, and Web files. Specific methods are also available to control server operation. Web virtual servers are identified in the metabase by their index numbers. The first Web server is number 1, the second is number 2, and so on.The IIsWebServer object is an IIS ADSI container object.ADsPath
IIS://MachineName/W3SVC/N
where MachineName can be any computer name or LocalHost.Syntax
varReturn= objWebServer.MethodParameters
varReturn
Specifies result value.ObjWebServer
Refers to the IIS ADSI object.Method
Specifies the method called.
Can Contain
IIsCertMapper (ADSI) IIsWebVirtualDir (ADSI)
IIsFilters (ADSI) Properties
Windows ADSI Object Properties
Metabase Properties
A-Asp...
AccessFlags AspEnableParentPaths
AccessSSLFlags AspEnableTypelibCache
AdminACL AspErrorsToNTLog
AllowKeepAlive AspExceptionCatchEnable
AllowPathInfoForScriptMappings AspLogErrorRequests
AnonymousPasswordSync AspProcessorThreadMax
AnonymousUserName AspQueueConnectionTestTime
AnonymousUserPass AspQueueTimeout
AppAllowClientDebug AspRequestQueueMax
AppAllowDebugging AspScriptEngineCacheMax
AppFriendlyName AspScriptErrorSentToBrowser
AppIsolated AspScriptFileCacheSize
AppOopRecoverLimit AspScriptLanguage
AppPackageID AspSessionMax
AppPackageName AspScriptTimeout
AppRoot AspSessionTimeout
AppWamClsid AspThreadGateEnabled
AspAllowOutOfProcComponents AspThreadGateLoadHigh
AspAllowSessionState AspThreadGateLoadLow
AspBufferingOn AspThreadGateSleepDelay
AspCodepage AspThreadGateSleepMax
AspEnableApplicationRestart AspThreadGateTimeSlice
AspEnableAspHtmlFallback AspTrackThreadingModel
AspEnableChunkedEncoding
Auth...-I
AuthFlags CreateProcessAsUser
AuthPersistence DefaultDoc
CacheControlCustom DefaultDocFooter
CacheControlMaxAge DefaultLogonDomain
CacheControlNoCache DirBrowseFlags
CacheISAPI DisableSocketPooling
CGITimeout DontLog
ConnectionTimeout EnableDocFooter
CPULimitLogEvent EnableReverseDns
CPULimitPause FrontPageWeb
CPULimitPriority HttpCustomHeaders
CPULimitProcStop HttpErrors
CPULimitsEnabled HttpExpires
CPUResetInterval HttpPics
CreateCGIWithNewConsole HttpRedirect
IPSecurity
Log...
LogExtFileFlags LogOdbcPassword
LogFileDirectory LogOdbcTableName
LogFileLocaltimeRollover LogOdbcUserName
LogFilePeriod LogonMethod
LogFileTruncateSize LogPluginClsid
LogOdbcDataSource LogType
M-U
MaxBandwidth RedirectHeaders
MaxBandwidthBlocked ScriptMaps
MaxConnections SecureBindings
MaxEndpointConnections ServerAutoStart
MimeMap ServerBindings
NetLogonWorkstation ServerComment
NotDeletable ServerListenBacklog
NTAuthenticationProviders ServerListenTimeout
PasswordCacheTTL ServerSize
PasswordChangeFlags ServerState
PasswordExpirePrenotifyDays SSIExecDisable
PoolIdcTimeout
ProcessNTCRIfLoggedOn UploadReadAheadSize
UseHostName
Realm Methods
IIsWebServer.Continue (ADSI) Resumes the server.
IIsWebServer.Pause (ADSI) Pauses the server.
IIsWebServer.Start (ADSI) Starts the server.
IIsWebServer.Status (ADSI) Retrieves the current status of the server.
IIsWebServer.Stop (ADSI) Stops the server. See Also
Windows ADSI Object Methods Standard methods for ADSI objects.
Windows ADSI Container Object Methods Standard methods for ADSI container objects. Requirements
Platforms: Windows 2000 with IIS 5.0 installed, Windows XP with IIS 5.1 installed, Windows Server 2003 family with IIS 6.0 installed
http://msdn.microsoft.com/library/en-us/iisref/htm/ref_prog_iaorefiws.asp?frame=true