<?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>Computer Support &#187; disable</title>
	<atom:link href="http://www.xiitec.com/blog/tag/disable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Disabling Shutdown Tracker</title>
		<link>http://www.xiitec.com/blog/2008/02/20/disabling-shutdown-tracker/</link>
		<comments>http://www.xiitec.com/blog/2008/02/20/disabling-shutdown-tracker/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 21:46:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System configuration]]></category>
		<category><![CDATA[disable]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=155</guid>
		<description><![CDATA[You want to disable the Shutdown Tracker from running at system startup on lab or test systems because it is annoying. Shutdown Tracker is a new feature of Windows Server 2003 that prompts you to provide a description of the reason why a server is being shut down or restarted. If the server unexpectedly restarted, [...]]]></description>
			<content:encoded><![CDATA[<p>You want to disable the Shutdown Tracker from running at system startup on lab or test systems because it is annoying. Shutdown Tracker is a new feature of Windows Server 2003 that prompts you to provide a description of the reason why a server is being shut down or restarted. If the server unexpectedly restarted, you are prompted during logon for this information.</p>
<p><span id="more-155"></span></p>
<p>You need to reboot the system for the changes to take effect after performing one of the following.</p>
<p><strong>Using a graphical user interface</strong></p>
<ol>
<li>Open the Registry Editor (regedit.exe) and connect to the target machine.</li>
<li>In the left pane, expand HKEY_LOCAL_MACHINE  &gt; SOFTWARE  &gt; Policies  &gt; Microsoft  &gt; Windows NT.</li>
<li>If there is no subkey called Reliability, create it by right-clicking Windows NT, selecting New  Key, and typing Reliability.</li>
<li>Right-click Reliability and select New  &gt; DWORD Value.</li>
<li>In the right pane, type ShutdownReasonOn and hit enter. Leave the default value set to 0.</li>
</ol>
<p>You can also disable Shutdown Tracker using group policy. The settings for it are located in Computer Configuration  &gt; Administrative Templates  &gt; System  &gt; Display Shutdown System Tracker.</p>
<p><strong>Using a command-line interface</strong><br />
The following command disables the Shutdown Tracker:</p>
<pre>&gt; reg add "\\<servername>\HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v
 ShutdownReasonOn /t REG_DWORD /d 0</servername></pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code disables the Shutdown Tracker from running.
 ' ------ SCRIPT CONFIGURATION ------
 intEnable = 0      ' 0 = disable; 1 = enable screen
 strComputer = "."  ' e.g., rallen-srv01
 ' ------ END CONFIGURATION ---------
 const HKLM = &amp;H80000002
 strKeyPath = "SOFTWARE\Policies\Microsoft\Windows NT\Reliability"
 set objReg = GetObject("winmgmts:\\" &amp; strComputer &amp; _
                        "\root\default:StdRegProv")
 intRC1 = objReg.CreateKey(HKLM,strKeyPath)
 intRC2 = objReg.SetDwordValue(HKLM, strKeyPath, "ShutdownReasonOn", intEnable)
 if intRC1 &lt;&gt; 0 or intRC2 &lt;&gt; 0 then
    WScript.Echo "Error setting registry value: " &amp; intRC
 else
    WScript.Echo "Successfully disabled shutdown tracker"
 end if</pre>
<p>Don&#8217;t get me wrong, I think the Shutdown Tracker is a very useful feature. In fact, I&#8217;m glad Microsoft added it, but it can be annoying on test systems that you want to restart or shut down frequently. After Shutdown Tracker runs, it creates event 1074 in the System event log. Here is an example:</p>
<pre>Event Type:    Information
 Event Source:    USER32
 Event Category:    None
 Event ID:    1074
 Date:        10/11/2003
 Time:        6:50:42 PM
 User:        rallen-w2k3\administrator
 Computer:    RALLEN-W2K3
 Description:
 The process Explorer.EXE has initiated the restart of computer RALLEN-W2K3 on behalf
 of user RALLEN-W2K3\Administrator for the following reason: Other (Planned)
  Reason Code: 0x85000000
  Shutdown Type: restart
  Comment: Just installed a hotfix.</pre>
<pre>For more information, see Help and Support Center at http://go.microsoft.com/fwlink/
 events.asp.
 Data:
 0000: 00 00 00 85               ...</pre>
<p>You can even customize Shutdown Tracker if you want. You can create your own shutdown reasons. There are eight by default. All it takes is some more registry changes. See MS KB 293814 for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/20/disabling-shutdown-tracker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling the Manage/Configure Your Server Screen</title>
		<link>http://www.xiitec.com/blog/2008/02/20/disabling-the-manageconfigure-your-server-screen/</link>
		<comments>http://www.xiitec.com/blog/2008/02/20/disabling-the-manageconfigure-your-server-screen/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 21:42:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System configuration]]></category>
		<category><![CDATA[disable]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=154</guid>
		<description><![CDATA[When you log into a Windows 2000 Server or Windows Server 2003 system for the first time, the Configure Your Server or Manage Your Server screens, respectively, are displayed. These screens are intended to make managing a server easier by providing links to install services and obtain help information. These screens are displayed for every [...]]]></description>
			<content:encoded><![CDATA[<p>When you log into a Windows 2000 Server or Windows Server 2003 system for the first time, the Configure Your Server or Manage Your Server screens, respectively, are displayed. These screens are intended to make managing a server easier by providing links to install services and obtain help information. These screens are displayed for every user that logs on until the user checks the box on the screen to stop the screen from running at logon.</p>
<p><span id="more-154"></span></p>
<p>A setting in the registry controls whether this screen is displayed by default. When a user logs on for the first time, the subkeys and values in the HKEY_USERS\.DEFAULT key are copied to HKEY_USERS\<username>, which is the same as HKEY_CURRENT_USER for the currently logged on user. Under the .DEFAULT key, the Software\Microsoft\Windows NT\CurrentVersion\srvWiz value dictates if the Configure/Manage Your Server screen displays at logon. A value of 0 disables the screen from displaying and 1 enables it. If you set it to 0 before any user logs on to the system, that screen will never display.</username></p>
<p><strong>Using a graphical user interface</strong></p>
<p>The following directions disable the screen for the currently logged on user only. See the command-line solution for how to disable it for all users by default.</p>
<p>For Windows Server 2003:</p>
<ol>
<li>From the Start menu, select All Programs  Administrative Tools  Manage Your Server.</li>
<li>At the bottom lefthand corner of the screen, check the box beside Don&#8217;t display this page at logon.</li>
</ol>
<p>For Windows 2000:</p>
<ol>
<li>From the Start menu, select Programs  Administrative Tools  Configure Your Server.</li>
<li>At the bottom of the screen, uncheck the box beside Show this screen at startup.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>Run the following command against a Windows Server 2003 or Windows 2000 machine to prevent the Manage/Configure Your Server screen from displaying for all users:</p>
<pre>&gt; reg add "\\<servername>\HKU\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\
 Setup\Welcome" /v srvwiz /t REG_DWORD /d 0</servername></pre>
<p>If a user logged in before you set the previous registry value, then you&#8217;ll need to run this command to disable it for the logged-in user (note: this command must be run locally):</p>
<pre>&gt; reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Setup\Welcome\srvWiz"
 /ve /t REG_DWORD /d 0</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code disables the
  Manage/Configure Your Server screen for all users
 ' (this only applies to users that have not logged in yet)
 ' ------ SCRIPT CONFIGURATION ------
 intEnable = 0                 ' 0 = disable screen; 1 = enable screen
 strComputer = "<servername>"  ' name of target server
 ' ------ END CONFIGURATION ---------
 const HKU   = &amp;H80000003
 strKeyPath  = ".DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\" &amp; _
               "Setup\Welcome"
 strValue = "srvwiz"
 set objReg = GetObject("winmgmts:\\" &amp; strComputer &amp; _
                        "\root\default:StdRegProv")
 intRC = objReg.SetDwordValue(HKU, strKeyPath, strValue, intEnable)
 if intRC &lt;&gt; 0 then
    WScript.Echo "Error setting registry value: " &amp; intRC
 else
    WScript.Echo "Successfully disabled screen"
 end if</servername></pre>
<pre>' This code disables the Manage/Configure Your Server screen for
 ' the currently logged on user.
 ' ------ SCRIPT CONFIGURATION ------
 intEnable = 0   ' 0 = disable screen; 1 = enable screen
 strComputer = "."
 ' ------ END CONFIGURATION ---------
 const HKCU   = &amp;H80000001
 strKeyPath   = "Software\Microsoft\Windows NT\CurrentVersion\" &amp; _
               "Setup\Welcome\srvWiz"
 set objReg = GetObject("winmgmts:\\" &amp; strComputer &amp; _
                        "\root\default:StdRegProv")
 intRC = objReg.SetDwordValue(HKCU, strKeyPath, "", intEnable)
 if intRC &lt;&gt; 0 then
    WScript.Echo "Error setting registry value: " &amp; intRC
 else
    WScript.Echo "Successfully disabled screen"
 end if</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/20/disabling-the-manageconfigure-your-server-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling Windows Update</title>
		<link>http://www.xiitec.com/blog/2008/02/15/disabling-windows-update/</link>
		<comments>http://www.xiitec.com/blog/2008/02/15/disabling-windows-update/#comments</comments>
		<pubDate>Fri, 15 Feb 2008 23:58:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System configuration]]></category>
		<category><![CDATA[automatic update]]></category>
		<category><![CDATA[disable]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=140</guid>
		<description><![CDATA[Using a graphical user interface

 Open the Group Policy Management Console.
In the left pane, navigate to the GPO you want to modify.
Right-click the target GPO and select Edit.
In the left pane of the Group Policy Object Editor, expand User Configuration  Administrative Templates  Start menu and Taskbar.
In the right pane, double-click Remove links and [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using a graphical user interface</strong></p>
<ol>
<li> Open the Group Policy Management Console.</li>
<li>In the left pane, navigate to the GPO you want to modify.</li>
<li>Right-click the target GPO and select Edit.</li>
<li>In the left pane of the Group Policy Object Editor, expand User Configuration  Administrative Templates  Start menu and Taskbar.</li>
<li>In the right pane, double-click Remove links and access to Windows Update (for Windows Server 2003) or Disable and Remove Links to Windows Update (for Windows 2000).</li>
<li>Select Enable and click OK.</li>
</ol>
<p><span id="more-140"></span><br />
<strong>Using a command-line interface</strong></p>
<p>To disable Windows Update for all users who haven&#8217;t logged in  previously, run the following command:</p>
<pre>&gt; reg add HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /t

REG_DWORD /v NoWindowsUpdate /d 1</pre>
<p>To disable Windows Update for the user who is currently logged  on, run the following command:</p>
<pre>&gt; reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /t REG_

DWORD /v NoWindowsUpdate /d 1</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code disables Windows Update in the .Default profile.

' ------ SCRIPT CONFIGURATION ------

strComputer = "."

' ------ END CONFIGURATION ---------

const HKEY_USERS = &amp;H80000003

strKey = ".DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer"

set objReg=GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\default:StdRegProv")

objReg.SetDwordValue HKEY_USERS, strKey, "NoWindowsUpdate", 1

WScript.Echo "Windows Update disabled in .Default profile"</pre>
<p>If you are using SUS or some other patch management system to  distribute updates to your client-base, you may not want your clients accessing  the Microsoft Windows Update site <a href="%28http://windowsupdate.microsoft.com/%29" class="docLink" target="_blank">(http://windowsupdate.microsoft.com/)</a>. One of the reasons to  use something like SUS is so your users don&#8217;t have to download the same updates  over the Internet from Microsoft. If you leave Windows Update turned on, there  is nothing to prevent them from doing it.</p>
<p>Fortunately, there is an easy way to disable it. You can use  Group Policy to force the change to apply across a group of users (the Windows  Update disablement settings are available only in the User Configuration section  of a GPO). Or you can use the command-line or VBScript solutions to disable it  via a login script or manually if need be.</p>
<p>Once this setting is in effect, a user will not see the Windows  Update link in the Start Menu or Internet Explorer, and if the user attempts to  access the Windows Update site, he will get a message indicating that Windows  Update has been disabled for his computer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/15/disabling-windows-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling a Connection</title>
		<link>http://www.xiitec.com/blog/2008/02/13/disabling-a-connection/</link>
		<comments>http://www.xiitec.com/blog/2008/02/13/disabling-a-connection/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 00:47:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=126</guid>
		<description><![CDATA[Using a graphical user interface
&#160;

From the Control Panel open the Network Connections applet.
Right-click the network connection you want to disable and  select Disable.


Using a command-line interface
You would think that it would be straightforward to disable a  connection from the command line, but unfortunately that is not the case. In  fact, the netsh [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using a graphical user interface</strong></p>
<p style="font-weight: bold">&nbsp;</p>
<ol>
<li>From the Control Panel open the <span class="docEmphBold">Network Connections</span> applet.</li>
<li>Right-click the network connection you want to disable and  select <span class="docEmphBold">Disable</span>.</li>
</ol>
<p><span id="more-126"></span><br />
<strong>Using a command-line interface</strong></p>
<p>You would think that it would be straightforward to disable a  connection from the command line, but unfortunately that is not the case. In  fact, the <span class="docEmphasis">netsh</span> command supports disabling connections,  but only non-LAN interfaces, which is very disappointing.</p>
<p>But all is not lost! There is an alternative if you really must  have a way to disable connections from the command line. The <span class="docEmphasis">devcon.exe</span> tool is the command-line alternative to the  Device Manager interface and comes with the Driver Development Kit (DDK). You  can download it separately by viewing MS KB 311272 (<a href="http://support.microsoft.com/default.aspx?scid=311272" class="docLink" target="_blank">http://support.microsoft.com/default.aspx?scid=311272</a>).</p>
<p>Once you have it downloaded, run this command to get a list of  all network devices:</p>
<pre>&gt; devcon listclass net</pre>
<p>This displays the list of devices in two columns. The left  column contains the hardware ID for each device and the right column contains  the description for the device.</p>
<p>After you&#8217;ve found the device you want to disable, run the  following command:</p>
<pre>&gt; devcon disable =net <tt><em>&lt;HardwareID&gt;</em></tt></pre>
<p>For example:</p>
<pre>&gt; devcon disable =net PCI\VEN_14B9^&amp;DEV_A504^&amp;SUBSYS_500014B9^&amp;REV_00</pre>
<p>There are a couple of important things I need to point out.  First, if the hardware ID contains any ampersands (&amp;), you have to escape  them using a caret (^). Otherwise, the CMD session will interpret everything  after the first &amp; as another command and <span class="docEmphasis">devcon</span> will attempt to match any hardware ID that  matches the string up until the first &amp;. This can be dangerous because it  can cause you to disable devices you didn&#8217;t intend to.</p>
<p>Second, if the hardware ID contains two backslashes, remove the  second backslash and everything following it. For example, if the  <tt>listall</tt> command returned this for a device I wanted to disable:</p>
<pre>PCI\VEN_14B9&amp;DEV_A504&amp;SUBSYS_500014B9&amp;REV_00\4&amp;39A85202&amp;0&amp;10F0: Cisco Systems PC I Wireless LAN Adapter</pre>
<p>I would need to use this as the hardware ID (including the  carets):</p>
<pre>PCI\VEN_14B9^&amp;DEV_A504^&amp;SUBSYS_500014B9^&amp;REV_00</pre>
<p>Many servers these days come with two network adapters  installed to avoid a single point of failure with the network connection.  Generally, keep one connection active and use the other as a back up. There are  a couple of ways to do this. One is to simply disable one of the connections and  manually enable it if the primary fails. Since you probably won&#8217;t have network  connectivity after the primary adapter fails, you&#8217;ll need another way to access  the server, such as an out-of-band console connection of some type.</p>
<p>Another way to do this is to use a feature that many hardware  vendors support called <em>teaming</em>. With teaming, both adapters are used to  form a virtual adapter. If the primary adapter becomes unavailable, the backup  takes over automatically. (See your hardware vendor for more details.) The  problem with teaming is that, depending on the implementation, it can be  unreliable and ultimately cause more configuration headaches than it is worth. I  recommend testing teaming configurations thoroughly before  implementing them in production.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/13/disabling-a-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling Accounts</title>
		<link>http://www.xiitec.com/blog/2008/02/01/disabling-accounts/</link>
		<comments>http://www.xiitec.com/blog/2008/02/01/disabling-accounts/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 18:59:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Users / Groups]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[lock]]></category>
		<category><![CDATA[user account]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=68</guid>
		<description><![CDATA[To temporarily deactivate an account, disable the user&#8217;s password with the -l (lock) flag:
# passwd -l aborg
Password changed.
To re-enable, or unlock, a user&#8217;s password use:
# passwd -u aborg
Password changed.
Another way to disable an account is to insert an exclamation point at the beginning of the password field in /etc/shadow:
foobar:!$1$wiDlQr34$mitGZA76MSYCY04AHIY1:12466:0:99999:7:::
Yet another way is replace the x [...]]]></description>
			<content:encoded><![CDATA[<p>To temporarily deactivate an account, disable the user&#8217;s password with the -l (lock) flag:</p>
<blockquote><p># passwd -l aborg</p>
<p>Password changed.</p></blockquote>
<p>To re-enable, or unlock, a user&#8217;s password use:</p>
<blockquote><p># passwd -u aborg</p>
<p>Password changed.</p></blockquote>
<p>Another way to disable an account is to insert an exclamation point at the beginning of the password field in <code>/etc/shadow</code>:</p>
<blockquote><p>foobar:!$1$wiDlQr34$mitGZA76MSYCY04AHIY1:12466:0:99999:7:::</p></blockquote>
<p>Yet another way is replace the x in the password field in /etc/passwd with an asterisk (*):</p>
<blockquote><p>foober:*:1025:1025:Foober Smith,,,:/home/foober:/bin/bash</p></blockquote>
<p>You can also take away the user&#8217;s login shell:</p>
<blockquote><p># usermod -s /bin/false foober</p></blockquote>
<p>But it&#8217;s best to stick with passwd -l and -u.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/01/disabling-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

