無効 http://winofsql.jp/wsf/disableWindowsUpdate.wsf 有効 http://winofsql.jp/wsf/enableWindowsUpdate.wsf 無効 拡張子:txtvbswsfjsphpjavahtmlutf8sjis <JOB> <COMMENT> ************************************************************ WEB WSH 実行スケルトン Windows Update を無効にする ************************************************************ </COMMENT> <COMMENT> ************************************************************ 外部スクリプト定義 ************************************************************ </COMMENT> <SCRIPT language="VBScript" src="http://lightbox.in.coocan.jp/laylaClass.vbs"> </SCRIPT> <SCRIPT language=VBScript> ' *********************************************************** ' 処理開始 ' *********************************************************** Call laylaFunctionTarget( "http://lightbox.in.coocan.jp/" ) Call laylaLoadFunction( "baseFunction.vbs" ) Call laylaLoadFunction( "wmiService.vbs" ) ' *********************************************************** ' Cscript.exe で強制実行 ' *********************************************************** Crun str = WMIGetServiceName( "Automatic Updates" ) Wscript.Echo "サービス名 : " & str WMIStopService( str ) Call WMIChangeStartMode( str, 2 ) Wscript.Echo "サービスを停止し、無効に設定しました" </SCRIPT> </JOB> 有効 拡張子:txtvbswsfjsphpjavahtmlutf8sjis <JOB> <COMMENT> ************************************************************ WEB WSH 実行スケルトン Windows Update を有効にする ************************************************************ </COMMENT> <COMMENT> ************************************************************ 外部スクリプト定義 ************************************************************ </COMMENT> <SCRIPT language="VBScript" src="http://lightbox.in.coocan.jp/laylaClass.vbs"> </SCRIPT> <SCRIPT language=VBScript> ' *********************************************************** ' 処理開始 ' *********************************************************** Call laylaFunctionTarget( "http://lightbox.in.coocan.jp/" ) Call laylaLoadFunction( "baseFunction.vbs" ) Call laylaLoadFunction( "wmiService.vbs" ) ' *********************************************************** ' Cscript.exe で強制実行 ' *********************************************************** Crun str = WMIGetServiceName( "Automatic Updates" ) Wscript.Echo "サービス名 : " & str Call WMIChangeStartMode( str, 0 ) WMIStartService( str ) Wscript.Echo "サービスを自動に設定して、開始しました" </SCRIPT> </JOB>
<JOB> <COMMENT> ************************************************************ WEB WSH 実行スケルトン Windows Update を無効にする ************************************************************ </COMMENT> <COMMENT> ************************************************************ 外部スクリプト定義 ************************************************************ </COMMENT> <SCRIPT language="VBScript" src="http://lightbox.in.coocan.jp/laylaClass.vbs"> </SCRIPT> <SCRIPT language=VBScript> ' *********************************************************** ' 処理開始 ' *********************************************************** Call laylaFunctionTarget( "http://lightbox.in.coocan.jp/" ) Call laylaLoadFunction( "baseFunction.vbs" ) Call laylaLoadFunction( "wmiService.vbs" ) ' *********************************************************** ' Cscript.exe で強制実行 ' *********************************************************** Crun str = WMIGetServiceName( "Automatic Updates" ) Wscript.Echo "サービス名 : " & str WMIStopService( str ) Call WMIChangeStartMode( str, 2 ) Wscript.Echo "サービスを停止し、無効に設定しました" </SCRIPT> </JOB>
<JOB> <COMMENT> ************************************************************ WEB WSH 実行スケルトン Windows Update を有効にする ************************************************************ </COMMENT> <COMMENT> ************************************************************ 外部スクリプト定義 ************************************************************ </COMMENT> <SCRIPT language="VBScript" src="http://lightbox.in.coocan.jp/laylaClass.vbs"> </SCRIPT> <SCRIPT language=VBScript> ' *********************************************************** ' 処理開始 ' *********************************************************** Call laylaFunctionTarget( "http://lightbox.in.coocan.jp/" ) Call laylaLoadFunction( "baseFunction.vbs" ) Call laylaLoadFunction( "wmiService.vbs" ) ' *********************************************************** ' Cscript.exe で強制実行 ' *********************************************************** Crun str = WMIGetServiceName( "Automatic Updates" ) Wscript.Echo "サービス名 : " & str Call WMIChangeStartMode( str, 0 ) WMIStartService( str ) Wscript.Echo "サービスを自動に設定して、開始しました" </SCRIPT> </JOB>