<?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>Top IT Providers &#187; PowerShell</title>
	<atom:link href="http://www.topitproviders.net/index.php/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.topitproviders.net</link>
	<description>Your resource for managed IT &#38; application development information</description>
	<lastBuildDate>Fri, 04 Nov 2011 19:54:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Windows PowerShell &#8211; You mean I have to learn how to type!</title>
		<link>http://www.topitproviders.net/index.php/2009/10/13/windows-powershell-you-mean-i-have-to-learn-how-to-type/</link>
		<comments>http://www.topitproviders.net/index.php/2009/10/13/windows-powershell-you-mean-i-have-to-learn-how-to-type/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 19:03:25 +0000</pubDate>
		<dc:creator>Emanuel Pirvulescu (IT Solutions)</dc:creator>
				<category><![CDATA[Managed IT Services]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.topitproviders.net/?p=156</guid>
		<description><![CDATA[Unless you&#8217;ve been out of the office or stuck in the bowels of you data center for the past year, you should know that Windows PowerShell is here and it&#8217;s here to stay. But you may ask: What is Powershell and how do I use it? I like to point and click, why do I have to [...]]]></description>
			<content:encoded><![CDATA[<p>Unless you&#8217;ve been out of the office or stuck in the bowels of you data center for the past year, you should know that Windows PowerShell is here and it&#8217;s here to stay. But you may ask: What is Powershell and how do I use it? I like to point and click, why do I have to type?  I&#8217;ll start by telling you that PowerShell is an extensible automation engine. It consists of a command line shell with an associated Microsoft scripting language.</p>
<p>Did you say? Command line, shell, and scripting!!! But I like to point and click and I like to use the wizards. Yes I know we all love to point and click and maybe you can&#8217;t type 60 words a minute, but wizards are going to disappear, my friend. Plus the major problem with wizards is that they make engineers think they can configure things properly, regardless of whether or not they know what they are doing.  An engineer must always know what he or she is doing and not follow someone else&#8217;s script. Like it or not, PowerShell is Microsoft&#8217;s new management tool and you&#8217;re going to have to learn to use it.</p>
<p>So let’s cover a few of the basics.</p>
<p>First we need to have PowerShell installed on your computer. The current version is now at 2.0 If you don&#8217;t already have PowerShell installed you can download it from the following Microsoft site: <a href="https://connect.microsoft.com/windowsmanagement/Downloads">https://connect.microsoft.com/windowsmanagement/Downloads</a>. Once it&#8217;s installed and ready to go you&#8217;ll notice it looks a lot like a command prompt window, except it says Windows PowerShell at the top and it starts your command prompt path with a PS. The first thing, with all new command line interface software is to get to know the help menu (this could be your best friend).</p>
<p>At the prompt type: <span style="color: #0000ff">Help *</span></p>
<p>Use the space bar to pass through the topics. Pick one topic and look at the full help menu: <span style="color: #0000ff">Help Get-Process -full<span style="color: #000000">. </span><span style="color: #000000"> </span><span style="color: #000000">You will get the full syntax, parameter description and full working examples. Every command in PowerShell is documented. Run this: </span>Help about_wildcard<span style="color: #000000">. </span><span style="color: #000000">This will display the topic information for the Wildcard construct.</span></span></p>
<p><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #000000">PowerShell is an object based shell, unlike the text b</span>ased shell of cmd.exe. Even though you are typing commands and seeing text, you are accessing objects. Sort of like an object oriented programming language such as Java. Whoa! Programming! Ok let’s try some more commands. Type: <span style="color: #0000ff">Get-Process</span>. This calls the Get-Process cmdlet, which shows you all of the running process on the system. Then type: <span style="color: #0000ff">Get-Process | Get-Member</span>. This takes the result of Get-Process and sends it to the Get-Member cmdlet. The Get-Member cmdlet tells you everything about an object, in this case it&#8217;s a running process object with a variety of properties. Let try some more commands shall we. Type: <span style="color: #0000ff">Get-Psdrive</span>. This will show you all the drives on your computer along with your current location. Type the following command: <span style="color: #0000ff">cd hkcu:\printers</span> then type in <span style="color: #0000ff">dir</span>. You are now looking at the registry on your computer, specifically the current user&#8217;s printers. Now type <span style="color: #0000ff">cd c:<span style="color: #000000">.</span></span><span style="color: #000000"> </span>You are now back to the C: drive. </span></span></span></span></p>
<p><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000">Let’s try some pipelined expressions. PowerShell cmdlets are designed for single purposed tasks, but by sending objects from once cmdlet to the next we can achieve some cool results. So we&#8217;ve already tried the Get-Process cmdlet. Type this: <span style="color: #0000ff">Get-Process | sort workingset -descending | select -first 5</span>. We just sorted the list of the top 5 processes based on the workingset size.</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000">So if I haven&#8217;t bored</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000"> you to tears or worse yet put you to sleep, let’s look at the full help menu for the following cmdlets: Where-Object, Select-Object, Out-File,Out-Printer, and Get-WMIObjects. Windows PowerShell is the management tool of the future so continue to explore or pick up a helpful PowerShell reference book and happy administrating.</span></span></span></span></span></p>
<p><span style="color: #0000ff"><span style="color: #0000ff"><span style="color: #000000"><span style="color: #0000ff"><span style="color: #000000">For additional information about Windows Powershell contact your <a href="http://www.itsolutions-inc.com/our_solutions/shared_vision/index.html" target="_blank">network support </a>team today. </span></span></span></span></span></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.topitproviders.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.topitproviders.net/index.php/2009/10/13/windows-powershell-you-mean-i-have-to-learn-how-to-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

