PowerShell Questions

Posted on 2011-10-18
Last Modified: 2012-05-12
I'm forcing myself tol learn powershell and have downloaded POwerGUI to help me in the learning processs.

Please correct me if any my statements are incorrect.
1) The default view for information in powershelll seems to be a table format.
2) The main difference between powershell 1.0 and 2.0 is the fact 2.0 added WinRM for remote management and control.
3) Powershell give admin the ability to access core componets of the OS which were very differcult to not access until now.
4) each cmdlet is a .NEt commmand??

what is the purpose for show-eventlog when it just brings up the event log gui interface?
Question by:compdigit44
    LVL 67

    Expert Comment

    1) No. If there are less than 4 properties to display, and those properties can be displayed as a string, format-table is done (resulting in table layout). Else the output is formatted as a  name - value list (format-list).

    2) You could say so. There are some other minor improvements, like some commands allowing to use -ComputerName (so no need to use WinRM for some commandlets).

    3) You could access those components with WSH already (writing VBScript or JScript batch files). But PowerShell makes it much more easy to process results, handle objects and the like.

    4) No. Commandlets can also be PowerShell script blocks.

    Regarding show-eventlog: well, it is just that. Use Get-WinEvent if you want to have something more useful.
    LVL 8

    Accepted Solution

    My 2 cents worth:

    2: Besides the evolutionary changes going from ver 1 to ver 2, there is also the ability to work with background jobs, the inclusion of a scripting editor (PowerShell_ISE) and the move to being able to extend functionality with modules as opposed to snapins.

    3. PowerShell is, in many ways, as much a philosophy as it is a technology.  It is a command line equivalent of the Management Console providing a consistent way of working with and automating not only the core operating system functionality (there are some great wrappers which making working with WMI and Active Directory so much easier) but also server technologoes such as SharePoint.  It is also being picked up by vendors other than Microsoft such as VMWare who provide PowerCLI.  Also, as it is built on top of the .NET Framework it also provides access to all the functionality of .NET as well.

    4. Cmdlets can be written in .Net languages, and in Ver 1 this was the only option and also in the PowerShell scripting language which makes it much easier to parcel up functionality for reuse - which is, in part - answering question 2 as well.

    There are some very good online resources to help get your head around what PowerShell is and what it can do for you, and some very good books.  One of my favourite books is PowerShell in Practice by Richard Siddaway.  There is a very large community of people to help you get up to speed with PowerShell, such as the community here, and many others.  I subscribe to the Your PowerTip of the Day: from

    The best way to learn PowerShell though, in my opinion, is through your fingers by writing scripts.
    LVL 19

    Author Comment

    I just the hardest thing for me being a server admin and not a programmer is understaing the whole classes and object idea. I just cannot grasp this. I do understand how Powershell help programmers because they do not have to write code twice one for a GUI and the other for a command line.
    LVL 19

    Author Comment

    I guess one of the problems I have with PowerShell is understanding what is really BUYS me over using the GUI...
    LVL 67

    Assisted Solution

    You will find that more and more of the GUI stuff is only generating PowerShell commands. Exchange 2007 and above are examples for that, and the new MSSQL Server is also using PowerShell to process its GUI tasks.

    If you are a visual type of admin, PS doesn't buy you anything. Use the GUI (if available), and do not bother what happens in the background.

    If you want to process the same change to some Exchange mailboxes, you won't happen to manage thaat easily with the GUI - but PowerShell will do that for you in a glance, if you know how.

    Whatsoever, are your initial questions answered?
    LVL 8

    Expert Comment

    As an extension to Qlemo's answer, PowerShell is also extremely useful when you frequently want to do a focussed task.  For example I wanted to be able to easily track how far through my monthly download quota I am, so (as it was good to practice) I wrote a PowerShell script to do it (, added it to my profile so any time I want to check I simply open a PowerShell window and enter
    Get-DownloadQuotaLevel 86
    for example, or more seriously i could create a function in my profiles such that I could then simply type
    to get a list of accounts that were going to expire in the next, say, month.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    A commonly asked question on the site recently has been regarding how do I share the GAL between different forests? I want a list of Contacts representing all the users in a remote domain, How do i get them? It's a problem I was posed with a litt…
    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now