Using PowerShell for the First Time

So you want to use PowerShell for the first time and you can’t figure out where to start.  You right-click on a PowerShell script that you downloaded from the internet and you are prompted with a security warning, or maybe you see some error messages and then the PowerShell window disappears.  Here are some simple advice to make sure your first PowerShell expedition is a successful one.

Make sure you are using the latest version of PowerShell

The PowerShell team has a great blog post which lists all available versions of PowerShell and related downloads.  If you are using Windows 7 or Server 2008 R2, you already have PowerShell 2.0 installed, but if you are using a previous OS, you will need to download the most recent version.  As of this posting, the latest production release is v2.0, which requires .Net Framework Version 2.0 to be installed.  It is recommended to install .Net Framework Version 3.5 SP1, as this is required for the Integrated Scripting Environment (ISE) and graphical cmdlets.

Opening the PowerShell console

There are numerous ways to access the PowerShell console (when installed) and I’ll list just a few of them for you here.

  • Taskbar
    • An icon that looks like a blue square with >_ in white lettering
    • Windows 7 and Server 2008 R2 (by default)
  • Start Menu
    • Start > Programs > Accessories > Windows PowerShell > Windows PowerShell
    • Windows XP/Vista/7 and Server 2003/2008/2008R2
  • Windows Explorer
    • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
    • Windows XP/Vista/7 and Server 2003/2008


Configure the Execution Policy for PowerShell

Configuring the PowerShell execution policy requires access to a user account that has local administrator rights to the system that you wish to configure.  To begin the process, locate the PowerShell executable at one of the locations listed above, right-click the icon and select ‘Run As Administrator’.  If UAC is enabled, you will be required to accept a security warning.  You should now have a blue PowerShell console with a title of ‘Administrator: Windows PowerShell’.  To see the current execution policy, you can use the Get-ExecutionPolicy cmdlet.  In a default install of PowerShell, the value Restricted will be returned. To change the policy, use the Set-ExecutionPolicy cmdlet. 

For more information on available execution policies and how your system will be affected, you can read the about_Execution_Policies documentation.

14 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. thanks for providing a very informative article. looking further for more write ups.

    www.joeydavila.net

    ReplyDelete
  3. I will keep your new article. I really enjoyed reading this post, thanks for sharing.

    Jenna
    www.imarksweb.org

    ReplyDelete
  4. We all need challenges in our life to keep motivated. I really had a great time scanning and reading your blog site and i was so amazed with your great artwork. I do hope you could inspire more readers. You can also visit my site for some interesting stuff.

    n8fan.net

    www.n8fan.net

    ReplyDelete
  5. Having products collectively and also slugging near to those people storage space place containers do not need to probably be among the problems however.
    Movers and Packers in Chennai
    Movers and Packers in Bangalore
    Movers and Packers in Delhi

    ReplyDelete
  6. Packers and Movers Mumbai is amazing company and also has been around little company for an prolonged time.
    Movers and Packers in Hyderabad
    Movers and Packers in Pune
    Movers and Packers in Mumbai

    ReplyDelete
  7. These organizations are getting appraisals on the house of the worker and may be provided with broker marketing support.
    Packers and Movers in Noida

    Packers and Movers in Navi Mumbai

    Packers and Movers in Thane

    Packers and Movers in Amritsar

    ReplyDelete
  8. It may be likely that the products get damaged or damaged in the process of shifting. In avoiding this undesirable scenario or getting sufficient precautions, it may be right to get a company that provides technique.
    Packers and Movers in Jalandhar

    Packers and Movers in Ghaziabad

    Packers and Movers in Faridabad

    ReplyDelete
  9. I really enjoyed reading your article. I found this as an informative and interesting post, so i think it is very useful and knowledgeable. I would like to thank you for the effort you have made in writing this article.


    edupdf.org

    ReplyDelete
  10. If that's the situation, Always body weight and dimensions possible individual and also vaccination specifications for your holiday position, you need to trying to find near close family members pet submission companies.
    Packers and Movers Hyderabad
    Packers and Movers Bangalore
    Packers and Movers Pune

    ReplyDelete
  11. One particular last position : Keep in concepts to obtain hidden take a trip applications for the expatriation -- air trip, car or automobile look for the solutions of along with resort a reservation.
    Packers and Movers Mumbai
    Packers and Movers Delhi
    Packers and Movers Gurgaon

    ReplyDelete
  12. It is essential : Though you can find out several activities, try and fulfilment in and have definitely interesting. It is a only one in a very youngsters experience.
    Packers and Movers Chennai
    Packers and Movers Noida
    Packers and Movers Thane
    Packers and Movers Navi Mumbai

    ReplyDelete