<?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>Denie&#039;s Tech Blog &#187; Windows</title>
	<atom:link href="http://blog.nataprawira.com/tech/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.nataprawira.com/tech</link>
	<description>Information Technology for Life!</description>
	<lastBuildDate>Mon, 19 Jul 2010 09:20:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Schedule Tasks in Windows Server 2003</title>
		<link>http://blog.nataprawira.com/tech/2009/02/02/how-to-schedule-tasks-in-windows-server-2003/</link>
		<comments>http://blog.nataprawira.com/tech/2009/02/02/how-to-schedule-tasks-in-windows-server-2003/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 03:54:51 +0000</pubDate>
		<dc:creator>Denie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Schedule Tasks]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.nataprawira.com/tech/?p=30</guid>
		<description><![CDATA[

In Windows Server 2003, you can use Scheduled Tasks in 		  Control Panel to create, delete, configure, or display scheduled tasks. You can 		  also use Schtasks.exe to schedule tasks manually.
Back to the top
Overview of the 				Schtasks.exe Tool

loadTOCNode(2, &#8217;summary&#8217;);
Schtasks schedules commands and programs to run periodically or at 		  a specific time. [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2009%2F02%2F02%2Fhow-to-schedule-tasks-in-windows-server-2003%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2009%2F02%2F02%2Fhow-to-schedule-tasks-in-windows-server-2003%2F" height="61" width="51" /></a></div>
<!-- ALL ADSENSE ADS DISABLED -->
<p>In Windows Server 2003, you can use Scheduled Tasks in 		  Control Panel to create, delete, configure, or display scheduled tasks. You can 		  also use Schtasks.exe to schedule tasks manually.</p>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>Overview of the 				Schtasks.exe Tool</h3>
<p><span id="more-30"></span></p>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
Schtasks schedules commands and programs to run periodically or at 		  a specific time. Schtasks adds and removes tasks from the schedule, starts and 		  stops tasks on demand, and displays and changes scheduled tasks.</p>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>Syntax and Parameters</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
The following is a list of the syntax and parameters that you can 		  use with Schtasks.exe:</p>
<ul>
<li>
<h4>Schtasks /Create</h4>
<p>loadTOCNode(3, &#8217;summary&#8217;);<br />
Creates a new scheduled task.</p>
<ul>
<li><strong>Syntax</strong>:<br />
<strong>schtasks /create</strong><strong>/tn </strong><em>TaskName </em><strong>/tr </strong><em>TaskRun </em><strong>/sc </strong><em>schedule </em>[<strong>/mo </strong><em>modifier</em>] [<strong>/d </strong><em>day</em>] [<strong>/m </strong><em>month</em>[,<em>month</em>...] [<strong>/i </strong><em>IdleTime</em>] [<strong>/st </strong><em>StartTime</em>] [<strong>/sd </strong><em> StartDate</em>] [<strong>/ed </strong><em>EndDate</em>] [<strong>/du </strong><em>duration</em>] [<strong>/s </strong><em>computer</em> [<strong>/u </strong> [<em>domain\]user </em><strong>/p </strong><em>password</em>]] [<strong>/ru </strong> {[<em>Domain\]User</em> | <em>&#8220;System&#8221;</em>} [<strong>/rp </strong><em>Password</em>]] <strong>/?</strong></li>
<li><strong>Parameters</strong>:
<ul>
<li><strong>/tn </strong><em>TaskName</em> Specifies a name for the task.</li>
<li><strong>/tr </strong><em>TaskRun</em> Specifies the program or command that the task runs. Type the 						  fully qualified path and file name of an executable file, script file, or batch 						  file. If you omit the path, Schtasks.exe assumes that the file is in the 						  Systemroot\System32 folder.</li>
<li><strong>/sc </strong><em>schedule</em> Specifies the schedule type. Valid values are MINUTE, HOURLY, 						  DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE.</li>
<li><strong>/mo </strong><em> modifier</em> Specifies how frequently the task runs in its schedule type. This 						  parameter is required for a MONTHLY schedule. This parameter is valid, but 						  optional, for a MINUTE, HOURLY, DAILY, or WEEKLY schedule. The default value is 						  1.</li>
<li><strong>/d </strong><em> day</em> Specifies a day of the week or a day of a month. Valid only with 						  a WEEKLY or MONTHLY schedule.</li>
<li><strong>/m </strong><em>month</em>[,<em>month</em>...] Specifies a month of the year. Valid values are JAN &#8211; DEC and 						  * (every month). The <strong>/m </strong> parameter is valid only with a MONTHLY schedule. It is required 						  when the LASTDAY modifier is used. Otherwise, it is optional and the default 						  value is * (every month).</li>
<li><strong>/i </strong><em>IdleTime</em> Specifies how many minutes the computer is idle before the task 						  starts. Type a whole number from 1 to 999. This parameter is valid only with an 						  ONIDLE schedule, and then it is required.</li>
<li><strong>/st </strong><em>StartTime</em> Specifies the time of day that the task starts in HH:MM:SS 						  24-hour format. The default value is the current local time when the command 						  completes. The <strong>/st </strong> parameter is valid with MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, 						  and ONCE schedules. It is required with a ONCE schedule.</li>
<li><strong>/sd </strong><em>StartDate</em> Specifies the date that the task starts in MM/DD/YYYY format. The 						  default value is the current date. The <strong>/sd </strong> parameter is valid with all schedules, and is required for a ONCE 						  schedule.</li>
<li><strong>/ed </strong><em>EndDate</em> Specifies the last date that the task is scheduled to run. This 						  parameter is optional. It is not valid in a ONCE, ONSTART, ONLOGON, or ONIDLE 						  schedule. By default, schedules have no ending date.</li>
<li><strong>/du</strong><em> Duration</em> Specifies a maximum length of time for a minute or hourly schedule in the <em> HHHH:MM</em> 24-hour format. After the specified time elapses, Schtasks does not start the task again until the start time happens again. By default, task schedules have no maximum duration. This parameter is optional and valid only with a MINUTE or HOURLY schedule.</li>
<li><strong>/s </strong><em>Computer</em> Specifies the name or IP address of a remote computer, with or 						  without backslash characters. The default is the local computer.</li>
<li><strong>/u </strong> [<em>domain\</em>]<em>user</em> Runs the command with the permissions of the specified user 						  account. By default, the command runs with the permissions of the user who is 						  logged on to the computer that is running Schtasks.</li>
<li><strong>/p </strong><em>password</em> Specifies the password of the user account that you specified in 						  the /u parameter. This parameter is required when the <strong>/u </strong><em>parameter</em> is used.</li>
<li><strong>/ru </strong> {[<em>Domain</em>\]<em>User</em> | <em>&#8220;System&#8221;</em>} Runs the tasks with the permission of the specified user 						  account. By default, the task runs with the permissions of the user who is 						  logged on to the computer that is running Schtasks.</li>
<li><strong>/rp </strong><em>Password</em> Specifies the password of the user account that is specified in 						  the <strong>/ru </strong> parameter. If you omit this parameter when you specify a user 						  account, Schtasks.exe prompts you for the password and obscures the text you 						  type. Tasks that run with permissions of the NT Authority\System account do not 						  require a password and Schtasks.exe does not prompt for one.</li>
<li><strong>/? </strong> Displays help at the command prompt.</li>
</ul>
</li>
</ul>
<p><span><a href="http://support.microsoft.com/kb/814596#1">back to the 				top</a></span></li>
<li>
<h4>Schtasks /Change</h4>
<p>loadTOCNode(3, &#8217;summary&#8217;);<br />
Changes one or more of the following properties of a task:</p>
<ul>
<li>The program that the task runs (<strong>/tr </strong>).</li>
<li>The user account under which the task runs (<strong>/ru </strong>).</li>
<li>The password for the user account (<strong>/rp </strong>).</li>
</ul>
<ul>
<li><strong>Syntax</strong>:<strong>schtasks /change /tn </strong> TaskName [<strong>/s </strong><em>computer</em> [<em>/u [domain\]user</em><strong> /p </strong><em>password</em>]] [<strong>/tr </strong> TaskRun] [<strong>/ru </strong> [<em>Domain\]User | &#8220;System&#8221;</em>] [<strong>/rp </strong><em>Password</em>]</li>
<li><strong>Parameters</strong>:
<ul>
<li><strong>/tn </strong><em> TaskName</em> Identifies the task to be changed. Type the task name.</li>
<li><strong>/s </strong><em>Computer</em> Specifies the name or IP address of a remote computer with or 						  without backslash characters. The default is the local computer.</li>
<li><strong>/u </strong> [<em>domain\</em>]<em>user </em>Runs the command with the permissions of the specified user 						  account. By default, the command runs with the permissions of the user who is 						  logged on to the computer that is running Schtasks.</li>
<li><strong>/p </strong><em>password </em>Specifies the password of the user account that you specified in 						  the /u parameter. This parameter is required when the /u parameter is used.</li>
<li><strong>/tr </strong><em>TaskRun </em>Changes the program that the task runs. Type the fully qualified 						  path and file name of an executable file, script file, or batch file. If you 						  omit the path, Schtasks.exe assumes that the file is in the Systemroot\System32 						  folder. The specified program replaces the original program that is run by the 						  task.</li>
<li><strong>/ru </strong> [<em>Domain\</em>]<em>User | &#8220;System&#8221;</em> Changes the user account for the task.</li>
<li><strong>/rp </strong><em>Password </em>Changes the account password for the task. Type the new password.</li>
<li><strong>/? </strong> Displays help at the command prompt.</li>
</ul>
</li>
</ul>
<p><span><a href="http://support.microsoft.com/kb/814596#1">back to the 				top</a></span></li>
<li>
<h4>Schtasks /Run</h4>
<p>loadTOCNode(3, &#8217;summary&#8217;);<br />
Starts a scheduled task immediately. The run operation ignores the 				schedule, but uses the program file location, user account, and password that 				are saved in the task to run the task immediately.</p>
<ul>
<li><strong>Syntax</strong>:<strong>schtasks /run /tn </strong><em>TaskName </em>[<strong>/s </strong><em>computer </em>[<strong>/u </strong> [<em>domain\</em>]<em>user </em><strong>/p</strong><em> password</em>]] <strong>/? </strong></li>
<li><strong>Parameters</strong>:
<ul>
<li><strong>/tn </strong><em>TaskName </em>Identifies the task. This parameter is required.</li>
<li><strong>/s </strong><em>Computer </em>Specifies the name or IP address of a remote computer with or 						  without backslash characters. The default is the local computer.</li>
<li><strong>/u </strong> [<em>domain\</em>]<em>user </em>Runs the command with the permissions of the specified user 						  account. By default, the command runs with the permissions of the user who it 						  logged on to the computer that is running Schtasks.</li>
<li><strong>/p </strong><em>password </em>Specifies the password of the user account that you specified in 						  the /u parameter. This parameter is required when the /u parameter is used.</li>
<li><strong>/? </strong> Displays help at the command prompt.</li>
</ul>
</li>
</ul>
<p><span><a href="http://support.microsoft.com/kb/814596#1">back to the 				top</a></span></li>
<li>
<h4>Schtasks /End</h4>
<p>loadTOCNode(3, &#8217;summary&#8217;);<br />
Stops a program that was started by a task.</p>
<ul>
<li><strong>Syntax</strong>: <strong>schtasks /end /tn </strong><em>TaskName </em>[<strong>/s </strong><em>computer</em> [<strong>/u </strong> [<em>domain\</em>]<em>user </em><strong>/p </strong><em>password</em>]] <strong>/? </strong></li>
<li><strong>Parameters</strong>:
<ul>
<li><strong>/tn </strong><em>TaskName </em>Identifies the task that started the program. This parameter is 						  required.</li>
<li><strong>/s </strong><em>Computer </em>Specifies the name or IP address of a remote computer with or 						  without backslash characters. The default is the local computer.</li>
<li><strong>/u </strong> [<em>domain\</em>]<em>user</em> Runs the command with the permissions of the specified user 						  account. By default, the command runs with the permissions of the user who is 						  logged on to the computer that is running Schtasks.</li>
<li><strong>/p </strong><em>password</em> Specifies the password of the user account that is specified in 						  the <strong>/u </strong> parameter. This parameter is required when the <strong>/u </strong> parameter is used. <strong>/? </strong> Displays help.</li>
</ul>
</li>
</ul>
<p><span><a href="http://support.microsoft.com/kb/814596#1">back to the 				top</a></span></li>
<li>
<h4>Schtasks /Delete</h4>
<p>loadTOCNode(3, &#8217;summary&#8217;);<br />
Deletes a scheduled task.</p>
<ul>
<li><strong>Syntax</strong>:<strong>schtasks /delete /tn </strong><em>{TaskName</em> |<em> *</em>} [<strong>/f </strong>] [<strong>/s </strong><em>computer</em> [<strong>/u </strong> [<em>domain</em>\]<em>user</em><strong>/p </strong><em>password</em>]] [<strong>/? </strong>]</li>
<li><strong>Parameters</strong>:
<ul>
<li><strong>/tn </strong> {<em>TaskName</em> |<em> *</em>} Identifies the task being deleted. This parameter is required.
<ul>
<li><em>TaskName</em> Deletes the named task.</li>
<li><em>*</em> Deletes all the scheduled tasks on the computer.</li>
</ul>
</li>
<li><strong>/f </strong>Suppresses the confirmation message. The task is deleted without 						  warning.</li>
<li><strong>/s </strong><em>Computer</em> Specifies the name or IP address of a remote computer with or 						  without backslash characters. The default is the local computer.</li>
<li><strong>/u </strong> [<em>domain</em>\]<em>user</em> Runs the command with the permissions of the specified user 						  account. By default, the command runs with the permissions of the user who is 						  logged on to the computer that is running Schtasks.</li>
<li><strong>/p </strong><em>password</em> Specifies the password of the user account that you specified in 						  the <strong>/u </strong> parameter. This parameter is required when the <strong>/u </strong>parameter is used.</li>
<li><strong>/? </strong> Displays help at the command prompt.</li>
</ul>
</li>
</ul>
<p><span><a href="http://support.microsoft.com/kb/814596#1">back to the 				top</a></span></li>
<li>
<h4>Schtasks /Query</h4>
<p>loadTOCNode(3, &#8217;summary&#8217;);<br />
Displays all the tasks that are scheduled to run on the computer, 				including those that are scheduled by other users:</p>
<ul>
<li><strong>Syntax</strong>:<strong>schtasks</strong> [<strong>/query</strong>] [<strong>/fo </strong> {<em>TABLE</em> | <em>LIST</em> | <em>CSV</em>}] [<strong>/nh </strong>] [<strong>/v</strong>] [<strong>/s </strong><em>computer</em> [<strong>/u </strong> [<em>domain</em>\]<em>user</em><strong>/p </strong><em>password</em>]]</li>
<li><strong>Parameters</strong>:[<strong>/query</strong>] The operation name is optional. Typing 					 <span class="userInput">schtasks</span> without any parameters performs a query.</li>
<li><strong>/fo </strong> {<em>TABLE</em> |<em> LIST</em> | <em>CSV</em>} Specifies the output format. <em>TABLE</em> is the default. <strong>/nh </strong> Omits column headings from the table display. This parameter is 					 valid with the <em>TABLE</em> and <em>CSV</em> output formats.</li>
<li><strong>/v </strong>Adds advanced properties of the tasks to the display. Queries 					 using <strong>/v </strong> should be formatted as LIST or CSV.</li>
<li><strong>/s </strong><em>Computer</em> Specifies the name or IP address of a remote computer with or 					 without backslash characters. The default is the local computer.</li>
<li><strong>/u </strong> [<em>domain</em>\]<em>user</em> Runs the command with the permissions of the specified user 					 account. By default, the command runs with the permissions of the user who is 					 logged on to the computer that is running Schtasks.</li>
<li><strong>/p </strong><em>password</em> Specifies the password of the user account that is specified in 					 the <strong>/u </strong> parameter. This parameter is required when the <strong>/u </strong> parameter is used.</li>
<li><strong>/? </strong> Displays help at the command prompt.</li>
</ul>
</li>
</ul>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>How to Create a Scheduled Task</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
To create a scheduled task:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, 				type <span class="userInput">cmd</span>, and then click <strong>OK</strong>.</li>
<li>At the command prompt, type <span class="userInput">net 				start</span>, and then press ENTER to display a list of currently running 				services. If Task Scheduler is not displayed in the list, type <strong>net 				start &#8220;task scheduler&#8221;</strong>, and then press ENTER.</li>
<li>At the command prompt, type <span class="userInput">schtasks /create /tn 				&#8220;<var>Application_Name</var>&#8221; /tr 				c:\apps\<var>Application_Name</var> /sc 				<var>Value</var> /st <var>HH:MM:SS</var> /ed 				<var>MM/DD/YYYY</var></span>, and then press ENTER. Note 				that you may have to change the parameters for your situation. For example, you 				might type <span class="userInput">schtasks /create /tn &#8220;My App&#8221; /tr c:\apps\myapp.exe /sc 				daily /st 08:00:00 /ed 12/31/2004 </span> This example schedules the MyApp 				program to run once a day, every day, at 8:00 A.M. until December 31, 2004. 				Because it omits the /mo parameter, the default interval of 1 is used to run 				the command every day.</li>
</ol>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>How to Change a Scheduled Task</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
To change a scheduled task:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, 				type <span class="userInput">cmd</span>, and then click <strong>OK</strong>.</li>
<li>At the command prompt, type<span class="userInput">net 				start</span>, and then press ENTER to display a list of currently running 				services. If Task Scheduler is not displayed in the list, type <strong>net 				start &#8220;task scheduler&#8221;</strong>, and then press ENTER.</li>
<li>At the command prompt, type<span class="userInput">schtasks /change /tn <em>TaskName</em> [/s <em>computer</em> [/u [<em>domain</em>\]<em>user</em> /p <em>password</em>]] [/tr <em>TaskRun</em>] [/ru [<em>Domain</em>\]<em>User</em> | &#8220;System&#8221;] [/rp <em>Password</em>] </span>, and then press ENTER. Note that you may have to 				change the parameters for your situation. For example, to change the program 				that a task runs, type: <span class="userInput">schtasks /change /tn &#8220;Application_Name&#8221; /tr 				C:\File_Path\Application_Name.exe</span></li>
</ol>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>How to Run a Scheduled Task</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
To manually run a scheduled task outside its schedule:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, 				type <span class="userInput">cmd</span>, and then click <strong>OK</strong>.</li>
<li>At the command prompt, type <span class="userInput">net 				start</span>, and then press ENTER to display a list of currently running 				services. If Task Scheduler is not displayed in the list, type <strong>net 				start &#8220;task scheduler&#8221;</strong>, and then press ENTER.</li>
<li>At the command prompt, type <span class="userInput">schtasks /run /tn <em>TaskName</em> [/s <em>computer</em> [/u [<em>domain</em>\]<em>user</em> /p<em> password</em>]] </span>, and then press ENTER. Note that you may have to 				change the parameters for your situation. For example, to run a task on the 				local computer, type <span class="userInput"> schtasks /run /tn 				&#8220;<var>Task_Name</var>&#8221; </span>.</li>
</ol>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>How to End a Scheduled Task</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
To end a scheduled task:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, 				type <span class="userInput">cmd</span>, and then click <strong>OK</strong>.</li>
<li>At the command prompt, type <span class="userInput">net 				start</span>, and then press ENTER to display a list of currently running 				services. If Task Scheduler is not displayed in the list, type <strong>net 				start &#8220;task scheduler&#8221;</strong>, and then press ENTER.</li>
<li>At the command prompt, type <span class="userInput"><strong>schtasks /end /tn </strong>TaskName [<strong>/s</strong> computer [<strong>/u</strong> [domain\]user <strong>/p</strong> password]] </span>, and then press ENTER. For example, to 				end the instances of a program that was started by a scheduled task on a local 				computer, type <span class="userInput">schtasks /end /tn 				&#8220;<var>Task_Name</var>&#8220;</span>.</li>
</ol>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>How to Delete a Scheduled Task</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
To delete a scheduled task:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, 				type <span class="userInput">cmd</span>, and then click <strong>OK</strong>.</li>
<li>At the command prompt, type <span class="userInput">net 				start</span>, and then press ENTER to display a list of currently running 				services. If Task Scheduler is not displayed in the list, type <strong>net 				start &#8220;task scheduler&#8221;</strong>, and then press ENTER.</li>
<li>At the command prompt, type <span class="userInput"><strong>schtasks /delete /tn</strong> {TaskName | *} [<strong>/f</strong>] [<strong>/s</strong> computer [<strong>/u</strong> [domain\]user <strong>/p</strong> password]]</span>, and then press ENTER. For example, to 				delete all tasks scheduled for the local computer, type <span class="userInput">schtasks 				/delete /tn * /f</span>.</li>
</ol>
<div class="topOfPage"><a href="http://support.microsoft.com/kb/814596#top"><img src="http://support.microsoft.com/library/images/support/kbgraphics/public/en-us/uparrow.gif" alt="" />Back to the top</a></div>
<h3>How to Perform a Query of Scheduled Tasks</h3>
<p>loadTOCNode(2, &#8217;summary&#8217;);<br />
To perform a query of scheduled tasks:</p>
<ol>
<li>Click <strong>Start</strong>, click <strong>Run</strong>, 				type <span class="userInput">cmd</span>, and then click <strong>OK</strong>.</li>
<li>At the command prompt, type <span class="userInput">net 				start</span>, and then press ENTER to display a list of currently running 				services. If Task Scheduler is not displayed in the list, type <strong>net 				start &#8220;task scheduler&#8221;</strong>, and then press ENTER.</li>
<li>At the command prompt, type <span class="userInput">schtasks /query </span>, and then press ENTER. Output from this example displays a table 				of tasks that have been scheduled to run.</li>
</ol>
<p>For more information about how to use Schtasks.exe, search for 		  Schtasks.exe in Windo</p>
<div class="indent">After the specified time elapses, Schtasks does not start the task again until the start time recurs. By default, task schedules have no maximum duration. This parameter is optional and valid only with a MINUTE or HOURLY schedule.</div>
<p>ws Server 2003 Help.</p>
<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.nataprawira.com/tech/2009/02/02/how-to-schedule-tasks-in-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to remove / delete  `sqmdataXX.sqm` files on my drive C:\ ?</title>
		<link>http://blog.nataprawira.com/tech/2009/01/19/how-to-remove-delete-sqmdataxxsqm-files-on-my-drive-c/</link>
		<comments>http://blog.nataprawira.com/tech/2009/01/19/how-to-remove-delete-sqmdataxxsqm-files-on-my-drive-c/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 17:35:09 +0000</pubDate>
		<dc:creator>Denie</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[.sqm]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MSN]]></category>
		<category><![CDATA[Software Quality Metrics]]></category>
		<category><![CDATA[Windows Live Messenger]]></category>

		<guid isPermaLink="false">http://blog.nataprawira.com/tech/?p=27</guid>
		<description><![CDATA[

.SQM files are created by a number of Microsoft applications, most commonly Windows Live Messenger (previously known as MSN).
According to Microsoft, SQM files (standing for Software Quality Metrics) are used as part of their &#8220;Microsoft Customer Experience Program&#8221; and help improve their products by anonymously monitoring usage habits and reporting software errors/bugs.
To stop these files [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2009%2F01%2F19%2Fhow-to-remove-delete-sqmdataxxsqm-files-on-my-drive-c%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2009%2F01%2F19%2Fhow-to-remove-delete-sqmdataxxsqm-files-on-my-drive-c%2F" height="61" width="51" /></a></div>
<!-- ALL ADSENSE ADS DISABLED -->
<p><strong>.SQM</strong> files are created by a number of Microsoft applications, most commonly Windows Live Messenger (previously known as MSN).</p>
<p>According to Microsoft, SQM files (standing for Software Quality Metrics) are used as part of their &#8220;Microsoft Customer Experience Program&#8221; and help improve their products by anonymously monitoring usage habits and reporting software errors/bugs.</p>
<p>To stop these files being created, you will need to disable the option in Windows Live Messenger. You can do this through the options menu:</p>
<p>1. Click HELP.<br />
2. Select &#8216;Customer Experience Improvement Program&#8217;.<br />
3. Tick on &#8216;I don&#8217;t want to participate right now&#8217; box.<br />
4. Click OK.</p>
<p>Please take note, that .SQM files are NOT viruses and do not contain spyware/malware and do not contain any personal information.</p>
<p>SQM files have a naming convention such as &#8220;sqmnoopt00.sqm&#8221;. They are normally found in the root folder of your hard-drive (C:) and more recently, the &#8220;Documents and settings/Application Data/Microsoft/MSN Messenger/&#8221; folder.</p>
<p>Dot What!? visitors have found that deleting SQM files is safe. Although probably true, we advise you to backup the files first.</p>
<p style="text-align: center">################### Simple Story ###################</p>
<p style="text-align: center">By default, you participate in a data-gathering program. Open Live Messenger, click on Help, then on Customer Experience Improvement Program, then de-check the radio button which says you want to participate. Try that. It will almost certainly work, and it&#8217;s not dangerous.</p>
<p style="text-align: center">####################################################</p>
<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.nataprawira.com/tech/2009/01/19/how-to-remove-delete-sqmdataxxsqm-files-on-my-drive-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE ignores custom error pages</title>
		<link>http://blog.nataprawira.com/tech/2008/12/18/ie-ignores-custom-error-pages/</link>
		<comments>http://blog.nataprawira.com/tech/2008/12/18/ie-ignores-custom-error-pages/#comments</comments>
		<pubDate>Thu, 18 Dec 2008 04:10:45 +0000</pubDate>
		<dc:creator>Denie</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://blog.nataprawira.com/tech/?p=20</guid>
		<description><![CDATA[

if you use php to create custom error  pages (such as header('HTTP/1.1 500 Internal Server Error');) Internet Explorer  ignores you custom page unless it is at least 512 (or sometimes 1024 bytes)
IE ignores custom error pages that are less than 512 (or from what i've  read 1024) bytes.
just place this before any [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2008%2F12%2F18%2Fie-ignores-custom-error-pages%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2008%2F12%2F18%2Fie-ignores-custom-error-pages%2F" height="61" width="51" /></a></div>
<!-- ALL ADSENSE ADS DISABLED -->
<div class="phpcode"><code><span class="html">if you use php to create custom error  pages (such as header('HTTP/1.1 500 Internal Server Error');) Internet Explorer  ignores you custom page unless it is at least 512 (or sometimes 1024 bytes)</p>
<p>IE ignores custom error pages that are less than 512 (or from what i've  read 1024) bytes.</p>
<p>just place this before any output on your custom error  page--- and be sure that your custom error page includes proper html tags (it  must have a &lt;/body&gt; for this specific example to work)</p>
<p><span class="default">&lt;?php<br />
</span><span class="comment">// set your custom error  header --- example --- header('HTTP/1.1 503 Service Unavailable');</p>
<p></span><span class="keyword">function </span><span class="default">padding</span><span class="keyword">(</span><span class="default">$html</span><span class="keyword">){<br />
return (</span><span class="default">$padding</span><span class="keyword">=</span><span class="default">1024</span><span class="keyword">-</span><span class="default">ob_get_length</span><span class="keyword">()) &gt; </span><span class="default">0 </span><span class="keyword">? </span><span class="default">str_replace</span><span class="keyword">(</span><span class="string">'&lt;/body&gt;'</span><span class="keyword">,</span><span class="string">'&lt;!--'</span><span class="keyword">. (</span><span class="default">$padding</span><span class="keyword">&gt;</span><span class="default">8</span><span class="keyword">?</span><span class="default">str_repeat</span><span class="keyword">(</span><span class="string">'  '</span><span class="keyword">,</span><span class="default">$padding</span><span class="keyword">-</span><span class="default">8</span><span class="keyword">)  :</span><span class="default">null </span><span class="keyword">).</span><span class="string">'--&gt;'</span><span class="keyword">.</span><span class="string">"\n"</span><span class="keyword">.</span><span class="string">'&lt;/body&gt;'</span><span class="keyword">,</span><span class="default">$html</span><span class="keyword">) : </span><span class="default">$html</span><span class="keyword">;<br />
}</p>
<p></span><span class="default">ob_start</span><span class="keyword">(</span><span class="string">'padding'</span><span class="keyword">);<br />
</span><span class="default">?&gt;<br />
</span><br />
and then place this somewhere within the html  error page output</p>
<p>&lt;!-- ---- --&gt;</p>
<p>that will auto-adjust to  pad the file to 1024 bytes to override the default Internet Explorer error  pages.</span> </code></div>
<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.nataprawira.com/tech/2008/12/18/ie-ignores-custom-error-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serious security flaw found in IE</title>
		<link>http://blog.nataprawira.com/tech/2008/12/17/serious-security-flaw-found-in-ie/</link>
		<comments>http://blog.nataprawira.com/tech/2008/12/17/serious-security-flaw-found-in-ie/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 06:41:43 +0000</pubDate>
		<dc:creator>Denie</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[IE7]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.nataprawira.com/tech/?p=16</guid>
		<description><![CDATA[






Internet Explorer is used by the vast majority of the world&#8217;s computer user





 
Users of Microsoft&#8217;s Internet Explorer are being urged by experts to switch to a rival until a serious security flaw has been fixed.
The flaw in Microsoft&#8217;s Internet Explorer could allow criminals to take control of people&#8217;s computers and steal their passwords, internet [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2008%2F12%2F17%2Fserious-security-flaw-found-in-ie%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2008%2F12%2F17%2Fserious-security-flaw-found-in-ie%2F" height="61" width="51" /></a></div>
<!-- ALL ADSENSE ADS DISABLED -->
<table border="0" cellspacing="0" cellpadding="0" width="226" align="right">
<tbody>
<tr>
<td>
<div><img src="http://newsimg.bbc.co.uk/media/images/45301000/jpg/_45301037_000882073-1.jpg" border="0" alt="Microsoft Internet Explorer logo, file pic from 2004" hspace="0" vspace="0" width="226" height="170" /></p>
<div class="cap">Internet Explorer is used by the vast majority of the world&#8217;s computer user</div>
</div>
</td>
</tr>
</tbody>
</table>
<p><!-- E IIMA --> <!-- S SF --></p>
<p class="first"><strong>Users of Microsoft&#8217;s Internet Explorer are being urged by experts to switch to a rival until a serious security flaw has been fixed.</strong></p>
<p>The flaw in Microsoft&#8217;s Internet Explorer could allow criminals to take control of people&#8217;s computers and steal their passwords, internet experts say.</p>
<p>Microsoft urged people to be vigilant while it investigated and prepared an emergency patch to resolve it.</p>
<p>Internet Explorer is used by the vast majority of the world&#8217;s computer users. <!-- E SF --></p>
<p><!-- S IBOX --></p>
<table border="0" cellspacing="0" cellpadding="0" width="231" align="right">
<tbody>
<tr>
<td width="5"><img src="http://newsimg.bbc.co.uk/shared/img/o.gif" border="0" alt="" hspace="0" vspace="0" width="5" height="1" /></td>
<td class="sibtbg">
<div>
<div class="mva"><img src="http://newsimg.bbc.co.uk/nol/shared/img/v3/start_quote_rb.gif" border="0" alt="" width="24" height="13" /> <strong>It&#8217;s a shame Microsoft have not been able to fix this more quickly</strong> <img src="http://newsimg.bbc.co.uk/nol/shared/img/v3/end_quote_rb.gif" border="0" alt="" vspace="0" width="23" height="13" align="right" />
</div>
</div>
<div class="mva">
<div>Darien Graham-Smith<br />
PC Pro magazine</div>
</div>
<div class="o"><img src="http://newsimg.bbc.co.uk/nol/shared/img/v3/inline_dashed_line.gif" border="0" alt="" hspace="0" vspace="2" width="226" height="1" />
</div>
<div class="miiib"><!-- S ILIN --></p>
<div class="arr"><a href="http://news.bbc.co.uk/2/hi/technology/7732971.stm">Q&amp;A: Stay safe online</a></div>
<p><!-- E ILIN --></div>
</td>
</tr>
</tbody>
</table>
<p><!-- E IBOX -->&#8220;Microsoft is continuing its investigation of public reports of attacks against a new vulnerability in Internet Explorer,&#8221; said the firm in a security advisory alert about the flaw.</p>
<p>Microsoft says it has detected attacks against IE 7.0 but said the &#8220;underlying vulnerability&#8221; was present in all versions of the browser.</p>
<p>Other browsers, such as Firefox, Opera, Chrome, Safari, are not vulnerable to the flaw Microsoft has identified.</p>
<p><strong>Browser bait</strong></p>
<p>&#8220;In this case, hackers found the hole before Microsoft did,&#8221; said Rick Ferguson, senior security advisor at Trend Micro. &#8220;This is never a good thing.&#8221;</p>
<p>As many as 10,000 websites have been compromised since the vulnerability was discovered, he said.</p>
<p>&#8220;What we&#8217;ve seen from the exploit so far is it stealing game passwords, but it&#8217;s inevitable that it will be adapted by criminals,&#8221; he said. &#8220;It&#8217;s just a question of modifying the payload the trojan installs.&#8221;</p>
<p><!-- S IBOX --></p>
<table border="0" cellspacing="0" cellpadding="0" width="231" align="right">
<tbody>
<tr>
<td width="5"><img src="http://newsimg.bbc.co.uk/shared/img/o.gif" border="0" alt="" hspace="0" vspace="0" width="5" height="1" /></td>
<td class="sibtbg">
<div class="sih">MICROSOFT SECURITY ADVICE</div>
<div class="mva">
<div class="bull">Change IE security settings to high (Look under Tools/Internet Options)</div>
<div class="bull">Switch to a Windows user account with limited rights to change a PC&#8217;s settings</div>
<div class="bull">With IE7 or 8 on Vista turn on Protected Mode</div>
<div class="bull">Ensure your PC is updated</div>
<div class="bull">Keep anti-virus and anti-spyware software up to date</div>
</div>
</td>
</tr>
</tbody>
</table>
<p><!-- E IBOX -->Said Mr Ferguson: &#8220;If users can find an alternative browser, then that&#8217;s good mitigation against the threat.&#8221;</p>
<p>But Microsoft counselled against taking such action.</p>
<p>&#8220;I cannot recommend people switch due to this one flaw,&#8221; said John Curran, head of Microsoft UK&#8217;s Windows group.</p>
<p>He added: &#8220;We&#8217;re trying to get this resolved as soon as possible.</p>
<p>&#8220;At present, this exploit only seems to affect 0.02% of internet sites,&#8221; said Mr Curran. &#8220;In terms of vulnerability, it only seems to be affecting IE7 users at the moment, but could well encompass other versions in time.&#8221;</p>
<p>Richard Cox, chief information officer of anti-spam body The Spamhaus Project and an expert on privacy and cyber security, echoed Trend Micro&#8217;s warning.</p>
<p>&#8220;It won&#8217;t be long before someone reverse engineers this exploit for more fraudulent purposes. Trend Mico&#8217;s advice [of switching to an alternative web browser] is very sensible,&#8221; he said.</p>
<p><!-- S IBOX --></p>
<table border="0" cellspacing="0" cellpadding="0" width="231" align="right">
<tbody>
<tr>
<td width="5"><img src="http://newsimg.bbc.co.uk/shared/img/o.gif" border="0" alt="" hspace="0" vspace="0" width="5" height="1" /></td>
<td class="sibtbg">
<div class="o"></div>
<div>
<div class="mva"><img src="http://newsimg.bbc.co.uk/nol/shared/img/v3/start_quote_rb.gif" border="0" alt="" width="24" height="13" /> <strong>This could be the moment when the minnows in the browser wars finally score a significant victory</strong> <img src="http://newsimg.bbc.co.uk/nol/shared/img/v3/end_quote_rb.gif" border="0" alt="" vspace="0" width="23" height="13" align="right" />
</div>
</div>
<div class="mva">
<div>Rory Cellan-Jones<br />
BBC technology editor</div>
</div>
<div class="o"><img src="http://newsimg.bbc.co.uk/nol/shared/img/v3/inline_dashed_line.gif" border="0" alt="" hspace="0" vspace="2" width="226" height="1" />
</div>
<div class="miiib"><!-- S ILIN --></p>
<div class="arr"><a href="http://www.bbc.co.uk/blogs/technology/2008/12/is_it_safe_to_explore.html">Read the dot.life blog in full</a></div>
<p><!-- E ILIN --></div>
</td>
</tr>
</tbody>
</table>
<p><!-- E IBOX -->PC Pro magazine&#8217;s security editor, Darien Graham-Smith, said that there was a virtual arms race going on, with hackers always on the look out for new vulnerabilities.</p>
<p>&#8220;The message needs to get out that this malicious code can be planted on any web site, so simple careful browsing isn&#8217;t enough.&#8221;</p>
<p>&#8220;It&#8217;s a shame Microsoft have not been able to fix this more quickly, but letting people know about this flaw was the right thing to do. If you keep flaws like this quiet, people are put at risk without knowing it.&#8221;</p>
<p>&#8220;Every browser is susceptible to vulnerabilities from time to time. It&#8217;s fine to say &#8216;don&#8217;t use Internet Explorer&#8217; for now, but other browsers may well find themselves in a similar situation,&#8221; he added.</p>
<p><em><strong><a href="http://news.bbc.co.uk/2/hi/technology/7784908.stm" target="_blank">Source</a></strong></em></p>
<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.nataprawira.com/tech/2008/12/17/serious-security-flaw-found-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to recover domain when the primary domain controller failes and there are member domain controllers</title>
		<link>http://blog.nataprawira.com/tech/2008/08/13/how-to-recover-domain-when-the-primary-domain-controller-failes-and-there-are-member-domain-controllers/</link>
		<comments>http://blog.nataprawira.com/tech/2008/08/13/how-to-recover-domain-when-the-primary-domain-controller-failes-and-there-are-member-domain-controllers/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 17:02:04 +0000</pubDate>
		<dc:creator>Denie</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.nataprawira.com/tech/?p=5</guid>
		<description><![CDATA[

Many of us have probably dabbled in setting up our own domain and forest for development purposes. For me &#8211; a domain is a must &#8211; I have my development environment that is heavily used to model development projects for clents &#8211; and I have my family &#8211; me, my wife, and 7 children with [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2008%2F08%2F13%2Fhow-to-recover-domain-when-the-primary-domain-controller-failes-and-there-are-member-domain-controllers%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.nataprawira.com%2Ftech%2F2008%2F08%2F13%2Fhow-to-recover-domain-when-the-primary-domain-controller-failes-and-there-are-member-domain-controllers%2F" height="61" width="51" /></a></div>
<!-- ALL ADSENSE ADS DISABLED -->
<p>Many of us have probably dabbled in setting up our own domain and forest for development purposes. For me &#8211; a domain is a must &#8211; I have my development environment that is heavily used to model development projects for clents &#8211; and I have my family &#8211; me, my wife, and 7 children with their own computers.</p>
<p>So, we have a fairly detailed setup on the home front &#8211; but the following applies to ANY environment in which your primary domain controller gives up the ghost &#8211; and you do not have an image backup of the PDC.</p>
<p><b>Foremost &#8211; clarity: In an Active Directory forest, where you have several domain controllers, but one primary domain controller (PDC) &#8211; you may think that you must RESTORE or recover this PDC to salvage the domain. In other words, if the PDC fails &#8211; is all lost? Nope, not at all. Unless you do not have backup domain controllers. If you do not &#8211; then reading the rest of this is moot &#8211; but if you do, then read on.</b></p>
<p>When you promote additional servers on your domain, and make them member DC&#8217;s in the same forest, then your domain details are available to you &#8211; and you simply need to transfer the Operation Master role to another DC &#8211; but before doing that &#8211; there are the FSMO&#8217;s &#8211; yea, something hardly anyone knows about: FSMO = Flexible Single Master Operation &#8211; something your PDC or master of operations &#8211; manages. If a PDC &#8211; and Global Catalog for that matter &#8211; goes offline, a backup DC will generally pickup and juggle traffic for the PDC. But what happens if the PDC crashes altogether, and you need to basically assign a member backup DC the PDC role?</p>
<p><b>FSMO must be transferred to a backup DC before that DC can assume the Master of Operations role. This is done at the command-line level, and you must be careful before you make this call &#8211; ONLY do this if you are sure you cannot recover the original PDC because once you do this &#8211; you cannot later recover the PDC and bring it online. It cannot be added back into the forest at all.</b></p>
<p>So, the FSMO roles and how we transfer these. In a word, you cannot simply transfer the FSMO roles because the PDC is off line and not available to authorize the transfer. However, you &#8216;can&#8217; SEIZE the FSMO roles from the original PDC &#8211; even with the machine offl line.</p>
<blockquote><p>Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality.</p>
</blockquote>
<p>Open a <b>CMD prompt on the backup DC</b> you want to perform this on. At the command-line prompt, type <b>Ntdsutil</b> and press enter .</p>
<blockquote>
<p>Microsoft Windows [Version 5.2.3790]<br />
(C) Copyright 1985-2003 Microsoft Corp.</p>
<p>C:\WINDOWS&gt;ntdsutil<br />
ntdsutil:</p>
</blockquote>
<p>At this prompt, type roles and press :</p>
<blockquote>
<p>ntdsutil: roles<br />
fsmo maintenance:</p>
</blockquote>
<p>Now type connections and press :</p>
<blockquote>
<p>fsmo maintenance: connections<br />
server connections:</p>
</blockquote>
<p>Now type <b>connect to server SERVERNAME</b>  where  is the name of the backup DC you are working on, and press :</p>
<blockquote>
<p>server connections: connect to server hamddc02</p>
<p>Connected to hamdc02 using credentials of locally logged on user.<br />
server connections:</p>
</blockquote>
<p>At the server connections prompt type <b>q</b> and press enter :</p>
<blockquote>
<p>server connections: q<br />
fsmo maintenance:</p>
</blockquote>
<p>Now we are going to <b>SEIZE the FSMO roles</b> we want. <u>NOTE</u>: Out of the 5 FSMO roles, we are NOT going to seize the Infrastructure Master. We do not want to put the Infrastructure Master (IM) role on the same domain controller as the Global Catalog server. If the Infrastructure Master runs on a GC server it will stop updating object information because it does not contain any references to objects that it does not hold. This is because a GC server holds a partial replica of every object in the forest. <b>For now, we&#8217;ll seize the following</b>:</p>
<blockquote>
<p>
<b><br />
Seize domain naming master<br />
Seize PDC<br />
Seize RID master<br />
Seize schema master<br />
</b></p>
</blockquote>
<p>We do this by typing the line shown above. For example, to seize the domain naming master, type seize domain naming master and press </p>
<p>You will receive a Windows dialog prompting to confirm this move &#8211; click  and then you&#8217;ll see the attempt to safely transfer the FSMO role, a failure message, and then it will seize the role, assigning it to the backup DC you specified when you connected to the server above.</p>
<p>Once you have completed this for the 4 roles, type <b>Quit</b> to exit the utility, then Exit to return to Windows.</p>
<p>From the <b>Start menu</b>, select <b>Run</b> and enter <b>dsa.msc</b> and press enter.</p>
<p>On the domain that is displayed, <b>right click</b> and select <b>Operations Masters</b>. You should now see that this backup domain controller (HAMDC02 in this case) is not the Operations master.</p>
<p>From here you simply <b>re-create the failed domain controller</b>, and promote it &#8211; joining it to this existing forest. </p>
<p>Hopefully others will find this useful.</p>
</p>
<p>Source:<br /><a href="http://geekswithblogs.net/mhamilton/archive/2007/04/15/111674.aspx">geekswithblogs.net/mhamilton/archive/2007/04/15/111674.aspx</a></p>
<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.nataprawira.com/tech/2008/08/13/how-to-recover-domain-when-the-primary-domain-controller-failes-and-there-are-member-domain-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
