<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PJB &#187; microsoft</title>
	<atom:link href="http://www.pjbacolod.com/tag/microsoft/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pjbacolod.com</link>
	<description>PJB: TALES OF A TECH SHARK</description>
	<lastBuildDate>Thu, 02 Feb 2012 18:10:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to call a batch file from within another batch file</title>
		<link>http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html</link>
		<comments>http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html#comments</comments>
		<pubDate>Thu, 04 Nov 2010 08:38:46 +0000</pubDate>
		<dc:creator>PJ</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.pjbacolod.com/?p=905</guid>
		<description><![CDATA[
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Have you tried running an external batch file from within a batch file or script, only to find out that the original batch file script prematurely terminates as soon as the external batch script is executed?</p>
<p>For example:</p>
<p>Let&#8217;s say we have a main script called <strong><em>&#8220;mainscript.bat&#8221;</em></strong> and two external scripts called <strong><em>&#8220;external1.bat&#8221;</em></strong> and <strong><em>&#8220;external2.bat&#8221;</em></strong>, with <em>&#8220;mainscript.bat&#8221;</em> having the following lines:</p>
<blockquote><p>@echo off<br />
c:\testscripts\external1.bat<br />
c:\testscripts\external2.bat</p></blockquote>
<p>When you try to run the script, you&#8217;ll notice that <em>external1.bat</em> will run but <em>external2.bat</em> won&#8217;t. This is because <em>external1.bat</em> (the called script) won&#8217;t pass the control back to <em>mainscript.bat</em> (the calling script) &#8212; which means it won&#8217;t get to run <em>external2.bat</em>.</p>
<p>In order to pass the control back to the calling script, you need to use the <em>&#8220;CALL&#8221;</em> command.</p>
<p>Here&#8217;s a simple fix for <em>mainscript.bat</em>:</p>
<blockquote><p>@echo off<br />
CALL c:\testscripts\external1.bat<br />
CALL c:\testscripts\external2.bat</p></blockquote>
<p>When you run <em>mainscript.bat</em>,  it will call (run) <em>external1.bat</em>. When <em>external1.bat</em> finishes, it will pass the control back to <em>mainscript.bat</em>. Which will then process the next line on the script &#8212; in this case, it will call (run) <em>external2.bat</em> &#8212; and so on.</p>
<img src="http://www.pjbacolod.com/?ak_action=api_record_view&id=905&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable telnet on Windows 7</title>
		<link>http://www.pjbacolod.com/2009/11/how-to-enable-telnet-n-windows-7.html</link>
		<comments>http://www.pjbacolod.com/2009/11/how-to-enable-telnet-n-windows-7.html#comments</comments>
		<pubDate>Fri, 06 Nov 2009 18:22:17 +0000</pubDate>
		<dc:creator>PJ</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.pjbacolod.com/?p=751</guid>
		<description><![CDATA[The telnet command is disabled by default in Windows 7. But you can easily enable it using the following steps: 1. Open the Windows 7 Control Panel (Start &#62; Control [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>The <strong>telnet</strong> command is disabled by default in Windows 7. But you can easily enable it using the following steps:</p>
<p>1. Open the Windows 7 Control Panel (Start &gt; Control Panel)</p>
<div id="attachment_752" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-01.jpg"><img class="size-medium wp-image-752" title="Windows 7 Control Panel" src="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-01-300x223.jpg" alt="Windows 7 Control Panel" width="300" height="223" /></a><p class="wp-caption-text">Windows 7 Control Panel</p></div>
<p>2. Click on the <strong><em>&#8220;Programs&#8221;</em></strong> link.</p>
<div id="attachment_753" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-02.jpg"><img class="size-medium wp-image-753" title="Windows 7 Control Panel - Programs" src="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-02-300x223.jpg" alt="Windows 7 Control Panel - Programs" width="300" height="223" /></a><p class="wp-caption-text">Windows 7 Control Panel - Programs</p></div>
<p>3. Under the <strong>&#8220;Programs and Features&#8221;</strong> setting, click on <strong><em>&#8220;Turn Windows features on or off&#8221;</em></strong> link.</p>
<div id="attachment_754" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-03.jpg"><img class="size-medium wp-image-754" title="Windows 7 Control Panel - Turn Windows features on or off" src="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-03-300x262.jpg" alt="Windows 7 Control Panel - Turn Windows features on or off" width="300" height="262" /></a><p class="wp-caption-text">Windows 7 Control Panel - Turn Windows features on or off</p></div>
<p>4. Tick the <strong><em>&#8220;Telnet Client&#8221;</em></strong> selection box. Wait for Windows 7 to install and enable the selected feature.</p>
<div id="attachment_755" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-04-01.jpg"><img class="size-medium wp-image-755" title="Wait..." src="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-04-01-300x152.jpg" alt="Wait..." width="300" height="152" /></a><p class="wp-caption-text">Wait...</p></div>
<p>5. Done! You should now be able to run the &#8220;telnet&#8221; command on the Windows 7 command prompt.</p>
<div id="attachment_756" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-05.jpg"><img class="size-medium wp-image-756" title="Windows 7 telnet command" src="http://www.pjbacolod.com/wp-content/uploads/2009/11/scrn-05-300x151.jpg" alt="Windows 7 telnet command" width="300" height="151" /></a><p class="wp-caption-text">Windows 7 telnet command</p></div>
<img src="http://www.pjbacolod.com/?ak_action=api_record_view&id=751&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.pjbacolod.com/2009/11/how-to-enable-telnet-n-windows-7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to solve MS Outlook Error: &#8220;Cannot start Microsoft Outlook. Cannot open the Outlook window.&#8221;</title>
		<link>http://www.pjbacolod.com/2009/10/how-to-solve-ms-outlook-error-cannot-start-microsoft-outlook-cannot-open-the-outlook-window.html</link>
		<comments>http://www.pjbacolod.com/2009/10/how-to-solve-ms-outlook-error-cannot-start-microsoft-outlook-cannot-open-the-outlook-window.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 10:41:02 +0000</pubDate>
		<dc:creator>PJ</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[ms office]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.pjbacolod.com/?p=670</guid>
		<description><![CDATA[If you cannot open Microsoft Outlook 2007 and get the following error when opening Microsoft Outlook 2007: &#8220;Cannot start Microsoft Outlook. Cannot open the Outlook window.&#8221; after previously being able [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you cannot open Microsoft Outlook 2007 and get the following error when opening Microsoft Outlook 2007: &#8220;Cannot start Microsoft Outlook. Cannot open the Outlook window.&#8221; after previously being able to open it, then you might want to try the following:</p>
<p>Go to Start &gt; Run and type the following: &#8220;<strong>outlook.exe /resetnavpane</strong>&#8221; (without the quotation marks) and press Enter.</p>
<p>This should fix the problem.</p>
<p>The &#8220;<strong><em>/resetnavpane</em></strong>&#8221; Outlook command switch clears and regenerates the MS Outlook navigation pane for the current profile.</p>
<img src="http://www.pjbacolod.com/?ak_action=api_record_view&id=670&type=feed" alt="" /><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.pjbacolod.com/2009/10/how-to-solve-ms-outlook-error-cannot-start-microsoft-outlook-cannot-open-the-outlook-window.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to configure Windows Active Directory logon scripts</title>
		<link>http://www.pjbacolod.com/2009/06/how-to-configure-windows-active-directory-logon-scripts.html</link>
		<comments>http://www.pjbacolod.com/2009/06/how-to-configure-windows-active-directory-logon-scripts.html#comments</comments>
		<pubDate>Fri, 05 Jun 2009 09:18:33 +0000</pubDate>
		<dc:creator>PJ</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.pjbacolod.com/?p=613</guid>
		<description><![CDATA[There are instances when you need to run a script or program every time a user logs into your Windows network. One way to automate this is to configure and [...]
Related posts:<ol>
<li><a href='http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html' rel='bookmark' title='How to call a batch file from within another batch file'>How to call a batch file from within another batch file</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are instances when you need to run a script or program every time a user logs into your Windows network. One way to automate this is to configure and assign a Windows logon script to a particular user or group account.</p>
<p>Enabling Windows logon scripts is a two-stage process. The first stage is to create the script itself, and the second stage is to assign the logon script to a domain user (or group) account.</p>
<p><strong>I.	Where to save the logon script:</strong></p>
<ol>
<li>Create your logon script and save it in the appropriate format (Example: logon.bat, logon.vbs).</li>
<li>Go to your domain controller and copy the script into the <strong>%SystemRoot%\SYSVOL\Sysvol\DomainName\Scripts</strong> local folder (Ex. C:\WINDOWS\sysvol\sysvol\ENTIIS.COM\SCRIPTS).</li>
</ol>
<p>This folder corresponds to the domain controller’s NETLOGON network share folder.</p>
<p>This makes the script accessible over the network via the <strong>\\ServerName\Netlogon</strong> network share folder.</p>
<p><a href="http://www.pjbacolod.com/wp-content/uploads/2009/06/screenshot-01.jpg"><img class="size-medium wp-image-614 alignnone" title="screenshot-01" src="http://www.pjbacolod.com/wp-content/uploads/2009/06/screenshot-01-300x226.jpg" alt="screenshot-01" width="300" height="226" /></a></p>
<p><strong>To summarize:</strong><br />
If your domain controller’s name “DC01”, and if you have a script named “logon.bat”, which is saved on DC01’s “C:\WINDOWS\sysvol\sysvol\ENTIIS.COM\SCRIPTS” folder, then you can access the script over the network by going to the “\\DC01\netlogon“ network share folder, or by simply running \\DC01\netlogon\logon.bat.</p>
<p class="MsoListParagraphCxSpFirst"><strong><span lang="FIL-PH"><span>II.<span> </span></span></span></strong><strong><span lang="FIL-PH">How to assign a logon script to a user or group:</span></strong></p>
<p class="MsoListParagraphCxSpMiddle"><span><span lang="FIL-PH"><span>1.<span> </span></span></span></span><span><span lang="FIL-PH">First, open &#8220;Active Directory Users and Computers&#8221; on the domain controller.</span></span></p>
<p class="MsoListParagraphCxSpMiddle"><span><span lang="FIL-PH"><a href="http://www.pjbacolod.com/wp-content/uploads/2009/06/logonscript4.jpg"><img class="size-medium wp-image-616 alignnone" title="Active Directory Users and Computers" src="http://www.pjbacolod.com/wp-content/uploads/2009/06/logonscript4-211x300.jpg" alt="Active Directory Users and Computers" width="211" height="300" /></a><br />
</span></span>
</p>
<p class="MsoNormal"><span lang="FIL-PH"><span>2.<span> </span></span></span><span><span lang="FIL-PH">Now right click on the user you want to have the logon script and select the properties menu.</span></span></p>
<p class="MsoListParagraphCxSpFirst"><span lang="FIL-PH"><span>A properties dialog like the one shown below will appear. Select the &#8216;Profile&#8217; Tab</span><br />
</span>
</p>
<p class="MsoListParagraphCxSpMiddle">By default, if no exact network path is given, as shown in Figure 3, above, Active Directory will assume that the user profile logon script will be at the <strong>%SystemRoot%\SYSVOL\Sysvol\DomainName\Scripts</strong> folder.</p>
<p class="MsoListParagraphCxSpMiddle"><span lang="FIL-PH"><span>3.<span> </span></span></span><span lang="FIL-PH">Click <strong>Apply</strong>.</span></p>
<p class="MsoListParagraphCxSpLast"><span lang="FIL-PH"><span>4.<span> </span></span></span><span lang="FIL-PH">Click <strong>OK</strong>.</span></p>
<p class="MsoNormal"><span lang="FIL-PH">Once configured, the logon script will run (on the local machine where the user logged in) every time the user logs into the network using the corresponding account.</span></p>
<p class="MsoNormal"><span lang="FIL-PH">Note: You have to check if the user account used to log into the local machine has the appropriate rights to run or execute programs.</span></p>
<img src="http://www.pjbacolod.com/?ak_action=api_record_view&id=613&type=feed" alt="" /><p>Related posts:<ol>
<li><a href='http://www.pjbacolod.com/2010/11/how-to-call-a-batch-file-from-within-another-batch-file.html' rel='bookmark' title='How to call a batch file from within another batch file'>How to call a batch file from within another batch file</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.pjbacolod.com/2009/06/how-to-configure-windows-active-directory-logon-scripts.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

