TechNet
Products
IT Resources
Downloads
Training
Support
Products
Windows
Windows Server
System Center
Microsoft Edge
Office
Office 365
Exchange Server
SQL Server
SharePoint Products
Skype for Business
See all products »
Resources
Channel 9 Video
Evaluation Center
Learning Resources
Microsoft Tech Companion App
Microsoft Technical Communities
Microsoft Virtual Academy
Script Center
Server and Tools Blogs
TechNet Blogs
TechNet Flash Newsletter
TechNet Gallery
TechNet Library
TechNet Magazine
TechNet Wiki
Windows Sysinternals
Virtual Labs
Solutions
Networking
Cloud and Datacenter
Security
Virtualization
Updates
Service Packs
Security Bulletins
Windows Update
Trials
Windows Server 2016
System Center 2016
Windows 10 Enterprise
SQL Server 2016
See all trials »
Related Sites
Microsoft Download Center
Microsoft Evaluation Center
Drivers
Windows Sysinternals
TechNet Gallery
Training
Expert-led, virtual classes
Training Catalog
Class Locator
Microsoft Virtual Academy
Free Windows Server 2012 courses
Free Windows 8 courses
SQL Server training
Microsoft Official Courses On-Demand
Certifications
Certification overview
Special offers
MCSE Cloud Platform and Infrastructure
MCSE: Mobility
MCSE: Data Management and Analytics
MCSE Productivity
Other resources
Microsoft Events
Exam Replay
Born To Learn blog
Find technical communities in your area
Azure training
Official Practice Tests
Support options
For business
For developers
For IT professionals
For technical support
Support offerings
More support
Microsoft Premier Online
TechNet Forums
MSDN Forums
Security Bulletins & Advisories
Not an IT pro?
Microsoft Customer Support
Microsoft Community Forums
Sign in
Home
Library
Wiki
Learn
Gallery
Downloads
Support
Forums
Blogs
Resources For IT Professionals
United States (English)
Россия (Pусский)
中国(简体中文)
Brasil (Português)
Skip to locale bar
Editing: Using PowerShell for the First Time
Wiki
>
TechNet Articles
>
Using PowerShell for the First Time
Article
Edit
History
Title
<html> <body> <h3 class="post-title entry-title"></h3> <div class="post-header"> <div class="post-header-line-1"></div> </div> 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.<br> <br> <strong>Make sure you are using the latest version of PowerShell</strong><br> <br> The PowerShell team has a great <a href="http://blogs.msdn.com/b/powershell/archive/2008/12/30/download-windows-powershell.aspx"> blog post</a> 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.<br> <br> <strong>Opening the PowerShell console</strong><br> <br> There are numerous ways to access the PowerShell console (when installed) and I’ll list just a few of them for you here.<br> <br> <ul> <li>Taskbar <ul> <li>An icon that looks like a blue square with >_ in white lettering </li><li>Windows 7 and Server 2008 R2 (by default) </li></ul> </li><li>Start Menu <ul> <li>Start > Programs > Accessories > Windows PowerShell > Windows PowerShell </li><li>Windows XP/Vista/7 and Server 2003/2008/2008R2 </li></ul> </li><li>Windows Explorer <ul> <li>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe </li><li>Windows XP/Vista/7 and Server 2003/2008 </li></ul> </li></ul> <strong><br> </strong><br> <strong>Configure the Execution Policy for PowerShell</strong><br> <br> 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. <br> <br> For more information on available execution policies and how your system will be affected, you can read the <a href="http://technet.microsoft.com/en-us/library/dd347641.aspx">about_Execution_Policies</a> documentation. </body> </html>
Comment
Tags
Please add 1 and 5 and type the answer here: