Effective use of interactive Environments
Generally, PowerShell has two main runtime environments: PowerShell and PowerShell ISE. The former is the running environment of PowerShell, and the latter is the place where PowerShell integrates the script environment, that is, script. ps1. You can also use notepad or other editors to write scripts. It is definitely not a good idea for beginners to write scripts as soon as they come up. But if some people do not do this, or are forced to do this, you know), then I suggest you be good at interactive environments. Run each script to check the effect. If the result is correct, copy it to the script. Of course, if you already have some motivation for PowerShell, you don't have to listen to me here.
Make full use of help documentation
Do you need to buy a book? This problem varies from person to person. At the beginning of learning PowerShell, I read the PowerShell in Action published by Mining, the original version. I feel like a novel. I don't want to think about code anymore. It's a bit addictive. Unfortunately, after reading it, I haven't touched PowerShell for a long time. When I picked up PowerShell again, I couldn't remember what I wrote in that book. It seems that I have to read it again later.
After that, no matter whether you have reference books or not, the help documentation will be very useful. What do you think about the help documentation? I have two ideas: When writing code, I will check the help document, find the appropriate command, or confirm the usage of a parameter, I copied some help and printed it out. I sat at the station while drinking tea, or watched it on the bus when I went to work in the morning. If you see a man on 699 or 614, who does not sit on a stool, standing there holding several pages of printed paper, it's about PowerShell, that's me.
Read code and grammar
Many Chinese language books tend to be textbooks. Generally, they talk about their origins first, followed by basic types and operators, followed by logical control, followed by file and database processing, finally, they provide support and processing methods for some important fields. The advantage of such books is that if you can read the books with patience, you will be able to make minor achievements when you finish reading the books. But the problem is that my patience is often insufficient. I 'd rather open the book and read it.
In fact, reading code written by others is also a good learning method. This is what I recently discovered. I used to dislike other people's code. By looking at other people's code, you can draw the code you are interested in, break it into your computer, execute it, see the effect, change it at will, and then look at the effect. The concepts involved can be found in the document. Many of them are involved, but they are easy to see.
Conclusion
As the end of this article, I have a piece of advice, that is, to treat your interests as a person you must be pleased with. Don't get tired of it, get used to it, and often get a little sense of accomplishment to stimulate it, in this way, it will work very well, and you will not be nervous.