On Error Resume Next

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

arrComputers = Array("SRV2003")
For Each strComputer In arrComputers
   WScript.Echo
   WScript.Echo "=========================================="
   WScript.Echo "Computer: " & strComputer
   WScript.Echo "=========================================="

   Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftIISv2")
   Set colItems = objWMIService.ExecQuery("SELECT * FROM IIsWebVirtualDirSetting", "WQL", _
                                          wbemFlagReturnImmediately + wbemFlagForwardOnly)

   For Each objItem In colItems
 objItem.UNCPassword = "password"
 objItem.UNCUserName = "uncuser"
 objItem.Path ="\\srv2003\websites\testsite"
 objItem.Put_
 
      WScript.Echo "UNCPassword: " & objItem.UNCPassword
      WScript.Echo "UNCUserName: " & objItem.UNCUserName
      WScript.Echo "path: " & objItem.Path

      WScript.Echo
   Next
Next