<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PowerShell General</title><link>http://powershell.com/cs/forums/230.aspx</link><description>Moderated by PowerShell MVP &lt;a href="http://powershell.com/cs/content/experts.aspx#thomas-lee"&gt;Thomas Lee&lt;/a&gt; and PowerShell expert  &lt;a href="http://powershell.com/cs/content/experts.aspx#jakub-jares"&gt;Jakub Jareš&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Re: Filter services by log on as account with a domain user</title><link>http://powershell.com/cs/forums/thread/16233.aspx</link><pubDate>Thu, 26 Apr 2012 18:22:35 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16233</guid><dc:creator>ewbogue</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16233.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=16233</wfw:commentRss><description>&lt;p&gt;Ah yes, the filter parameter requires WQL syntax. I was not aware of the \ character being special.&lt;/p&gt;
&lt;p&gt;Thanks, it does work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Filter services by log on as account with a domain user</title><link>http://powershell.com/cs/forums/thread/16219.aspx</link><pubDate>Thu, 26 Apr 2012 13:39:42 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16219</guid><dc:creator>Don Jones</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16219.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=16219</wfw:commentRss><description>&lt;p&gt;You beat me to it! The backslash is a special character in a WMI query; you escape it with a second backslash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Filter services by log on as account with a domain user</title><link>http://powershell.com/cs/forums/thread/16211.aspx</link><pubDate>Thu, 26 Apr 2012 04:22:36 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16211</guid><dc:creator>Srikanth</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16211.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=16211</wfw:commentRss><description>&lt;p&gt;Please try the following:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;, &amp;#39;sans-serif&amp;#39;;"&gt;Get-WMIObject Win32_Service -filter &amp;quot;startname=&amp;#39;domain\\username&amp;#39;&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;, &amp;#39;sans-serif&amp;#39;;"&gt;should work.&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Filter services by log on as account with a domain user</title><link>http://powershell.com/cs/forums/thread/16207.aspx</link><pubDate>Thu, 26 Apr 2012 00:00:58 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:16207</guid><dc:creator>ewbogue</dc:creator><slash:comments>0</slash:comments><comments>http://powershell.com/cs/forums/thread/16207.aspx</comments><wfw:commentRss>http://powershell.com/cs/forums/commentrss.aspx?SectionID=230&amp;PostID=16207</wfw:commentRss><description>&lt;p&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;I am looking for a way to obtain a list of services filtered by the log on as account being a domain user (vs. LocalSystem, for example). I do not see that Get-Service can access that information, but Get-WMIObject win32_service can. However, when I use this syntax I receive an invalid query error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Get-WMIObject Win32_Service -filter &amp;quot;startname=&amp;#39;domain\username&amp;#39;&amp;quot;&lt;/span&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;I tested this on the Application Identity Service by using this syntax to obtain the startname property:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Get-WMIObject Win32_Service -filter &amp;quot;name=&amp;#39;AppIDSvc&amp;#39;&amp;quot; | fl *&lt;/span&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;The results show the property StartName with a value matching the domain\username I set in the Services Console.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;Get-Help seems to indicate that I should be able to use any property to filter my results, but this is not working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:10pt;"&gt;Ed&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>