????? ??????? ?????? ???????? ??????? ?????? ?? Windows Management Instrumentation ?? ???? ??????? Windows XP

?????? ????????? ?????? ?????????
???? ???????: 295299 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ??????? ?????? ???????? "??????? ?????? ??? ????? ????? ?? ??????? ?????? ????? ???? ????????? ???????? Windows Management Instrumentation (WMI).



???????

?????? & "WMI &" ? ??? ?? ???? ???? ???????? ???????. ????? ??????? "??????? ??????" ?? ???? WMI ???? Srclient.dll.

excerpts ??? VBScript ??????? ????? ???? ??????. ??? ?? ?? ??? ????? ??? ????????? ???????? ??? ????? ??????? ??????? ????????? ??????.




?????? ???? ??????? ??????

'use WMI moniker and SystemRestore class
set SRP = getobject("winmgmts:\\.\root\default:Systemrestore")
CSRP = SRP.createrestorepoint ("this is a test", 0, 100)
				



??? ????? ?? ????? ??????? ?????? ?? ??? ????? ?????

onoff = inputbox ("Do you want enable or disable System Restore?", "System Restore")
Drive = inputbox ("Which Drive would you like to take action on? Must type in format 'c:\'", 

"Drive to enable/disable")


set SRP = GetObject("winmgmts:\\.\root\default:SystemRestore")

If onoff = "enable"  then
eSRP = SRP.enable(drive)
end if

If onoff = "disable" then
eSRP = SRP.disable(drive)
end if
				



??? ????? ???? ??????? ?????? ??? ?????????

set SRP = getobject("winmgmts:\\.\root\default").InstancesOf ("systemrestore")
for each Point in SRP
msgbox point.creationtime & vbcrlf & point.description & vbcrlf & "Sequence Number= " & point.sequencenumber
next
				
??? ????? ???????? ?????? yyyymmddHHMMSS.mmmmmmsUUU ???:
yyyy = ??? ????? ?? ????? ?????
mm = ??? ??? ?????
dd = ??? ??? ????? ?? ?????
HH = ???? ??? ????? ?? ????? (00-23)
SS = ????? (00-59)
mmmmmm = microseconds
s = ????? ????? (+) ?? ????? (-) ???? ????? ????? ?? ????? ?? ??????? ??????? ????? (UTC)
UUU = ????? ???????? deviates ??????? ??????? ?????? ?? UTC
??????: ?? ???? ????? ??????? ??????? ???????? ??? ?????? ??????. ????? ??????? ???? ?? ???? ????????? ????? ?? ????? ?? ??? ??????. ??? ??? ???? ?? ????? ??????? ????? ??? ???????? ????? ???? ????? ?????? ????? ???????? ???? ????? ??? ????? ???? ??? ???????.



??? ??????? ??? ???? ??????? ?????

??????: ?? ?????? ??? ?????? ??? ????? ??????? ????? ????? ???????. ?? ?? ???? ??????? ?????? ???? ???? ??? ?? ??? ??? ????? ????? ????????? ???????.
set SRP = getobject("winmgmts:\\.\root\Default:SystemRestore")
 eSRP = SRP.Restore(22) 'parameter passed is the sequence number of the restore point you want to roll back to.

				




?????


???? Microsoft ??????? ???????? ??? ??? ?? ???? ??????? ?? ?? ?????. ??? ????? ???? ?? ????? ??? ???????? ??????? ?????? ???????? ?? ???????? ???? ????. ????? ??? ??????? ???? ?????? ?? ??? ??????? ???? ??? ????? ?? ??????? ???? ??? ????????? ?????? ?????? ?????????. ???? ??????? ????? ??? Microsoft ??? ????? ????? ???? ???? ?? ?????? ?????? ??? ??????? ?????? ????? ?????? ?? ????? ??????? ?????? ??????? ?????.

???????

???? ???????: 295299 - ????? ??? ??????: 15/?? ?????/1426 - ??????: 2.2
????? ???
  • Microsoft Windows XP Professional
  • Microsoft Windows XP Home Edition
????? ??????: 
kbmt kbhowto kbhowtomaster KB295299 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????295299

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com