LearnPowerShell 01 – Basics for first time PowerShell users

Installation:
PowerShell is expected to be installed on your Windows-7/ Windows-8 machine by default. If not already installed, use instructions at https://technet.microsoft.com/en-us/library/hh847837.aspx to install PowerShell.

How to Open (Powershell/ Powershell ISE):
Run Powershell / Powershell_ISE commands to start using PowerShell
Powershell_01_1

Powershell_01_2

Powershell_01_3

Powershell_01_4

NOTE:
• PowerShell is typical SHELL like UNIX, PowerShell ISE includes PowerShell Script editor including multiple features.
○ PowerShell ISE is not visible in Windows-8 by default, you can follow these steps to enable it .
• There is no difference in the results while executing in PowerShell Command or PowerShell_ISE or by running it in a batch file

Privileges:
• PowerShell can be launched in non-elevated access or with Admin privileges.
• To Launch PowerShell with Admin rights,
○ Right click on PowerShell Icon and open in Admin mode
○ Run the command: powershell Start-Process powershell -Verb runAs

NOTE: it is recommended to use with non-elevated access

Powershell_01_5

Powershell_01_6

Cmdlets:
• cmdlets are lightweight commands used in PowerShell. cmdlets perform an action and typically return a Microsoft .NET Framework object to the next command in the pipeline or display output.
• Most of cmdlets are of type Get, Set, Add, Remove, Format!
• Sample cmdlet to start with: Run Command in PowerShell.

Top 3 cmdlets I recommend to research:
• Get-Help
○ Execute to learn how to use Get-Help, different parameters you can pass. This helps you to understand different cmdlets available in PowerShell.
• Get-Command: Helps to find all cmdlets available. Refine your search with different parameters
○ get-command -Verb get
○ get-command -noun process
○ Get-Command -Verb get -Noun *ip*
• Get-Childitem
○ Get-Childitem -Recurse

Advertisements
This entry was posted in Learn_Powershell, Powershell and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s