{"id":37597,"date":"2010-07-22T11:00:37","date_gmt":"2010-07-22T04:00:37","guid":{"rendered":"http:\/\/notebookspec.com\/web\/?p=37597"},"modified":"2010-07-21T01:03:14","modified_gmt":"2010-07-20T18:03:14","slug":"%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-restore-point-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-vbscript","status":"publish","type":"post","link":"https:\/\/notebookspec.com\/web\/37597-%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87-restore-point-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-vbscript","title":{"rendered":"\u0e2a\u0e23\u0e49\u0e32\u0e07 Restore Point \u0e14\u0e49\u0e27\u0e22 VBScript"},"content":{"rendered":"<p>\u0e1b\u0e01\u0e15\u0e34\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 Windows \u0e17\u0e31\u0e48\u0e27\u0e44\u0e1b\u0e08\u0e30\u0e17\u0e23\u0e32\u0e1a\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e08\u0e38\u0e14 Restore Point \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e33\u0e23\u0e2d\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e23\u0e30\u0e1a\u0e1a\u0e02\u0e2d\u0e07 Windows \u0e14\u0e49\u0e27\u0e22 System Restore? \u0e04\u0e38\u0e13\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e25\u0e34\u0e01\u0e42\u0e19\u0e48\u0e19\u0e04\u0e25\u0e34\u0e01\u0e19\u0e35\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e44\u0e14\u0e49 Restore Point<\/p>\n<p>\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e08\u0e30\u0e41\u0e19\u0e30\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 VBScript<em> <\/em>\u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Restore Point \u0e0a\u0e36\u0e48\u0e07\u0e07\u0e48\u0e32\u0e22\u0e41\u0e25\u0e30\u0e23\u0e27\u0e14\u0e40\u0e23\u0e47\u0e27\u0e01\u0e27\u0e48\u0e32 \u0e42\u0e14\u0e22\u0e21\u0e35\u0e27\u0e34\u0e18\u0e35\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p><div class='zox-widget-ad' style='float:none'><span class='zox-ad-label'>Advertisement<\/span><iframe id='a141c1a9' name='a141c1a9' src='https:\/\/openx.notebookspec.com\/www\/delivery\/afr.php?zoneid=123&amp;cb=INSERT_RANDOM_NUMBER_HERE' frameborder='0' scrolling='no' width='300' height='250' allow='autoplay'><a target=\"_blank\" rel=\"nofollow\" href=\"https:\/\/openx.notebookspec.com\/www\/delivery\/ck.php?n=a0e6abb9&amp;cb=INSERT_RANDOM_NUMBER_HERE\"  target='_blank' loading='lazy'><img decoding=\"async\" src=\"https:\/\/openx.notebookspec.com\/www\/delivery\/avw.php?zoneid=123&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=a0e6abb9\" border=\"0\" alt=\"\" loading=\"lazy\"><\/a><\/iframe><\/div>\n<p>1. \u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 <strong>Notepad<\/strong> \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32 \u0e41\u0e25\u0e49\u0e27\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 VBScript \u0e15\u0e32\u0e21\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49&#8230;<\/p>\n<p><strong>If GetOS = &#8220;Windows XP&#8221; Then<\/strong><\/p>\n<p><strong> <\/strong><strong>CreateSRP<\/strong><\/p>\n<p><strong>End If<\/strong><\/p>\n<p><strong>If GetOS = &#8220;Windows Vista&#8221; Or GetOS = &#8220;Windows 7&#8221; Then<\/strong><\/p>\n<p><strong> <\/strong><strong>If WScript.Arguments.length =0 Then<\/strong><\/p>\n<p><strong> <\/strong><strong>Set objShell = CreateObject(&#8220;Shell.Application&#8221;)<\/strong><\/p>\n<p><strong> <\/strong><strong>objShell.ShellExecute &#8220;wscript.exe&#8221;, &#8220;&#8221;&#8221;&#8221; &amp; _<\/strong><\/p>\n<p><strong> <\/strong><strong> WScript.ScriptFullName &amp; &#8220;&#8221;&#8221;&#8221; &amp; &#8221; uac&#8221;,&#8221;&#8221;, &#8220;runas&#8221;, 1<\/strong><\/p>\n<p><strong> <\/strong><strong>Else<\/strong><\/p>\n<p><strong> <\/strong><strong>CreateSRP<\/strong><\/p>\n<p><strong> <\/strong><strong>End If<\/strong><\/p>\n<p><strong>End If<\/strong><\/p>\n<p><strong>Sub CreateSRP<\/strong><\/p>\n<p><strong> <\/strong><strong>Set SRP = getobject(&#8220;winmgmts:\\\\.\\root\\default:Systemrestore&#8221;)<\/strong><\/p>\n<p><strong> <\/strong><strong>sDesc = &#8220;Manual Restore Point&#8221;<\/strong><\/p>\n<p><strong> <\/strong><strong>sDesc = InputBox (&#8220;Enter a description.&#8221;, &#8220;System Restore script : Augie Young&#8221;,&#8221;Manual Restore Point&#8221;)<\/strong><\/p>\n<p><strong> <\/strong><strong>If Trim(sDesc) &lt;&gt; &#8220;&#8221; Then<\/strong><\/p>\n<p><strong> <\/strong><strong>sOut = SRP.createrestorepoint (sDesc, 0, 100)<\/strong><\/p>\n<p><strong> <\/strong><strong>If sOut &lt;&gt; 0 Then<\/strong><\/p>\n<p><strong> <\/strong><strong>WScript.echo &#8220;Error &#8221; &amp; sOut &amp; _<\/strong><\/p>\n<p><strong> &#8220;: <\/strong><strong>Unable to create Restore Point.&#8221;<\/strong><\/p>\n<p><strong> <\/strong><strong>End If<\/strong><\/p>\n<p><strong> <\/strong><strong>End If<\/strong><\/p>\n<p><strong>End Sub<\/strong><\/p>\n<p><strong>Function GetOS <\/strong><\/p>\n<p><strong> Set objWMI = GetObject(&#8220;winmgmts:{impersonationLevel=impersonate}!\\\\&#8221; &amp; _<\/strong><\/p>\n<p><strong> &#8220;.<\/strong><strong>\\root\\cimv2&#8243;)<\/strong><\/p>\n<p><strong> Set colOS = objWMI.ExecQuery(&#8220;Select * from Win32_OperatingSystem&#8221;)<\/strong><\/p>\n<p><strong> For Each objOS in colOS<\/strong><\/p>\n<p><strong> If instr(objOS.Caption, &#8220;Windows 7&#8221;) Then<\/strong><\/p>\n<p><strong> <\/strong><strong>GetOS = &#8220;Windows 7&#8221; <\/strong><\/p>\n<p><strong> ElseIf instr(objOS.Caption, &#8220;Vista&#8221;) Then<\/strong><\/p>\n<p><strong> <\/strong><strong>GetOS = &#8220;Windows Vista&#8221;<\/strong><\/p>\n<p><strong> elseIf instr(objOS.Caption, &#8220;Windows XP&#8221;) Then<\/strong><\/p>\n<p><strong> <\/strong><strong>GetOS = &#8220;Windows XP&#8221;<\/strong><\/p>\n<p><strong> End If<\/strong><\/p>\n<p><strong> <\/strong><strong>Next<\/strong><\/p>\n<p><strong>End Function<\/strong><\/p>\n<p>2. \u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e19\u0e35\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d <strong>RestorePoint<\/strong><strong>.vbs<\/strong> \u0e42\u0e14\u0e22\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48\u0e40\u0e01\u0e47\u0e1a\u0e44\u0e1f\u0e25\u0e4c\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13<\/p>\n<p>3. \u0e40\u0e27\u0e25\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e01\u0e47\u0e14\u0e31\u0e1a\u0e40\u0e1a\u0e34\u0e25\u0e04\u0e25\u0e34\u0e01\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c\u0e17\u0e35\u0e48\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32 \u0e08\u0e30\u0e21\u0e35\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07 <em>System Restore script<\/em> \u0e2d\u0e2d\u0e01\u0e21\u0e32 \u0e43\u0e2b\u0e49\u0e04\u0e38\u0e13\u0e43\u0e2a\u0e48\u0e0a\u0e37\u0e48\u0e2d\u0e15\u0e32\u0e21\u0e41\u0e15\u0e48\u0e04\u0e38\u0e13\u0e04\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e25\u0e07\u0e43\u0e19\u0e0a\u0e48\u0e2d\u0e07\u0e27\u0e48\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e48\u0e32\u0e07 \u0e0b\u0e36\u0e48\u0e07\u0e21\u0e35\u0e04\u0e48\u0e32\u0e14\u0e35\u0e1f\u0e2d\u0e25\u0e15\u0e4c\u0e27\u0e48\u0e32 <em>Manual Restore Point<\/em><\/p>\n<p>4. \u0e04\u0e25\u0e34\u0e01\u0e1b\u0e38\u0e48\u0e21 OK \u0e01\u0e47\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/notebookspec.com\/web\/wp-content\/uploads\/2010\/07\/restore_point_01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37594\" src=\"https:\/\/notebookspec.com\/web\/wp-content\/uploads\/2010\/07\/restore_point_01.jpg\" alt=\"restore_point_01\" width=\"298\" height=\"133\" \/><\/a><\/p>\n<p>5. \u0e40\u0e21\u0e37\u0e48\u0e2d\u0e04\u0e38\u0e13\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e17\u0e33\u0e01\u0e32\u0e23 System Restore \u0e04\u0e38\u0e13\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 Restore Point \u0e17\u0e35\u0e48\u0e04\u0e38\u0e13\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e14\u0e49\u0e27\u0e22 VBScript \u0e44\u0e27\u0e49<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-37595\" src=\"https:\/\/notebookspec.com\/web\/wp-content\/uploads\/2010\/07\/restore_point_02.jpg\" alt=\"restore_point_02\" width=\"464\" height=\"372\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e1b\u0e01\u0e15\u0e34\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 Windows \u0e17\u0e31\u0e48\u0e27\u0e44\u0e1b\u0e08\u0e30\u0e17\u0e23\u0e32\u0e1a\u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e08\u0e38\u0e14 Restore Point \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2a\u0e33\u0e23\u0e2d\u0e07\u0e44\u0e1f\u0e25\u0e4c\u0e23\u0e30\u0e1a\u0e1a\u0e02\u0e2d\u0e07 Windows \u0e14\u0e49\u0e27\u0e22 System Restore? \u0e04\u0e38\u0e13\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e25\u0e34\u0e01\u0e42\u0e19\u0e48\u0e19\u0e04\u0e25\u0e34\u0e01\u0e19\u0e35\u0e48\u0e2b\u0e25\u0e32\u0e22\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19 \u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e44\u0e14\u0e49 Restore Point \u0e27\u0e31\u0e19\u0e19\u0e35\u0e49\u0e08\u0e30\u0e41\u0e19\u0e30\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 VBScript \u0e21\u0e32\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e2a\u0e23\u0e49\u0e32\u0e07 Restore Point \u0e0a\u0e36\u0e48\u0e07\u0e07\u0e48\u0e32\u0e22\u0e41\u0e25\u0e30\u0e23\u0e27\u0e14\u0e40\u0e23\u0e47\u0e27\u0e01\u0e27\u0e48\u0e32 \u0e42\u0e14\u0e22\u0e21\u0e35\u0e27\u0e34\u0e18\u0e35\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49Advertisement 1. \u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 Notepad \u0e02\u0e36\u0e49\u0e19\u0e21\u0e32 \u0e41\u0e25\u0e49\u0e27\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 VBScript \u0e15\u0e32\u0e21\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49&#8230; If GetOS = &#8220;Windows XP&#8221; Then CreateSRP End If If GetOS = &#8220;Windows Vista&#8221; Or GetOS = &#8220;Windows 7&#8221; Then If WScript.Arguments.length =0 Then Set objShell = [&hellip;]<\/p>\n","protected":false},"author":1011016,"featured_media":559780,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[343],"tags":[3576,3041,9],"class_list":["post-37597","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows-zone","tag-restore-point","tag-vbscript","tag-windows-7"],"views":674,"_links":{"self":[{"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/posts\/37597","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/users\/1011016"}],"replies":[{"embeddable":true,"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/comments?post=37597"}],"version-history":[{"count":0,"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/posts\/37597\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/media\/559780"}],"wp:attachment":[{"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/media?parent=37597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/categories?post=37597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/notebookspec.com\/web\/wp-json\/wp\/v2\/tags?post=37597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}