<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PowerShell on Andrew Walsh</title><link>http://awalsh128.com/tags/powershell/</link><description>Recent content in PowerShell 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/powershell/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></channel></rss>