首页 > 编程 > JavaScript > 正文

iis6+javascript Add an Extension File

2019-11-21 02:02:53
字体:
来源:转载
供稿:网友
Description

Adds the BITS_Update.dll extension file. 

复制代码 代码如下:

strComputer = "."
Set objWMIService = GetObject _
    ("winmgmts:{authenticationLevel=pktPrivacy}//" _
        & strComputer & "/root/microsoftiisv2")

Set colItems = objWMIService.ExecQuery _
    ("Select * From IIsWebService")

For Each objItem in colItems
    objItem.AddExtensionFile _
        "C:/WINDOWS/system32/bits_update.dll", False, _
            "BITSEXT", True, "BITS Update"
Next
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表