Windows service backup

xiaoxiao2021-03-06  41

Windows service backup

Author: Mid-Autumn Festival

http://bbs.winzhenG.com/viewthread.php?tid=588937&fpage=1

Hard hard work has been completed. The next time Windows or it has to be manually changed.

Use this to solve this trouble. Generate a REG registry file, import it when used.

Small software written by friends, very easy to use.

Divided into two files,

Document 1: do.vbs

Document 2: Start backup service .bat

Do.vbs set objshell = creteObject ("wscript.shell")

Set objwshscriptexec = objshell.exec ("cmd / c type temp.reg")

Set objstdout = objWSHSCRIPTEXEC.STDOUT

While Not ObjstdOut.atendofStream

Strline = objstdout.readline

IF INSTR (Strline, "[HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / SERVICES") THEN

Wscript.echo strline

END IF

IF INSTR (Strline, "START") THEN

Wscript.echo strline

END IF

Wend

WScript.echo VBCRLF & VBCRLF

Start backup service. Bat REG EXPORT HKEY_LOCAL_MACHINE / SYSTEM / CURRENTCONTROLSET / Services Temp.reg

Echo Windows Registry Editor Version 5.00> BackupServicesList.REG

Cscript // h: Cscript

DO.VBS >> BackupserviceSlist.Reg

Cscript // h: wscript

Del Temp.Reg

Generate file name: BackupServicesList.reg

转载请注明原文地址:https://www.9cbs.com/read-75269.html

New Post(0)