<?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>a Flo + a Blog = a Flog &#187; Windows</title>
	<atom:link href="http://florian.puthod.net/blog/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://florian.puthod.net/blog</link>
	<description>my ブログ</description>
	<lastBuildDate>Tue, 20 Jul 2010 13:57:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel="next" href="http://florian.puthod.net/blog/tag/windows/feed/?page=2" />

		<item>
		<title>Troubleshooting windows key management</title>
		<link>http://florian.puthod.net/blog/2010/troubleshooting-windows-key-management/</link>
		<comments>http://florian.puthod.net/blog/2010/troubleshooting-windows-key-management/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 16:13:05 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[activation]]></category>
		<category><![CDATA[KMS]]></category>
		<category><![CDATA[R2]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=318</guid>
		<description><![CDATA[I have recently been deploying a few windows 2008 R2 and I ran into some activation issues. Where the KMS could not be found and/or did not activate the servers.
First off, there a few commands and output that will give you a good starting point.
C:\Windows\system32&#62;cscript slmgr.vbs /dlv
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>I have recently been deploying a few windows 2008 R2 and I ran into some activation issues. Where the KMS could not be found and/or did not activate the servers.</p>
<p>First off, there a few commands and output that will give you a good starting point.</p>
<blockquote><p>C:\Windows\system32&gt;cscript slmgr.vbs /dlv<br />
Microsoft (R) Windows Script Host Version 5.8<br />
Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p>Software licensing service version: 6.1.7600.16385</p>
<p>Name: Windows Server(R), ServerStandard edition<br />
Description: Windows Operating System &#8211; Windows Server(R), RETAIL channel<br />
Activation ID: 039998e3-3ef5-4adf-b758-mnbvczxlkjjhh<br />
Application ID: 55c92734-d682-4d71-983e-lkdaskdjaskl<br />
Extended PID: 00477-4444-444-000000-00-1033-7600.0000-3482009<br />
Installation ID: 006386735361234567898785803475982043689521915735258065<br />
Processor Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88342<br />
Machine Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88343<br />
Use License URL: http://go.microsoft.com/fwlink/?LinkID=88345<br />
Product Key Certificate URL: http://go.microsoft.com/fwlink/?LinkID=88344<br />
Partial Product Key: 2YYCD<br />
License Status: Initial grace period<br />
Time remaining: 43200 minute(s) (30 day(s))<br />
Remaining Windows rearm count: 2<br />
Trusted time: 4/27/2010 11:09:12 AM</p></blockquote>
<p>Or its equivalent with less information slmgr /dli.</p>
<p>In that case, it seems that KMS client is not even set here.</p>
<p>First off, you may want to tell the server where to look to get Keys using the following commands.</p>
<p>To know which server should be register you may want to check the DNS record that</p>
<blockquote><p>C:\Windows\system32&gt;nslookup -type=srv _vlmcs._tcp.xxxx.net<br />
Server:  rrrpdcad02.xxxx.net<br />
Address:  10.9999.15</p>
<p>_vlmcs._tcp.xxxx.net   SRV service location:<br />
priority       = 0<br />
weight         = 0<br />
port           = 8081<br />
svr hostname   = rrrmskms01.xxxx.net<br />
rrrpmskms01.xxxx.net   internet address = 10.99.98.97</p></blockquote>
<p>With this information you can now register for this server.</p>
<blockquote><p>C:\Windows\system32&gt;cscript slmgr.vbs /skms rrrpmskms01:1688<br />
Microsoft (R) Windows Script Host Version 5.8<br />
Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p>Key Management Service machine name set to rrrmskms01:1688 successfully.</p></blockquote>
<p>You will then need to enter a valid key if not already done with you unattended install. Please check the below table with MS provided keys for activation using KMS.</p>
<blockquote><p>C:\Windows\system32&gt;cscript slmgr.vbs -ipk YC6KT-GKW9T-YTKYR-T4X34-R7VHC<br />
Microsoft (R) Windows Script Host Version 5.8<br />
Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p>Installed product key YC6KT-GKW9T-YTKYR-T4X34-R7VHC successfully.</p></blockquote>
<p>then trying the activation using the command below I would get another error.</p>
<blockquote><p>C:\Windows\system32&gt;cscript slmgr.vbs /ato<br />
Microsoft (R) Windows Script Host Version 5.8<br />
Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p>Activating Windows Server(R), ServerStandard edition (039998e3-3ef5-ddasdasdass8-d25fa0128ff4) &#8230;<br />
On a computer running Microsoft Windows non-core edition, run &#8216;slui.exe 0x2a 0x80072EE2&#8242; to display the error text.<br />
Error: 0x80072EE2</p></blockquote>
<p>Using the mentioned command I would find that 0x80072EE2 means that the operation timed out. Very well, then I may facing some communication errors.</p>
<p>Indeed, as you may have noticed I made a mistake above not using the right port. I used 1688 which the default port instead.</p>
<p>You can also check on your KMS for a status using the slmgr /dlv command:</p>
<blockquote><p>Key Management Service is enabled on this machine<br />
Current count: 50<br />
Listening on Port: 8081<br />
DNS publishing enabled<br />
KMS priority: Normal</p></blockquote>
<p>Be sure to use the port that is given by the volume license DNS entry and make sure it communicates. As you may have guessed there are 2 ways a new server where a KMS is install will register. Of course after changing to the right port and can try -ato (activation) again.</p>
<ol>
<li>by using the DNS to automatically locate the KMS</li>
<li>or just register it manually using the commands above</li>
</ol>
<p>When rightfully registered the /dli or /dlv will give you something like that:</p>
<blockquote><p>C:\Windows\system32&gt;cscript slmgr.vbs -dli<br />
Microsoft (R) Windows Script Host Version 5.8<br />
Copyright (C) Microsoft Corporation. All rights reserved.</p>
<p>Name: Windows Server(R), ServerStandard edition<br />
Description: Windows Operating System &#8211; Windows Server(R), VOLUME_KMSCLIENT channel<br />
Partial Product Key: R99HC<br />
License Status: Licensed<br />
Volume activation expiration: 259200 minute(s) (180 day(s))</p>
<p>Key Management Service client information<br />
Client Machine ID (CMID): 70e4de42-rewa-4c93-gf45-a6d372bc0a19<br />
Registered KMS machine name: rrrpmskms01.xxxx.net:8081<br />
KMS machine extended PID: 55041-009999-313-09999-03-1033-6002.0000-3442009<br />
Activation interval: 120 minutes<br />
Renewal interval: 10080 minutes<br />
KMS host caching is enabled</p></blockquote>
<p>Activation Keys table (taken from <a href="http://technet.microsoft.com/en-us/library/dd772269.aspx" target="_blank">here</a>)</p>
<table style="height: 288px;" width="547">
<tbody>
<tr>
<th>Operating System Edition</th>
<th>Product Key</th>
</tr>
<tr>
<td><strong>Windows 7</strong></td>
<td></td>
</tr>
<tr>
<td>Windows 7 Professional</td>
<td>FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4</td>
</tr>
<tr>
<td>Windows 7 Professional N</td>
<td>MRPKT-YTG23-K7D7T-X2JMM-QY7MG</td>
</tr>
<tr>
<td>Windows 7 Enterprise</td>
<td>33PXH-7Y6KF-2VJC9-XBBR8-HVTHH</td>
</tr>
<tr>
<td>Windows 7 Enterprise N</td>
<td>YDRBP-3D83W-TY26F-D46B2-XCKRJ</td>
</tr>
<tr>
<td>Windows 7 Enterprise E</td>
<td>C29WB-22CC8-VJ326-GHFJW-H9DH4</td>
</tr>
<tr>
<td><strong>Windows Server 2008 R2</strong></td>
<td></td>
</tr>
<tr>
<td>Windows Server 2008 R2 HPC Edition</td>
<td>FKJQ8-TMCVP-FRMR7-4WR42-3JCD7</td>
</tr>
<tr>
<td>Windows Server 2008 R2 Datacenter</td>
<td>74YFP-3QFB3-KQT8W-PMXWJ-7M648</td>
</tr>
<tr>
<td>Windows Server 2008 R2 Enterprise</td>
<td>489J6-VHDMP-X63PK-3K798-CPX3Y</td>
</tr>
<tr>
<td>Windows Server 2008 R2 for Itanium-Based Systems</td>
<td>GT63C-RJFQ3-4GMB6-BRFB9-CB83V</td>
</tr>
<tr>
<td>Windows Server 2008 R2 Standard</td>
<td>YC6KT-GKW9T-YTKYR-T4X34-R7VHC</td>
</tr>
<tr>
<td>Windows Web Server 2008 R2</td>
<td>6TPJF-RBVHG-WBW2R-86QPH-6RTM4</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2010/troubleshooting-windows-key-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restore an account from AD</title>
		<link>http://florian.puthod.net/blog/2009/restore-an-account-from-ad/</link>
		<comments>http://florian.puthod.net/blog/2009/restore-an-account-from-ad/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 15:38:10 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=290</guid>
		<description><![CDATA[Today I ran into a situation where someone accidentally deleted an account by mistake. It is pretty easy to solve something like that when you have the right tools.
For this recipe, you will need:

adrestore, a great tool from our friend Mark
Admin rights on AD, to perform what you have to do

For your sake, AD keeps [...]]]></description>
			<content:encoded><![CDATA[<p>Today I ran into a situation where someone accidentally deleted an account by mistake. It is pretty easy to solve something like that when you have the right tools.</p>
<p>For this recipe, you will need:</p>
<ul>
<li><a href="http://technet.microsoft.com/en-us/sysinternals/bb963906.aspx" target="_blank">adrestore</a>, a great tool from our friend Mark</li>
<li>Admin rights on AD, to perform what you have to do</li>
</ul>
<p>For your sake, AD keeps deleted record for 30 days by default. If it was an important account, there are great chances you notice it is missing before the 30 days. Past those 30 days, you will need to use the &#8220;standard authoritative&#8221; AD backup method.</p>
<p>Your application using the deleted account will complain and a query on AD reveals it is not there. Not a problem, just follow the 4 easy steps below:</p>
<p><strong>1. Restore the missing account</strong><br />
adrestore.exe -r MissingAccount<br />
Enumerating domain deleted objects:<br />
cn: MissingAccount<br />
DEL:eab4d5e6-493b-4a64-aae8-360e730a5938<br />
distinguishedName: CN=MissingAccount\0ADEL:eab4d5e6-493b-4a64-aae8-360e730a5938,CN=Deleted Objects,DC=rgare,DC=net<br />
lastKnownParent: OU=Service Accounts,OU=Users,OU=Montreal (MTL),DC=COMPANY,DC=net</p>
<p>Do you want to restore this object (y/n)? y</p>
<p>Restore succeeded.</p>
<p>Found 1 item matching search criteria.</p>
<p><strong>2. Query to check its existence</strong><br />
dsquery user -name MissingAccount<br />
&#8220;CN=MissingAccount,OU=Service Accounts,OU=Users,OU=Montreal (MTL),DC=COMPANY,DC=net&#8221;</p>
<p><strong>3. Reset Password as restored account comes back empty</strong><br />
net user /domain MissingAccount Password</p>
<p><strong>4. Activate Account</strong><br />
dsquery user -name MissingAccount| dsmod user -disabled no<br />
dsmod succeeded:CN=MissingAccount,OU=Service Accounts,OU=Users,OU=Montreal (MTL),DC=COMPANY,DC=net</p>
<p>At this point and under 3 minutes, the deleted account is restored and ready to be used. It even kept its SID but you will have to repopulate some of its attributes such as Description and so on.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2009/restore-an-account-from-ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make sure your PC is ready when you arrive in the office</title>
		<link>http://florian.puthod.net/blog/2008/manage-pc-ready-offic/</link>
		<comments>http://florian.puthod.net/blog/2008/manage-pc-ready-offic/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 16:21:59 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[En]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[fast]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[start up]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=241</guid>
		<description><![CDATA[You know you try to make your personal PC as efficient as it can be. In the office it is a different story especially when you have bunch of mandatory compliance stuff to load on startup. That&#8217;s when regulatory compliance becomes a real pain. Well if it takes 20 minutes to load everything and you [...]]]></description>
			<content:encoded><![CDATA[<p>You know you try to make your personal PC as efficient as it can be. In the office it is a different story especially when you have bunch of mandatory compliance stuff to load on startup. That&#8217;s when regulatory compliance becomes a real pain. Well if it takes 20 minutes to load everything and you cannot do anything then you should try to use from technologies that are available around you.</p>
<p>1. My computer&#8217;s BIOS supports autostartup, so I have it set to come on at 7:20AM every day (I arrive at the office at 8AM).</p>
<p>2. I use TweakUI to autologin to the computer, use <a href="http://support.microsoft.com/kb/315231" target="_blank">kb315231</a> otherwise. This gets it starting and lets all the startup programs take however long they need to get going.</p>
<p>3. REMAIN COMPLIANT. I have a shortcut in my startup menu with a target of: %windir%\system32\rundll32.exe user32.dll, <a href="http://technet.microsoft.com/en-us/library/cc750823.aspx" target="_blank">LockWorkStation</a>, which locks the workstation. This way, if anyone tries to power up my computer when I&#8217;m not there, they can&#8217;t do anything, remember you are an admin.</p>
<p>4. I have a batch program in my startup menu with this command shutdown -s -t 7200 -c &#8220;If I&#8217;m not here, this computer will shut itself down.&#8221; -f, which will shut the PC down in 2 hours. That way, if I&#8217;m out sick, the PC isn&#8217;t on all day. Of course, if I&#8217;m late, I have &#8217;till 9:20 or so to make it to my desk and abort the destruct sequence with #5&#8230;</p>
<p>5. I have a subfolder of Startup called Abort Shutdown, with a batch file in it with the command shutdown -a, which will (duh) abort the shutdown when I click it. The folder is open when I arrive, and the batch file is sitting there, waiting to be clicked on.</p>
<p>So, in the 40 minutes before I arrive, everything gets rolling. While 40 minutes might seem excessive, they are other things you may want to have your computer do while waiting for you such as backup or other sync.</p>
<p>This also works well in the middle of the day when a restart is required. I can fire and forget &#8212; go get a double-double or something, and I don&#8217;t have to come back just to log in and wait some more. By the time I&#8217;m back, it&#8217;s ready to rock and roll.</p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2008/manage-pc-ready-offic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows logon management</title>
		<link>http://florian.puthod.net/blog/2008/windows-logon-management/</link>
		<comments>http://florian.puthod.net/blog/2008/windows-logon-management/#comments</comments>
		<pubDate>Thu, 31 Jul 2008 18:18:02 +0000</pubDate>
		<dc:creator>Florian</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[domain controller]]></category>
		<category><![CDATA[issues]]></category>
		<category><![CDATA[lack]]></category>
		<category><![CDATA[logon]]></category>
		<category><![CDATA[workstation]]></category>

		<guid isPermaLink="false">http://florian.puthod.net/blog/?p=191</guid>
		<description><![CDATA[A while ago I posted a article about how Kerberos authentication worked and basically how you would determine who was using what account to log on which machine.
Not so long ago a colleague of mine, not to mention he is our HR head, found himself locked out while traveling to our Toronto office (he is [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I posted a article about <a href="http://florian.puthod.net/blog/2007/09/19/kerberos-authentication-events/" target="_self">how Kerberos authentication worked</a> and basically how you would determine who was using what account to log on which machine.</p>
<p>Not so long ago a colleague of mine, not to mention he is our HR head, found himself locked out while traveling to our Toronto office (he is based in Montreal). He found out as he was trying to log onto is laptop. After a call to the helpdesk he was able to log in as they unlocked his account, but the next morning he would be locked out again.</p>
<p><a href="http://florian.puthod.net/blog/wp-content/uploads/2008/07/logon.png"><img class="alignleft size-full wp-image-192" style="border: 5px solid white;" title="logon" src="http://florian.puthod.net/blog/wp-content/uploads/2008/07/logon.png" alt="" width="216" height="155" /></a>I&#8217;ll let you check the Kerberos article to check how to find out the source of the lockout. Put shortly it is just matter of finding which Domain Controller his account was locked out on and then checking the security log to determine from what machine.</p>
<p>So it appeared that a week before traveling to Toronto, he had a training and he logged onto a training computer and got out of the training without logging off. And prior his travel he also changed his password. While a daily unlocking by the helpdesk helped him to achieve his daily work, the training machine where he was logged onto would try to authenticate at the DC (with a previously cached password) and lock him out.</p>
<p>This really demonstrates some issues of Windows Logon management (Active Directory based aka the ms windows directory service). And here I am thinking of logon/logoff control. It would have helped in this case to know where his account was currently logged to. If you wanted to do so you would have to collect logs of all workstations or other resource machines.</p>
<p>The Microsoft directory doesn&#8217;t allow concurrent logon control. Well there are some tools given by Microsoft to manage this but so far my tries to make them work were unsuccessful (<a href="http://support.microsoft.com/kb/237282" target="_blank">cconnect</a>). Because when logging the directory only checks the validity of the logon, this doesn&#8217;t allow to make any reporting of who is logged where and for how long. This limits somehow your (system admins) ability to control credential sharing issues or just to enforce accountability for users action on different machines.</p>
<p>Those are not the only lacks of the Windows directory. Along with the lack of logon/logoff reporting, there is no session control on workstation. Of course as an Domain Admin you can log off someone but this is a tedious task if you had to logoff 100 users for security reasons. A little logon session monitoring would be helpful as for now you would have to check open session on several servers to do so and DCs do not keep track of current logon sessions anyway.</p>
<p>With that we can also talk about the fact that there is no automated way to logoff users on unattended workstations. And without saying anything about the fact that it is good to free up resources I see it as a threat as a terminated users that left his workstation locked would be able to unlock it &#8211; even if this user account is now gone from AD or just disabled.</p>
<p>The only manageable part of logon with Windows directory is time of logon and and workstations logon permission. However this is only feasible by user only. This doesn&#8217;t make management easy and it would be interesting to be able to control those restriction per groups.</p>
<p>Yet, Windows Directory is pretty comfortable to manange and use but it could use some more logon controlling to enforce more security and control over users/hackers attempts/mistakes with logon.</p>
<p><em>Note: I have limited hands on windows 2008 servers but I don&#8217;t remember seeing too much changes as far as logon control goes. Please feel free to update!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://florian.puthod.net/blog/2008/windows-logon-management/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
