All Forums >> [Scripting] >> Post a VBScript >> VBScript to Force WSUS Updates and Detection in a Network Range Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
'************************************************************************************************************** '* Wsus Remote Force in Network Range * '* ------------------------------------- * '* Written by: Jeferson Propheta * '* July / 2007 * '************************************************************************************************************** On Error Resume Next
If objOUTFSO.FolderExists(strOutDirectory) Then Set objFolder = objOUTFSO.GetFolder(strOutDirectory) Else Set objFolder = objOUTFSO.CreateFolder(strOutDirectory) End If
If objOUTFSO.FileExists(strOutDirectory & strOutFile) Then Set objFolder = objOUTFSO.GetFolder(strOutDirectory) strOutpath = strOutDirectory & strOutFile objOUTFSO.DeleteFile(strOutpath) Else Set objFile = objOUTFSO.CreateTextFile(strOutDirectory & strOutFile) End If
Function ControlAsk(question) ControlAsk = InputBox(question) If ControlAsk="" then Show = MsgBox("<Information>" & vbNewLine & vbNewLine & vbNewLine & "Can not be blank!!!", vbOKOnly + vbCritical) WScript.Quit End If End Function
< Message edited by jeferson.propheta -- 8/30/2007 4:06:10 AM >