How to grasp PowerShell quickly? In general, it is to use it as much as possible, as the proverb says: Practice makes perfect. Of course there are some principles and methods that we can follow.
Effective use of interactive environments
Generally speaking, PowerShell has two main operating environments: PowerShell and PowerShell ISE. The former is the PowerShell environment, which is the PowerShell integrated scripting environment, where the script (. ps1) is written. Of course, you can also use Notepad or another editor to write scripts. It's never a good idea for beginners to write a script. But if some people do not, or are forced to do so (pro, you understand), then I also recommend that you be good at facilitating interactive environment. Run each script before writing it to see the effect, if correct, and then copy it to the script. Of course, if you have a certain motivation for PowerShell, you don't have to listen to me messing around here smile
Take full advantage of help documentation
Do you need to buy a book? This problem varies from person to person. I studied PowerShell at the beginning of the mining press "PowerShell in Action", the original. It's good to be written, like a novel. Don't want to knock on the code, a bit addicted to that feeling. Unfortunately, I've seen it for a long time without touching PowerShell. Later picked up the PowerShell, unexpectedly can't think of that book wrote something, it seems to have to see again.
In other words, whether you have a reference book on your desk or not, the help document must be useful. What do you think about the Help document? I have two ideas, one is when writing code, a little bit unclear, I will look up the help document, or find the appropriate command, or to confirm the use of a parameter, very useful; another idea is that I have a couple of related help copied, printed out, sitting at the station, sipping tea, Or in the morning to work, on the bus to see. If you see 699 or 614, there is a man, there is a stool not to sit, standing there with a few pages of paper printed on the look, above is about PowerShell, that is I smile
Reading Code and Learning grammar
Many of the domestic introduction of the book, are a bit of textbook trends, is generally the first Origin, followed by the basic types and operators, then logical control, then the file and database processing, and finally some important areas of support and processing methods. The advantage of this kind of books is that if you can watch it with patience, you will have a small one when you finish reading the book. But the problem is, my patience is often not enough, I would rather take the book apart, 1.1 point of view.
Actually reads the code which other people writes, is also a very good study method. This is what I discovered recently, I didn't like to look at other people's code before. Look at other people's code, you can draw out of interest, knock into the computer, perform, see the effect, casually change, and then see the effect. What is involved in the concept of helping the document to look up, involved more but because of the slow look.
Conclusion
As the end of this article, I have a piece of advice, is to take your interest as a person you have to please, do not get tired of it, to be used to it, often with little sense of achievement to stimulate it, so it will be very compatible, you will not neurasthenia.