<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://coolscript.net/index.php?action=history&amp;feed=atom&amp;title=VBS_Cheat_Sheet</id>
	<title>VBS Cheat Sheet - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://coolscript.net/index.php?action=history&amp;feed=atom&amp;title=VBS_Cheat_Sheet"/>
	<link rel="alternate" type="text/html" href="https://coolscript.net/index.php?title=VBS_Cheat_Sheet&amp;action=history"/>
	<updated>2026-06-02T18:20:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://coolscript.net/index.php?title=VBS_Cheat_Sheet&amp;diff=594&amp;oldid=prev</id>
		<title>Admin at 15:29, 10 December 2021</title>
		<link rel="alternate" type="text/html" href="https://coolscript.net/index.php?title=VBS_Cheat_Sheet&amp;diff=594&amp;oldid=prev"/>
		<updated>2021-12-10T15:29:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:29, 10 December 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot;&gt;Line 23:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 23:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Set objReg=GetObject(&amp;quot;winmgmts:{impersonationLevel=impersonate}!\\&amp;quot; &amp;amp; _&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Set objReg=GetObject(&amp;quot;winmgmts:{impersonationLevel=impersonate}!\\&amp;quot; &amp;amp; _&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  strComputer &amp;amp; &amp;quot;\root\default:StdRegProv&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  strComputer &amp;amp; &amp;quot;\root\default:StdRegProv&amp;quot;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  strKeyPath = &quot;SOFTWARE\Wow6432Node\&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;HitchHiker&lt;/del&gt;\ScriptingHost\EIU\Dailyqueue&quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  strKeyPath = &quot;SOFTWARE\Wow6432Node\&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;domain&lt;/ins&gt;\ScriptingHost\EIU\Dailyqueue&quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  For Each Subkey in arrSubKeys&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  For Each Subkey in arrSubKeys&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://coolscript.net/index.php?title=VBS_Cheat_Sheet&amp;diff=191&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;  Date format using a trailing &quot;0&quot;  strDayOfMonth = Right(&quot;0&quot; &amp; Day(Date()),2)  strMonth = Right(&quot;0&quot; &amp; Month(Date()),2)  strYear = Right (Year(Date()),4)    Regex  Set objRegE...&quot;</title>
		<link rel="alternate" type="text/html" href="https://coolscript.net/index.php?title=VBS_Cheat_Sheet&amp;diff=191&amp;oldid=prev"/>
		<updated>2020-11-27T18:17:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  Date format using a trailing &amp;quot;0&amp;quot;  strDayOfMonth = Right(&amp;quot;0&amp;quot; &amp;amp; Day(Date()),2)  strMonth = Right(&amp;quot;0&amp;quot; &amp;amp; Month(Date()),2)  strYear = Right (Year(Date()),4)    Regex  Set objRegE...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
Date format using a trailing &amp;quot;0&amp;quot;&lt;br /&gt;
 strDayOfMonth = Right(&amp;quot;0&amp;quot; &amp;amp; Day(Date()),2)&lt;br /&gt;
 strMonth = Right(&amp;quot;0&amp;quot; &amp;amp; Month(Date()),2)&lt;br /&gt;
 strYear = Right (Year(Date()),4)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Regex&lt;br /&gt;
 Set objRegEx = CreateObject(&amp;quot;VBScript.RegExp&amp;quot;)&lt;br /&gt;
 objRegEx.Global = True   &lt;br /&gt;
 objRegEx.IgnoreCase = True&lt;br /&gt;
 objRegEx.Pattern = &amp;quot;Sti&amp;quot;&lt;br /&gt;
 strText=&amp;quot;Test Sting&amp;quot;&lt;br /&gt;
 Set colMatches = objRegEx.Execute(strText)&lt;br /&gt;
 wscript.echo colMatches.Count&lt;br /&gt;
&lt;br /&gt;
Enumerate regitry subkeys&lt;br /&gt;
&lt;br /&gt;
 Const HKEY_LOCAL_MACHINE = &amp;amp;H80000002&lt;br /&gt;
 strComputer = &amp;quot;.&amp;quot;&lt;br /&gt;
 Set objReg=GetObject(&amp;quot;winmgmts:{impersonationLevel=impersonate}!\\&amp;quot; &amp;amp; _&lt;br /&gt;
 strComputer &amp;amp; &amp;quot;\root\default:StdRegProv&amp;quot;)&lt;br /&gt;
 strKeyPath = &amp;quot;SOFTWARE\Wow6432Node\HitchHiker\ScriptingHost\EIU\Dailyqueue&amp;quot;&lt;br /&gt;
 objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys&lt;br /&gt;
 For Each Subkey in arrSubKeys&lt;br /&gt;
  Wscript.Echo Subkey&lt;br /&gt;
 Next&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Print and CR only&lt;br /&gt;
 Wscript.StdOut.Write Now &amp;amp; vbCR&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>