Lesson 1 : Learn it yourself!
Folks, though I am not an expert I managed to automate the stuff i require, many of my friends wonders ‘how to learn powershell scripting’. To me there is no one else other than you teach you better, you will get the scripting fire on you only when you do the first script yourself. NOT A JOKE!
Below might be some help for you guys, incase if you have that thing that inspire you to do PowerShell scripting, I do Powershell scripting my way, I never learnt it from a class room, my way might be so different, strange or unconventional since I learnt it my way, which I have done it the way earlier or googling the stuff I require or satisfy my requirement
Before proceeding to my way, some background of Powershell !
Powershell Versions
With first official version of Powershell released on 2006 November available on Windows 2003/XP SP2 or higher, there are lots of major additions and improvements around the Powershell and cmdlets.
Below table of Powershell Version available.
PowerShell Version |
Default on Windows |
Available on Windows |
PowerShell 1.0 |
Windows Server 2008 |
|
PowerShell 2.0 |
Windows 7 Windows Server 2008 R2 |
|
PowerShell 3.0 |
Windows 8 Windows Server 2012 |
|
PowerShell 4.0 |
Windows 8.1 Windows Server 2012 R2 |
|
PowerShell 5.0 |
Windows 10 |
Where do I script the powershell scripts?
There are few tools that enable you create powershell scripting, PowerShell ISE, PowerGUI or Notepad++
Powershell ISE – is of the default and standard command-line shell, you can also find the Windows PowerShell ISE. ISE stands for Integrated Scripting Environment, and it is a graphical user interface that allows you to easily create different scripts without having to type all the commands in the command line.
Few advantage of Powershell ISE,
- Context sensitive help, help when you start typing, a little window pops up that displays the cmdlets that match the entered text.
- Syntax Highlight, help you avoid syntax errors
- Run scripts in blocks, select the part of script block and run only selected using F8 or complete script using F5
Well PowerGUI one of the old boy, which can better replaced with PowerShell ISE, unless if you are not in love with it or don’t want to compile it to create and executable. But is also provide some comprehensive help with context you are about to type.
Most of the time, I do use Notepad++ for starting any script and editing it later, use PowerShellISE or PowerGUI only when I need to test them.
One thought on “Learn PowerShell (my way)!! Part 1”