AddstheBITS_Update.dllextensionfile.
复制代码 代码如下:
strComputer="."
SetobjWMIService=GetObject_
("winmgmts:{authenticationLevel=pktPrivacy}"_
&strComputer&"rootmicrosoftiisv2")
SetcolItems=objWMIService.ExecQuery_
("Select*FromIIsWebService")
ForEachobjItemincolItems
objItem.AddExtensionFile_
"C:WINDOWSsystem32bits_update.dll",False,_
"BITSEXT",True,"BITSUpdate"
Next