Windows Scripting
  Home arrow Windows Scripting arrow Page 2 - An Introduction to Microsoft PowerShell
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WINDOWS SCRIPTING

An Introduction to Microsoft PowerShell
By: Nilpo/Developer Shed Staff Writer
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 4
    2007-03-12

    Table of Contents:
  • An Introduction to Microsoft PowerShell
  • PowerShell Features
  • A Look at Cmdlets
  • Harnessing the Power

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    An Introduction to Microsoft PowerShell - PowerShell Features


    (Page 2 of 4 )

    PowerShell was designed to take all of the best features from several different command line environments including Linux and Windows’ Command Prompt.  One of the core design features was that PowerShell be usable by both system administrators and application developers.

    The design team started out by improving upon some of the existing CMD features.  One example was improved pipelining and output redirection.  While this was possible in CMD, support was limited at best.

    Along with the upgrades comes a completely new object-oriented framework.  Commands in PowerShell output objects rather than blocks of text.  These objects can be acted on immediately using the properties and methods associated with that object. 

    PowerShell also introduces a consistent command naming convention using a verb-noun structure.  This pattern makes it much simpler to remember a few object names rather than an array of archaic commands and parameters.

    If that isn’t enough there’s added functionality as well. PowerShell can do things that no other command line shell can do in Windows such as navigate the Windows Registry as if it were a file system.  You can navigate the registry like a folder system, viewing and changing registry keys and values as you go.  No third party scripts or programs are required.

    PowerShell has another indispensable feature as well.  It allows you to preview the effects that your scripts will have on the system.  Commands that create or change objects support the confirm and whatif flags.  The confirm flag forces the user to confirm an action before it is executed and the whatif flag will show you what happens without actually performing the action.

    In Windows PowerShell help is always at your fingertips.  The shell environment has a very well written help system as well as a very in depth online reference.  Questions in PowerShell don’t go unanswered long.

    If you do have trouble learning to work in your new environment, don’t worry.  The commands in Windows PowerShell support aliases, meaning you can use different commands for the same item.  Let’s say you want to get a directory listing.  In PowerShell you would use the command Get-ChildItem.  No need to fear if you forget, you can type the friendly dir command as well.

    All PowerShell commands have aliases for their CMD counterparts.  If that’s not enough try using ls.  That’s right!  There are aliases for most Linux equivalents as well.

    More Windows Scripting Articles
    More By Nilpo/Developer Shed Staff Writer


       · You've heard all of the buzz around Microsoft's latest scripting technology. Now we...
       · Nice introduction, but the last example does not work:It was:Get Process |...
       · Thanks so much for catching that typo. I've fixed it. I'm glad you enjoyed the...
     

    WINDOWS SCRIPTING ARTICLES

    - Introducing Two-Way Data Binding using Silve...
    - Silverlight 2.0 Application Development with...
    - Burning Multisession CDs with IMAPI2 in WSH
    - Creating a Silverlight 2.0 Application that ...
    - Burning CDs with the IMAPI2 Control
    - Burning CDs in Windows XP with WSH
    - Advanced Word Object Scripting
    - Reading and Printing Word Documents in WSH
    - Scripting Microsoft Word
    - Using WSH to Catalog MP3 Files
    - Reading MP3 ID3 Tags in WSH
    - A Brief Look at Menus in WPF
    - More Examples of Simplified Image Processing...
    - Completing a WPF To-Do List Application
    - Simplified Image Processing in GDI+





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT