<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: PowerShell &#8211; More than the command prompt</title>
	<atom:link href="http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/</link>
	<description>Ethical Hacking, Penetration Testing &#38; Computer Security</description>
	<lastBuildDate>Sun, 08 Nov 2009 07:15:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sir Henry</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-83938</link>
		<dc:creator>Sir Henry</dc:creator>
		<pubDate>Sat, 15 Dec 2007 18:06:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-83938</guid>
		<description>I have found powershell to be vital when working in a windows environment, while being a linux user first.  There is no better feeling that to have all the same tools and commands at your disposal when you absolutely have to use windows.</description>
		<content:encoded><![CDATA[<p>I have found powershell to be vital when working in a windows environment, while being a linux user first.  There is no better feeling that to have all the same tools and commands at your disposal when you absolutely have to use windows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NetCat &#38; PowerShell -&#62; disaster &#171; Insane Security</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61756</link>
		<dc:creator>NetCat &#38; PowerShell -&#62; disaster &#171; Insane Security</dc:creator>
		<pubDate>Wed, 01 Aug 2007 02:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61756</guid>
		<description>[...] after so many days of admiring the new windows shell, and even after writing an article about it on darknet the problems started to fall in. Actually I know just this single issue but I told you I&#8217;m [...]</description>
		<content:encoded><![CDATA[<p>[...] after so many days of admiring the new windows shell, and even after writing an article about it on darknet the problems started to fall in. Actually I know just this single issue but I told you I&#8217;m [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lrbell</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61675</link>
		<dc:creator>lrbell</dc:creator>
		<pubDate>Mon, 30 Jul 2007 17:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61675</guid>
		<description>I am right there with you on a lack of backward compatibility, but upgrade and commence!

Now this is just not accurate Joaquin;

&quot;And still, just piping objects is limited when you just want to get at the text&quot;

The absolute sweetest thing about PS is that beneath teh covers you are pass OBJECTS around.

&lt;code&gt;command &#124; foreach {$_.getSomthing}&lt;/code&gt;

works like a charm.
Piping objects, not text.

so, get-Process &#124; foreach{$_.ID} will spit out all the PIDs for the procs running, ala &quot;ps -ealf&quot; in my beloved *NIX.

Anything that is not a cmdlet can be cast to the .NET object of your choosing, and hence has the properties of said object.

You can pipe a cmdlet to Get-Member and see the plethora of methods and properties associated with the object.

For example;
&lt;code&gt;Get-Childitem &#124; Get-Member&lt;/code&gt; will return all methods and props associated with a file or directory object.

I do not mind the opinions, but be sure facts are straight to be fair.

HTH

L</description>
		<content:encoded><![CDATA[<p>I am right there with you on a lack of backward compatibility, but upgrade and commence!</p>
<p>Now this is just not accurate Joaquin;</p>
<p>&#8220;And still, just piping objects is limited when you just want to get at the text&#8221;</p>
<p>The absolute sweetest thing about PS is that beneath teh covers you are pass OBJECTS around.</p>
<p><code>command | foreach {$_.getSomthing}</code></p>
<p>works like a charm.<br />
Piping objects, not text.</p>
<p>so, get-Process | foreach{$_.ID} will spit out all the PIDs for the procs running, ala &#8220;ps -ealf&#8221; in my beloved *NIX.</p>
<p>Anything that is not a cmdlet can be cast to the .NET object of your choosing, and hence has the properties of said object.</p>
<p>You can pipe a cmdlet to Get-Member and see the plethora of methods and properties associated with the object.</p>
<p>For example;<br />
<code>Get-Childitem | Get-Member</code> will return all methods and props associated with a file or directory object.</p>
<p>I do not mind the opinions, but be sure facts are straight to be fair.</p>
<p>HTH</p>
<p>L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joaquin Menchaca</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61672</link>
		<dc:creator>Joaquin Menchaca</dc:creator>
		<pubDate>Mon, 30 Jul 2007 17:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61672</guid>
		<description>Considering only the Windows platform, you have a command shell that  only works on certain Windows (no w2k), and doesn&#039;t have raw ability to access important parts of OS needed for security and system administration (ACLs on pipes, services, drivers, etc.).  So to get the job done, one will used Windows command console tools from 3rd parties, e.g. system internals group at MS, do stuff in C++, or well, just use Perl which has wrappers to a lot of these.

In contrast to all the platforms, Powershell looks extremely resource intensive, and limited or cumbersome to program in certain areas.  For example, short-circuit operations:

 &lt;code&gt;  command1 &amp;&amp; command2  # do command2 if command1 succeeds&lt;/code&gt;

And still, just piping objects is limited when you just want to get at the text:

&lt;code&gt;
   command &#124; awk &#039;{ do stuff }&#039;  # easy
   command &#124; perl -a -e &#039;do stuff using $_ per line&#039; # easy too
   command &#124; write &quot;strings using $_&quot; # fails in power shell
   command &#124; } # works, ugly
&lt;/code&gt;  

Notes: Web Site Mangling my Code, cannot do ampersand squiggly &quot;process&quot; squiggly combination.</description>
		<content:encoded><![CDATA[<p>Considering only the Windows platform, you have a command shell that  only works on certain Windows (no w2k), and doesn&#8217;t have raw ability to access important parts of OS needed for security and system administration (ACLs on pipes, services, drivers, etc.).  So to get the job done, one will used Windows command console tools from 3rd parties, e.g. system internals group at MS, do stuff in C++, or well, just use Perl which has wrappers to a lot of these.</p>
<p>In contrast to all the platforms, Powershell looks extremely resource intensive, and limited or cumbersome to program in certain areas.  For example, short-circuit operations:</p>
<p> <code>  command1 &amp;&amp; command2  # do command2 if command1 succeeds</code></p>
<p>And still, just piping objects is limited when you just want to get at the text:</p>
<p><code><br />
   command | awk '{ do stuff }'  # easy<br />
   command | perl -a -e 'do stuff using $_ per line' # easy too<br />
   command | write "strings using $_" # fails in power shell<br />
   command | } # works, ugly<br />
</code>  </p>
<p>Notes: Web Site Mangling my Code, cannot do ampersand squiggly &#8220;process&#8221; squiggly combination.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: backbone</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61556</link>
		<dc:creator>backbone</dc:creator>
		<pubDate>Fri, 27 Jul 2007 23:51:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-61556</guid>
		<description>I wrote a comparison between bash and powershell for the ones who really want to see them compared in an non-subjective way =)

&lt;a href=&quot;http://backbone.lx.ro/?p=12&quot; title=&quot;on my blog&quot; rel=&quot;nofollow&quot;&gt;http://backbone.lx.ro&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>I wrote a comparison between bash and powershell for the ones who really want to see them compared in an non-subjective way =)</p>
<p><a href="http://backbone.lx.ro/?p=12" title="on my blog" rel="nofollow">http://backbone.lx.ro</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: backbone</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60965</link>
		<dc:creator>backbone</dc:creator>
		<pubDate>Mon, 16 Jul 2007 23:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60965</guid>
		<description>very interesting thing you point Irbell... i think that is very good to have ppl who are accomodated with powerShell to tell us some informative tips about it.... keep up the good commenting... ;)</description>
		<content:encoded><![CDATA[<p>very interesting thing you point Irbell&#8230; i think that is very good to have ppl who are accomodated with powerShell to tell us some informative tips about it&#8230;. keep up the good commenting&#8230; <img src='http://www.darknet.org.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lrbell</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60944</link>
		<dc:creator>lrbell</dc:creator>
		<pubDate>Mon, 16 Jul 2007 18:53:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60944</guid>
		<description>I think Powershell is better in a homogenous environment.  I have written KSH BASH etc.. for 8 years, and LOVE IT, but actually having OBJECTS to pass around in Powershell is the HUGE difference maker.  
It all has to do with what you want to do.

If the environment is Windows centric, then the Powershell is easily superior.  
If it is heterogeneous, then I would have to agree that Cygwin/Perl etc... ties the pieces together.  Python has topped the list for me of late.

It is the age old argument.  It just depends on the task of the day, and the direction of the group.

On that same note.  Powershell is packaged with Exchange 2007 and also works with SQL 2005 SMO (SQL Management Objects).  

It also plays nicely with Sharepoint, Active Directory, and will be bundled with Server 2008.

Also, I have found that rudimentary automation in Windows with Powershell can effectively cut out 80% lines of code.  

What takes me 200 lines in VB or Java, takes 20 lines in Powershell
(It took MSFT until 2006 to get it going, vs. 30 yrs ago in UNIX LOL!!).

freyk, please let me know what you found to be far superior in function, as I too am interested in knowing.

BTW, Cross platform is a no brain-er.

L</description>
		<content:encoded><![CDATA[<p>I think Powershell is better in a homogenous environment.  I have written KSH BASH etc.. for 8 years, and LOVE IT, but actually having OBJECTS to pass around in Powershell is the HUGE difference maker.<br />
It all has to do with what you want to do.</p>
<p>If the environment is Windows centric, then the Powershell is easily superior.<br />
If it is heterogeneous, then I would have to agree that Cygwin/Perl etc&#8230; ties the pieces together.  Python has topped the list for me of late.</p>
<p>It is the age old argument.  It just depends on the task of the day, and the direction of the group.</p>
<p>On that same note.  Powershell is packaged with Exchange 2007 and also works with SQL 2005 SMO (SQL Management Objects).  </p>
<p>It also plays nicely with Sharepoint, Active Directory, and will be bundled with Server 2008.</p>
<p>Also, I have found that rudimentary automation in Windows with Powershell can effectively cut out 80% lines of code.  </p>
<p>What takes me 200 lines in VB or Java, takes 20 lines in Powershell<br />
(It took MSFT until 2006 to get it going, vs. 30 yrs ago in UNIX LOL!!).</p>
<p>freyk, please let me know what you found to be far superior in function, as I too am interested in knowing.</p>
<p>BTW, Cross platform is a no brain-er.</p>
<p>L</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: backbone</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60941</link>
		<dc:creator>backbone</dc:creator>
		<pubDate>Mon, 16 Jul 2007 17:43:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60941</guid>
		<description>freyk can you write a paper on your comparison? I&#039;ll post it ;)</description>
		<content:encoded><![CDATA[<p>freyk can you write a paper on your comparison? I&#8217;ll post it <img src='http://www.darknet.org.uk/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bogwitch</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60931</link>
		<dc:creator>Bogwitch</dc:creator>
		<pubDate>Mon, 16 Jul 2007 13:58:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60931</guid>
		<description>Thanks freyk, I would have stuck with cygwin anyway due to the lack of 2k support, but that saves me investigating it for 2k3 up!</description>
		<content:encoded><![CDATA[<p>Thanks freyk, I would have stuck with cygwin anyway due to the lack of 2k support, but that saves me investigating it for 2k3 up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: freyk</title>
		<link>http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60918</link>
		<dc:creator>freyk</dc:creator>
		<pubDate>Mon, 16 Jul 2007 07:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.darknet.org.uk/2007/07/powershell-more-than-the-command-prompt/#comment-60918</guid>
		<description>I&#039;ve compared powershell with cygwin.
And i can now say that cygwin is more powerfull</description>
		<content:encoded><![CDATA[<p>I&#8217;ve compared powershell with cygwin.<br />
And i can now say that cygwin is more powerfull</p>
]]></content:encoded>
	</item>
</channel>
</rss>
