<?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>Digivation Hack Central &#187; Windows</title>
	<atom:link href="http://blog.digivation.com.au/category/category/nifty-hacks/windows-hacks/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.digivation.com.au</link>
	<description>Tech Information about various subjects</description>
	<lastBuildDate>Sat, 17 Sep 2011 02:57:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>Debugging shared Client/ASP Web Service projects in VS2010</title>
		<link>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/debugging-shared-clientasp-web-service-projects-in-vs2010</link>
		<comments>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/debugging-shared-clientasp-web-service-projects-in-vs2010#comments</comments>
		<pubDate>Thu, 19 May 2011 01:53:17 +0000</pubDate>
		<dc:creator>mark</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[vs2010]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.digivation.com.au/?p=199</guid>
		<description><![CDATA[This post details the setup required for combined Remote Debugging server side web services with client programs in the same project. It is here mainly to assist my memory but may be of use to others as I had to dig for a lot of this info. It assumes you log into the local development [...]]]></description>
			<content:encoded><![CDATA[<p>This post details the setup required for combined Remote Debugging server side web services with client programs in the same project. It is here mainly to assist my memory but may be of use to others as I had to dig for a lot of this info.</p>
<p>It assumes you log into the local development machine as a domain user and  the remote IIS server is on a different domain with no shared trust.</p>
<p>This applies to VS2010 but should also be relevant to vs2008 and vs2005.</p>
<h2 id="LocalComputer">Local Computer Config</h2>
<p>You will have logged on the local computer as MAINDOMAIN\user</p>
<ul>
<li>Create a local computer user with the same name and password as your domain one. ( This step may be unnecessary ) </li>
<li>Change the Sharing and Security Model In <strong>Local Security Policy/Local Policies/Network access: Sharing and security model for local accounts</strong><br /> set <strong>Classic &#8211; local users authenticate as themselves </strong></li>
</ul>
<h2 id="RemoteIISComputer">Remote IIS Computer</h2>
<ul>
<li>Create a local computer user with your domain user name and same password. </li>
<li>Add <strong>Administrators</strong> group to this user. </li>
<li>make sure <strong>msdeploy</strong> works. </li>
<li>Add debug rights to new user In <strong>Local Security Policy/Local Policies/User Rights Assignment/Debug programs/Add User or Group </strong></li>
<li>Change the Sharing and Security Model In <strong>Local Security Policy/Local Policies/Network access: Sharing and security model for local accounts</strong><br /> set <strong>Classic &#8211; local users authenticate as themselves</strong></li>
</ul>
<h2 id="msvsmonconfig">msvsmon config</h2>
<p>Create a batch file to run msvsmon called runmsvsmon.bat in the base path (e.g. <strong>wwwroot\ServiceTest</strong>) of the asp service as follows</p>
<pre>SET _NT_SYMBOL_PATH=%CD%\bin
cd "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger\x86"
start msvsmon.exe
</pre>
<p>Run the batch file as the <strong>user</strong> added above.</p>
<p>This will allow symbols to be used during step into service debugging.</p>
<p>Change the server name in <strong>msvsmon</strong> to</p>
<pre>DEVDOMAIN\user@LOCALMACHINENAME
</pre>
<p>This allows your user to attach juts by entering the <strong>remote ip address</strong> (domain search for remote server is disabled in this case) in the <strong> Qualifier</strong> field in VS and thus works for standard debugging too.</p>
<h2 id="VisualStudioConfig">Visual Studio Config</h2>
<p>In Debugger Options</p>
<ul>
<li>disable <strong>Enable just my code</strong> </li>
<li>enable <strong>Enable source server support</strong> </li>
</ul>
<p>In Web Service project properties</p>
<ul>
<li>Web/Use Custom Web Server/Url &#8211; http://remoteip/ServiceTest</li>
<li>Package/Publish Web/IIS Web Site &#8211; Default Web Site/ServiceTest</li>
</ul>
<p>In Publish Service</p>
<ul>
<li>username <strong>user</strong> </li>
<li>password is whatever </li>
<li>save password checked </li>
<li>method <strong>WebDeploy</strong> </li>
<li>URL <strong><a href="http://10.150.10.8/"> http://remoteipaddr</a></strong> </li>
<li>Site <strong>Default Web Site/ServerTest</strong> or <strong>Default Web Site/Server</strong> </li>
<li>check <strong>Mark as IIS app</strong> </li>
<li>check <strong>Leave extra files</strong></li>
</ul>
<h2 id="Procedure">Procedure</h2>
<p>Deploy Web service first</p>
<blockquote><p>This should succeed if msdeploy is working on the remote server.<br /> You should see the files update on the target.<br /> add <strong>debug=&#8221;true&#8221;</strong> to compilation tag in <strong>web.config</strong>.</p>
<pre>  &lt;compilation debug="true" targetFramework="4.0"&gt;
  &lt;/compilation&gt;
</pre>
</blockquote>
<p>Test Tools/Process Attach</p>
<blockquote><p>If you get a list of processes, you have everything should be working.</p>
</blockquote>
<p>Debug Client and Web Service together</p>
<blockquote><p>Set a breakpoint inside the service module and press F5. It should then break with source.</p>
<p>Set a breakpoint in the desktop client and step into a web method.</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/debugging-shared-clientasp-web-service-projects-in-vs2010/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No Sound in Limited User Account</title>
		<link>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/no-sound-in-limited-user-account</link>
		<comments>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/no-sound-in-limited-user-account#comments</comments>
		<pubDate>Fri, 17 Sep 2010 00:00:42 +0000</pubDate>
		<dc:creator>mark</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.digivation.com.au/?p=152</guid>
		<description><![CDATA[Recently I needed to do a repair install on Windows XP, after which sound was no longer working on limited user accounts. After extensive searching I realized no one had a solution. The device driver was ok and operating and sound was working fine on administrator capable accounts. The strange thing is that the Realtek [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to do a repair install on Windows XP, after which sound was no longer working on limited user accounts. After extensive searching I realized no one had a solution. The device driver was ok and operating and sound was working fine on administrator capable accounts.</p>
<p>The strange thing is that the Realtek HD sound app worked Ok on the LUA. I concluded from this that the software enumerator was at fault, specifically the registry keys that would have to be read for the software enumerator to read its current list.</p>
<p>Use regedit to change the permissions of the tree on currentcontrolset to fix this issue. Log in again and its all good.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/no-sound-in-limited-user-account/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating Windows User Ids</title>
		<link>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/migrating-windows-user-ids</link>
		<comments>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/migrating-windows-user-ids#comments</comments>
		<pubDate>Thu, 11 Mar 2010 23:48:23 +0000</pubDate>
		<dc:creator>mark</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.digivation.com.au/?p=96</guid>
		<description><![CDATA[There are times when domains on windows change and thus your user id changes. However, you may have lots of files owned by you that are not in your user dir. Migrating these user ids to you new one, I&#8217;ve found, is not too difficult after all. All you need is a tool from microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when domains on windows change and thus your user id changes. However, you may have lots of files owned by you that are not in your user dir. Migrating these user ids to you new one, I&#8217;ve found, is not too difficult after all.</p>
<p>All you need is a tool from microsoft called <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&#038;displaylang=en">subinacl</a>.</p>
<p>Download and install the msi. Install path is </p>
<p><code>C:\Program Files\Windows Resource Kits\Tools\subinacl.exe</code></p>
<p>So use this for the command name below.</p>
<p>First find your old userid. Use a file you know you used to own. E.g. the projects directory.</p>
<p><code>Subinacl /file c:\projects /display</code></p>
<p>Copy and paste yours for use in the commands below</p>
<p>Now for the commands. Do for all drives if you have multiple disks.<br />
The lines below are for me of course so sub in your cut S-xxx and new user id</p>
<p><code>Subinacl /subdir c:\ /accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\username</code></p>
<p>also the primary group, which can be found up the top of the display dump. </p>
<p><code>Subinacl /subdir c:\ "/accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\Domain Users"</code></p>
<p>all registry keys</p>
<p><code>Subinacl /subkeyreg HKEY_CURRENT_USER /accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\username</code></p>
<p><code>Subinacl /subkeyreg HKEY_LOCAL_MACHINE /accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\username</code></p>
<p><code>Subinacl /subkeyreg HKEY_CLASSES_ROOT /accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\username</code><br />
(none found, so optional)</p>
<p>and the groups<br />
<code>Subinacl /subkeyreg HKEY_CURRENT_USER "/accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\Domain Users"</code></p>
<p><code>Subinacl /subkeyreg HKEY_LOCAL_MACHINE "/accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\Domain Users"</code></p>
<p><code>Subinacl /subkeyreg HKEY_CLASSES_ROOT "/accountmig=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx=newdomain\Domain Users"</code></p>
<p>After you are happy</p>
<p><code>Subinacl /subdir c:\ /suppresssid=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx</code></p>
<p><code>Subinacl /subkeyreg HKEY_CURRENT_USER /suppresssid=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx</code></p>
<p><code>Subinacl /subkeyreg HKEY_LOCAL_MACHINE /suppresssid=S-x-x-xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-xxxx</code></p>
<p>When you are finished, everything you used to own you will own again.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digivation.com.au/category/nifty-hacks/windows-hacks/migrating-windows-user-ids/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

