<?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>Who... What... Where... &#187; Windows</title>
	<atom:link href="http://www.yeltuor.com/articles/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yeltuor.com</link>
	<description>General things I find interesting</description>
	<lastBuildDate>Sun, 02 Aug 2009 09:58:13 +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>VB Query Active Directory Objects</title>
		<link>http://www.yeltuor.com/articles/script/vb-query-active-directory-objects/</link>
		<comments>http://www.yeltuor.com/articles/script/vb-query-active-directory-objects/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 19:56:58 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[Scripting Snippets]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[VB]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=89</guid>
		<description><![CDATA[In an Active Directory environment there is often a requirement to query objects within the AD  database, either returning selected attribute values or using this information to for further queries.
The same principles apply across any object type, the script below connects via LDAP, performs a query and returns selected values from Active Directory.
The below script [...]]]></description>
			<content:encoded><![CDATA[<p>In an Active Directory environment there is often a requirement to query objects within the AD  database, either returning selected attribute values or using this information to for further queries.</p>
<p>The same principles apply across any object type, the script below connects via LDAP, performs a query and returns selected values from Active Directory.</p>
<p>The below script will query all objects in the OU <em>MyServers</em> and subtree, in the domain <em>Domain.co.uk</em>, of type <em>computer</em>, returning the attributes <em>Name </em>and <em>Location</em>.</p>
<blockquote><p>Const ADS_SCOPE_SUBTREE = 2</p>
<p>Set objConnection = CreateObject(”ADODB.Connection”)<br />
Set objCommand = CreateObject(”ADODB.Command”)<br />
objConnection.Provider = “ADsDSOObject”<br />
objConnection.Open “Active Directory Provider”</p>
<p>Set objCOmmand.ActiveConnection = objConnection<br />
objCommand.CommandText = “Select Name, Location from ‘LDAP://OU=MyServers,DC=Domain,DC=co,DC=uk’ ” &amp; “Where objectClass=’computer’”<br />
objCommand.Properties(”Page Size”) = 1000<br />
objCommand.Properties(”Searchscope”) = ADS_SCOPE_SUBTREE<br />
Set objRecordSet = objCommand.Execute<br />
objRecordSet.MoveFirst<br />
Do Until objRecordSet.EOF</p>
<p>‘ Insert Operators here<br />
objRecordSet.MoveNext</p>
<p>Loop</p></blockquote>
<p>Once the query has been run the results can then be used for any requirement, a simple example below is to display  the name of the computer followed by the Location attribute stored in AD.</p>
<blockquote><p>……<br />
Do Until objRecordSet.EOF</p>
<p>‘ Insert Operators here<br />
Wscript.Echo “Computer Name: ” &amp; objRecordSet.Fields(”Name”).Value<br />
Wscript.Echo “Location: ” &amp; objRecordSet.Fields(”Location”).Value</p>
<p>objRecordSet.MoveNext<br />
Loop</p></blockquote>
<p>Any attribute of the object can be displayed as long as it was requested in the initial query; <em>Select Name, Location from….</em> , attribute names are LDAP attributes rather than field names seen in the Active Directory Users and Computers mmc. A list of attributes can be found here; <a href="http://www.yeltuor.com/reference/active-directory-ldap-attributes/">Active Directory LDAP Attributes</a></p>
<p>One way to enhance this script further is for each computer selected perform a WMI query against it; <a href="http://www.yeltuor.com/">VB WMI Query</a></p>

	Tags: <a href="http://www.yeltuor.com/articles/tag/active-directory/" title="Active Directory" rel="tag">Active Directory</a>, <a href="http://www.yeltuor.com/articles/tag/ldap/" title="LDAP" rel="tag">LDAP</a>, <a href="http://www.yeltuor.com/articles/tag/vb/" title="VB" rel="tag">VB</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/script/vb-query-active-directory-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVCHOST High CPU Usage Issue</title>
		<link>http://www.yeltuor.com/articles/how-to/svchost-high-cpu-usage-issue/</link>
		<comments>http://www.yeltuor.com/articles/how-to/svchost-high-cpu-usage-issue/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:18:01 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Automatic Updates]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=75</guid>
		<description><![CDATA[There are a number of threads in the Microsoft Windows Update Newsgroup and around other well known sites regarding the infamous SVCHOST Issue!
The main issue that people are reporting is the high CPU usage from the process SVCHOST.exe, generally fluctuating between 20 and 85 percent CPU usage, in some cases using all of the CPU [...]]]></description>
			<content:encoded><![CDATA[<div class="content">
<p align="left">There are a number of threads in the Microsoft Windows Update Newsgroup and around other well known sites regarding the infamous SVCHOST Issue!</p>
<p align="left">The main issue that people are reporting is the high CPU usage from the process <em>SVCHOST.exe</em>, generally fluctuating between 20 and 85 percent CPU usage, in some cases using all of the CPU cycles and leaving the computer un-usable.<!--break --></p>
<p align="left">The cause of this is the Automatic Update service during its detection process; this is where the client PC either checks in to the local WSUS server or accesses the Windows Update site and determines which MS updates are required from the update catalogue.</p>
<p align="left"><em>All of this information is very good&#8230;</em> I hear you say, however where is the fix!</p>
<p align="left">Ok, after much web crawling and some testing, below is the method I have used for my clients which has proved sucessfull:</p>
<ol>
<li>
Firstly stop the Automatic Update service either through services.msc or with the command line <em>net stop &#8220;Automatic Updates&#8221;. </em>This will ensure the update process is as quick as possible.</li>
<li>
Next apply the first of two patches; an update to the Windows Update Agent, the current version is 2.0, this patch updates it to version 3.0 which is pushed out via WSUS v3.0:</p>
<ul>
<li>
<a title="WUA 3.0 - x86" href="http://download.windowsupdate.com/v7/windowsupdate/redist/standalone/WindowsUpdateAgent30-x86.exe">Windows Update Agent 3.0 &#8211; x86</a>
</li>
<li>
<a title="WUA 3.0 - x64" href="http://download.windowsupdate.com/v7/windowsupdate/redist/standalone/WindowsUpdateAgent30-x64.exe">Windows Update Agent 3.0 &#8211; x64</a>
</li>
<li>
<a title="WUA 3.0 - ia64" href="http://download.windowsupdate.com/v7/windowsupdate/redist/standalone/WindowsUpdateAgent30-ia64.exe">Windows Update Agent 3.0 &#8211; ia64</a>
</li>
</ul>
</li>
<li>Apply the hotfix for this issue, originally stated in <a title="KB916089" href="http://support.microsoft.com/kb/916089/">KB916089</a> and then superseded by <a title="KB927891" href="http://support.microsoft.com/kb/927891">KB927891</a> which provides an update for the Msi31.dll (exact name depends on operating version) with basically a more efficient detection algorithm in place:
<ul>
<li>
<a title="KB927891 - x86" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=7A81B0CD-A0B9-497E-8A89-404327772E5A">Hotfix KB927891 &#8211; x86</a>
</li>
<li>
<a title="KB927891 - x64" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=ECF96769-BEB6-4F7F-AC92-5BAEFB5632A3">Hotfix KB927891 &#8211; x64</a>
</li>
</ul>
</li>
<li>
Finally reboot the client PC and start the Automatic Update service if it is not set to start automatically.
</li>
</ol>
<div>I hope this solution is effective for everyone who reads this article as it was for me, and there are only one statement to make; <em>Thanks again MS&#8230; another fine mess you have gotten us into.. however at least you are keeping us in our jobs!</em></div>
</div>

	Tags: <a href="http://www.yeltuor.com/articles/tag/automatic-updates/" title="Automatic Updates" rel="tag">Automatic Updates</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/how-to/svchost-high-cpu-usage-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Custom Windows Service</title>
		<link>http://www.yeltuor.com/articles/how-to/create-a-custom-windows-service/</link>
		<comments>http://www.yeltuor.com/articles/how-to/create-a-custom-windows-service/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:12:59 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=72</guid>
		<description><![CDATA[This article describes how to create a service on either Windows NT, 2000 or XP (untested on Vista). The service can run any application required and can be configured as any other service on the system can.
This information has been extracted from the Microsoft article KB137890, and requires two programs that can be found in [...]]]></description>
			<content:encoded><![CDATA[<div class="content">
<p>This article describes how to create a service on either Windows NT, 2000 or XP (untested on Vista). The service can run any application required and can be configured as any other service on the system can.</p>
<p>This information has been extracted from the Microsoft article KB137890, and requires two programs that can be found in the Windows NT resource kit (or <a title="srvany.zip" href="http://www.yeltuor.com/s/files/srvany.zip" target="_blank">here</a>)</p>
<ul>
<li>SRVANY.EXE &#8211; Allows any application to run as a service</li>
<li>INSTSRV.EXE &#8211; Creates the system service</li>
</ul>
<h3>Create the service</h3>
<p>Use the INSTSRV.EXE application to create the system service, it requires two parameters; the first is the name of the service you want to create, the second is always the path to the SRVANY.EXE application.</p>
<blockquote><p>INSTSRV.EXE Notepad c:\SRVANY.EXE</p></blockquote>
<h3>Set the application as a service</h3>
<p>Next edit the registry and enter the path to the application that is required to run as a service. The location is the registry depends on the name of the service that was defined above; in this case <em>Notepad</em></p>
<blockquote><p>Run <em>regedit.exe</em></p>
<p>Navigate to HKLM\SYSTEM\CurrentControlSet\Services\Notepad</p>
<p>Create a new key called <em>Parameters</em></p>
<p>Under the new key create a new string value called <em>Application</em> and set its value to the path of the application <em>c:\WINDOWS\NOTEPAD.EXE</em></p></blockquote>
<p>Once created this service can be managed through the services mmc to set its startup type, recovery response etc.</p>
<p>To make this process easier, the following code can be placed into a batch file and run (with the correct parameters) to create the service and congfiure the registry. It assumes that INSTSRV.EXE is already in a search path and that SRVANY.EXE is located in the root of the C drive.</p>
<blockquote><p>@echo off</p>
<p>rem #################################<br />
rem ## This batch file created a new system service ##<br />
rem ## ensure the correct parameters are usedÂ Â Â Â Â Â         ##<br />
rem #################################</p>
<p>rem Parameter 1 should be the name of the service<br />
rem Parameter 2 should be the path to the executable</p>
<p>echo Creating Service<br />
INSTSRV.EXE %1 c:\SRVANY.EXE</p>
<p>echo Creating Registry Keys<br />
reg add &#8220;HKLM\SYSTEM\CurrentControlSet\Services\%1\Parameters&#8221;<br />
reg add &#8220;HKLM\SYSTEM\CurrentControlSet\Services\%1\Parameters&#8221; /v Application /d %2</p></blockquote>
</div>

	Tags: <a href="http://www.yeltuor.com/articles/tag/services/" title="Services" rel="tag">Services</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/how-to/create-a-custom-windows-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows CLI &#8211; Tasklist</title>
		<link>http://www.yeltuor.com/articles/how-to/windows-cli-tasklist/</link>
		<comments>http://www.yeltuor.com/articles/how-to/windows-cli-tasklist/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:09:31 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Services]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=70</guid>
		<description><![CDATA[The command line tool tasklist without any switches will simply display the local currently running processes and if the /S parameter is used process&#8217;s running on a remote machine can be queried.
Now all of this isn&#8217;t really worth writing about you might say, however one switch that I found useful was the command tasklist /svc [...]]]></description>
			<content:encoded><![CDATA[<p>The command line tool <em>tasklist</em> without any switches will simply display the local currently running processes and if the <em>/S</em> parameter is used process&#8217;s running on a remote machine can be queried.</p>
<p>Now all of this isn&#8217;t really worth writing about you might say, however one switch that I found useful was the command <em>tasklist /svc</em> ; this will display a list of all running processes along with any related services attached to that process.</p>

	Tags: <a href="http://www.yeltuor.com/articles/tag/cli/" title="CLI" rel="tag">CLI</a>, <a href="http://www.yeltuor.com/articles/tag/services/" title="Services" rel="tag">Services</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/how-to/windows-cli-tasklist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Batch File &#8211; For Loop</title>
		<link>http://www.yeltuor.com/articles/script/batch-file-for-loop/</link>
		<comments>http://www.yeltuor.com/articles/script/batch-file-for-loop/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 22:02:52 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[Scripting Snippets]]></category>
		<category><![CDATA[Batch File]]></category>
		<category><![CDATA[Loop]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=67</guid>
		<description><![CDATA[I will commonly write small batch files to automate tasks that are repetitive, due to this I find myself using the for loop a lot. Below are a few examples of when and where the for loop can be used effectively.
Looping through entries in a file
This example will take a standard text file (MyTextFile.txt) and [...]]]></description>
			<content:encoded><![CDATA[<div class="content">
<p class="MsoNormal">I will commonly write small batch files to automate tasks that are repetitive, due to this I find myself using the <em>for loop</em> a lot. Below are a few examples of when and where the for loop can be used effectively.</p>
<h3>Looping through entries in a file</h3>
<p>This example will take a standard text file (MyTextFile.txt) and then loop through all lines until the end of the file is reached. For each of the lines the first word (represented by <em>%%A</em>) will be printed out to the screen and ping&#8217;ed.</p>
<blockquote><p>FOR /F &#8220;tokens=1&#8243; %%A IN (C:\MyTextFile.txt) DO (</p>
<p>echo %%A</p>
<p>ping %%A</p>
<p>)</p></blockquote>
<p>An example of the text file is simply:</p>
<blockquote><p>COMPUTER01<br />
COMPUTER02<br />
COMPUTER03<br />
COMPUTER04</p></blockquote>
<p>By changing the <em>tokens</em> value, which word on a line that is used will change. By setting the value of tokens from <em>1</em> to <em>1,2</em> both the first and second words per line will be available via the parameters <em>%%A</em> and <em>%%B</em>. When using the following input file, within the loop %%A will be the computer name and %%B will be the IP address.</p>
<blockquote><p>COMPUTER01 192.168.1.100<br />
COMPUTER02 192.168.1.101<br />
COMPUTER03 192.168.1.102</p></blockquote>
<p>To ignore selected lines, i.e. lines that are actually comments use the <em>eol </em>parameter, the following for loop will ignore all lines that start with a colon:</p>
<blockquote><p>FOR /F &#8220;tokens=1 eol=:&#8221; %%A IN (C:\MyTextFile.txt) DO (</p>
<p>echo %%A</p>
<p>)</p></blockquote>
<p>If the input file has a number of header lines that should not be included the <em>skip</em> parameter should be used, for following will exclude the first 3 files of the input file:</p>
<blockquote><p>FOR /F &#8220;tokens=1 eol=: skip=3&#8243; %%A IN (C:\MyTextFile.txt) DO (</p>
<p>echo %%A</p>
<p>)</p></blockquote>
<p>To override the default delimiters (space and tab) the <em>delims</em> parameter should be used. The following will ignore the space delimiter and instead delimiter by comma:</p>
<blockquote><p>FOR /F &#8220;tokens=1 delims=,&#8221; %%A IN (C:\MyTextFile.txt) DO (</p>
<p>echo %%A</p>
<p>)</p></blockquote>
</div>

	Tags: <a href="http://www.yeltuor.com/articles/tag/batch-file/" title="Batch File" rel="tag">Batch File</a>, <a href="http://www.yeltuor.com/articles/tag/loop/" title="Loop" rel="tag">Loop</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/script/batch-file-for-loop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cygwin</title>
		<link>http://www.yeltuor.com/articles/how-to/cygwin/</link>
		<comments>http://www.yeltuor.com/articles/how-to/cygwin/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 22:08:09 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=35</guid>
		<description><![CDATA[Cygwin is a Windows program that emulates a Linux like environment for your Windows PC, it is easy to install and provides modular approach to adding tools to the environment. The key to Cygwin working is the cygwin1.dll that gets installed, it provides a Linux API emulation layer for the applications that are specifically compiled [...]]]></description>
			<content:encoded><![CDATA[<div class="content">
<p>Cygwin is a Windows program that emulates a Linux like environment for your Windows PC, it is easy to install and provides modular approach to adding tools to the environment. The key to Cygwin working is the <em>cygwin1.dll</em> that gets installed, it provides a Linux API emulation layer for the applications that are specifically compiled for the Cygwin environment.</p>
<p>For more in-depth information into how the Cygwin application works see <a title="Cygwin Home" href="http://www.cygwin.com/" target="_blank">Cygwin</a></p>
<p>This article some key setup tips and how to configure what I find one the the most useful aspects; the SSH server with Cygwin.</p>
<h3>Cygwin Tools in Windows Command Prompt</h3>
<p>All of the default tools provided with Cygwin are very useful, however I did find my self trying to use Windows tools whilst in Cygwin and Linux tools whilst in Windows!</p>
<p>To solve this simply add the Cygwin <em>bin</em> folder (C:\cygwin\bin) into your Windows <em>Path</em> environment variable and there you go. From a command prompt you can use both the <em>dir </em>or <em>ls </em>commands depending on your mood.</p>
<blockquote><p>Right Click on <em>My Computer </em>then select <em>Properties</em></p>
<p>Choose <em>Advanced </em>then <em>Environment Variables</em></p>
<p>Under <em>System variables </em>edit the variable <em>Path </em>and add the Cygwin bin folder,<br />
i.e. <em>;c:\cygwin\bin</em></p></blockquote>
<h3>Setting-up SSH Access</h3>
<p>When accessing you Windows PC remotely, it only supports full GUI access or unencrypted Telnet traffic. With Cygwin you can install the <a title="OpenSSH" href="http://www.openssh.com/">OpenSSH </a>server which is an open source SSH connectivity tool supporting various well known featured including both SSH1 and SSH2 protocols.</p>
<p>The implementation below explains how to setup OpenSSH through Cygwin which will run a service on your Windows PC called <em>CYGWIN sshd</em></p>
<h4>Re-requisites required</h4>
<p>When authenticating to your PC via SSH it will use the existing Windows user accounts to authenticate, the user account that you want to use must have a password set.<br />
Ensure that Cygwin is installed along with the package called <em>openssh</em></p>
<h4>Add Environment Variables</h4>
<blockquote><p>Right Click on <em>My Computer</em> then select <em>Properties</em></p>
<p>Choose <em>Advanced</em> then <em>Environment Variables</em></p>
<p>Under <em>System variables</em> click <em>New</em> with the name of <em>CYGWIN</em> and a value of <em>ntsec</em></p>
<p>Under <em>System variables</em> edit the variable <em>Path</em> and add the Cygwin bin folder, i.e. <em>;c:\cygwin\bin</em> <strong>NB</strong> do not do this part again if you have already in the previous post.</p></blockquote>
<h4>SSH Host config</h4>
<p>Open a Cgywin console and run command</p>
<blockquote><p>ssh-host-config</p></blockquote>
<p>When prompted, answer the following:</p>
<blockquote><p><em>Privilege Separation</em> answer <em>yes</em></p>
<p><em>Create local user sshd</em> answer <em>yes</em></p>
<p>I<em>nstall SSHD as a service</em> answer <em>yes</em></p>
<p><em>CYGWIN=</em> answer <em>ntsec </em></p></blockquote>
<p><strong>NB</strong>: The <em>ntesc</em> answer tells Cygwin to authenticate using the local Windows accounts<br />
<strong><br />
</strong></p>
<h4>Start the SSH service to allow connections</h4>
<p>The Windows service will default to start automatically every-time Windows starts, to start the service manually run one of the two commands</p>
<blockquote><p>net start sshd<br />
or<br />
cygrunsrv &#8211;start sshd</p></blockquote>
<h4>Synchronise local Windows user information with Cygwin</h4>
<p>Run the two commands from within Cygwin</p>
<blockquote><p>mkpasswd &#8211;local &gt; /etc/passwd</p>
<p>mkpasswd &#8211;group &gt; /etc/group</p></blockquote>
<h4>Testing SSH Works</h4>
<p>Use a SSH client such as <a title="PuTTy" href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/" target="_blank">PuTTy</a> and then connect to <em>localhost</em> on port 22 (SSH Port)<br />
Alternatively use the Cygwin SSH client:</p>
<blockquote><p>cygwin# SSH user@localhost</p></blockquote>
<p><strong>NB</strong>: The port used by OpenSSH can be changed in the file <em>c:\cygwin\ssh-host-config</em> under <em>port_number</em>. After changing the port number you must re-start the <em>CYGWIN sshd </em>serivce for changes to come into effect.</div>

	Tags: <a href="http://www.yeltuor.com/articles/tag/ssh/" title="SSH" rel="tag">SSH</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/how-to/cygwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Additional AD User Account Information</title>
		<link>http://www.yeltuor.com/articles/how-to/additional-ad-user-account-information/</link>
		<comments>http://www.yeltuor.com/articles/how-to/additional-ad-user-account-information/#comments</comments>
		<pubDate>Sun, 08 Feb 2009 21:54:55 +0000</pubDate>
		<dc:creator>shane</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[User]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.yeltuor.com/?p=27</guid>
		<description><![CDATA[There is a lot of information that Active Directory stores in its database that is not necessarily available through common tools such as Active Directory Users and Computers MMC.
With the Active Directory Users and Computers MMC installed, and by using part of Microsoft&#8217;s Account Lockout and Management Tool, extra user account information can be made [...]]]></description>
			<content:encoded><![CDATA[<p>There is a lot of information that Active Directory stores in its database that is not necessarily available through common tools such as <em>Active Directory Users and Computers</em> MMC.</p>
<p>With the Active Directory Users and Computers MMC installed, and by using part of Microsoft&#8217;s <a title="MS Account Lockout and Management Tools" href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7AF2E69C-91F3-4E63-8629-B999ADDE0B9E&amp;displaylang=en" target="_blank">Account Lockout and Management Tool</a>, extra user account information can be made accessible, this includes:</p>
<ul>
<li>Password last set time</li>
<li>Password expiry time</li>
<li>SID and GUID</li>
<li>Last Logon \ Logoff \ Bad Password time</li>
<li>Logon \ Bad Password count</li>
</ul>
<p><strong>NB:</strong> The last logon and logoff attributes within a Windows 2000 domain are <em>not</em> replicated between domain controllers&#8230; therefore not accurate. However this has been fixed with AD 2003 by adding another attribute into the schema called lastLogonTimestamp which <em>is </em>replicated.</p>
<p>The first step is to get the acctinfo.dll available from the above tool or here.</p>
<p>Next, copy the file to C:\WINDOWS\SYSTEM32 then run the command</p>
<blockquote><p><em>regsvr32 C:\WINDOWS\SYSTEM32\acctinfo.dll</em></p></blockquote>
<p>This will register the dll, when opening the Users and Computers console you will notice another tab called <em>Additional Account Info</em>. This is where the extra information is displayed.</p>

	Tags: <a href="http://www.yeltuor.com/articles/tag/active-directory/" title="Active Directory" rel="tag">Active Directory</a>, <a href="http://www.yeltuor.com/articles/tag/user/" title="User" rel="tag">User</a>, <a href="http://www.yeltuor.com/articles/tag/windows/" title="Windows" rel="tag">Windows</a><br />
]]></content:encoded>
			<wfw:commentRss>http://www.yeltuor.com/articles/how-to/additional-ad-user-account-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
