<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>System Administration on Andrew Walsh</title><link>http://awalsh128.com/tags/system-administration/</link><description>Recent content in System Administration on Andrew Walsh</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>© 2026 Andrew Walsh</copyright><lastBuildDate>Mon, 20 Apr 2015 22:53:20 -0700</lastBuildDate><atom:link href="http://awalsh128.com/tags/system-administration/feed.xml" rel="self" type="application/rss+xml"/><item><title>Get Windows Service name from executable in PowerShell.</title><link>http://awalsh128.com/get-windows-service-name-from/</link><pubDate>Mon, 20 Apr 2015 00:00:00 -0700</pubDate><guid>http://awalsh128.com/get-windows-service-name-from/</guid><description>&lt;p&gt;I was recently putting some PowerShell scripts together for deployment&#10;and maintenance of software to our machine instances. One of the&#10;requirements was to be able to discover the service name from a Windows&#10;Service executable that uses&#10;&lt;a href="https://msdn.microsoft.com/en-us/library/system.serviceprocess.serviceinstaller%28v=vs.110%29.aspx" target="_blank" rel="noreferrer"&gt;ServiceInstaller&lt;/a&gt;.&#10;I needed to be able to extract this value in a generic way in order to&#10;query the service and stop it if running. Here is what I was able to put&#10;together.&lt;/p&gt;</description></item><item><title>Automate IIS enable on Windows 7.</title><link>http://awalsh128.com/automate-iis-enable-on-windows-7/</link><pubDate>Mon, 30 Jul 2012 00:00:00 -0700</pubDate><guid>http://awalsh128.com/automate-iis-enable-on-windows-7/</guid><description>&lt;h3 class="relative group"&gt;Background&#10; &lt;div id="background" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#background" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h3&gt;&#10;&lt;p&gt;There are plenty of sites that will tell you how to enable IIS through&#10;the Control Panel. Although, if you are tasked with enabling IIS&#10;automatically (eg. for an installer), it can be a nightmare. This is&#10;only really needed though in special cases where the installer has more&#10;control over the hardware specifications. Determining an upgrade or&#10;uninstall scenario with IIS can be very tough since you are not&#10;installing your own software but rather enabling a feature of Windows.&#10;With that in mind, we can propose a solution for automated enabling of&#10;IIS.&lt;/p&gt;</description></item><item><title>Delete long file path names.</title><link>http://awalsh128.com/delete-long-file-path-names/</link><pubDate>Tue, 19 Jul 2011 00:00:00 -0700</pubDate><guid>http://awalsh128.com/delete-long-file-path-names/</guid><description>&lt;p&gt;I made the stupid mistake of importing an Eclipse project into my&#10;workspace when the &lt;a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=279781" target="_blank" rel="noreferrer"&gt;import location was from the workspace&#10;itself&lt;/a&gt;. I went to&#10;delete the recursive folder when I encountered an error that the file&#10;path name was too long to delete.&lt;br&gt;&#10;&lt;br&gt;&#10;The &lt;a href="http://stackoverflow.com/questions/236533/how-do-you-automate-copying-file-with-path-too-deep-issues-in-windows" target="_blank" rel="noreferrer"&gt;best manual&#10;solution&lt;/a&gt;&#10;that I found was to go as deep as possible in the recursive folder and&#10;then map it to a virtual drive.&lt;br&gt;&#10;[&lt;br&gt;&#10;]{.Apple-style-span&#10;style=&amp;ldquo;font-family: &amp;lsquo;Courier New&amp;rsquo;, Courier, monospace;&amp;rdquo;}&lt;br&gt;&#10;[subst x: c:\recursiveFolder\]{.Apple-style-span&#10;style=&amp;ldquo;font-family: &amp;lsquo;Courier New&amp;rsquo;, Courier, monospace;&amp;rdquo;}[recursiveFolder\]{.Apple-style-span&#10;style=&amp;ldquo;font-family: &amp;lsquo;Courier New&amp;rsquo;, Courier, monospace;&amp;rdquo;}[recursiveFolder\...]{.Apple-style-span&#10;style=&amp;ldquo;font-family: &amp;lsquo;Courier New&amp;rsquo;, Courier, monospace;&amp;rdquo;}&lt;br&gt;&#10;[&lt;br&gt;&#10;]{.Apple-style-span style=&amp;ldquo;font-family: inherit;&amp;rdquo;}&lt;br&gt;&#10;[This can be quite an arduous process; I found myself creating up to 9&#10;virtual drives. It eventually worked though and I was able to delete the&#10;recursive folder.]{.Apple-style-span style=&amp;ldquo;font-family: inherit;&amp;rdquo;}&lt;br&gt;&#10;[&lt;br&gt;&#10;]{.Apple-style-span style=&amp;ldquo;font-family: inherit;&amp;rdquo;}&lt;br&gt;&#10;[I also &lt;a href="http://processors.wiki.ti.com/index.php/Recursive_Directory_Bug_in_Eclipse_Project_Import" target="_blank" rel="noreferrer"&gt;found a&#10;site&lt;/a&gt;&#10;with a Perl script that deletes long file paths but haven't tested it&#10;myself.]{.Apple-style-span style=&amp;ldquo;font-family: inherit;&amp;rdquo;}&lt;/p&gt;</description></item><item><title>Using Ubuntu 10.04 with SVN+HTTP.</title><link>http://awalsh128.com/using-ubuntu-1004-with-svnhttp/</link><pubDate>Wed, 13 Jul 2011 00:00:00 -0700</pubDate><guid>http://awalsh128.com/using-ubuntu-1004-with-svnhttp/</guid><description>&lt;p&gt;I setup a server recently using Ubuntu 10.04. LAMP was easy to&#10;configure, as was Subversion. Although making Subversion and Apache2&#10;play nice together with DAV SVN was a nightmare. I followed the &lt;a href="https://help.ubuntu.com/10.04/serverguide/C/subversion.html" target="_blank" rel="noreferrer"&gt;guide&#10;provided&lt;/a&gt; but&#10;the website location just kept reprompting for my login.&lt;br&gt;&#10;&lt;br&gt;&#10;After hours of running in circles, I was able to find the solution. The&#10;&lt;em&gt;Require valid-user&lt;/em&gt; directive in&#10;/etc/apache2/mods-available/dav_svn.conf &lt;a href="http://www.linuxquestions.org/questions/showthread.php?p=4413943#post4413943" target="_blank" rel="noreferrer"&gt;required the Limit&#10;directive&lt;/a&gt;&#10;to be around it.&lt;br&gt;&#10;\&lt;/p&gt;</description></item></channel></rss>