Basic PowerShell Scripting

I am looking for some information online as to how to script using Windows PowerShell.  I am not a programmer and do not understand the syntax as to where all the symbols need to go in order to make scripts run correctly.  I need info that explains exactly how to do this as if you do not have programming experience.
LVL 2
RyanHelp DeskAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam LeinssServer SpecialistCommented:
This is highly rated: https://www.amazon.com/Learn-Windows-PowerShell-Month-Lunches/dp/1617291080

Also, search for Don Jones PowerShell on YouTube.  He has 4+ hours videos for PowerShell training.
RobertSystem AdminCommented:
I would recomend https://www.pluralsight.com/ you can sign up for a 10 day free trial and they have some good training plans around learning powershell. I found them a bit basic when i watched them but if your are just starting it is a good resource.
They are online cources so there are course materials ect you can download while you do the course.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Systems AdministratorCommented:
Udemy has a 'Learning PowerShell' Course that is on sale for $10.99 today: https://www.udemy.com/learning-windows-powershell/

This article also provides a bunch of other resources that you may find useful:
http://www.tomsitpro.com/articles/best-free-powershell-training,2-1090.html
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

aikimarkCommented:
do a search on YouTube for Powershell videos.  Include "introduction", "intro", "learn", or "learning" in your searches.
Joe Winograd, Fellow&MVEDeveloperCommented:
Hi Ryan,
There's some content right here at Experts Exchange that you may want to consider. First, a reasonably priced Course:

PowerShell: A Getting Started Guide for IT Admins

Next, a few no-cost articles:

Beginners Guide to Windows PowerShell Integrated Scripting Environment (ISE)

The Absolute Beginner's Guide to Powershell

PowerShell: Where do I start?

Regards, Joe
Jose Gabriel Ortega CastroCEO Faru Bonon IT - EE Solution ExpertCommented:
Hi I started a blog a while ago to this purpose,

Check here.

https://psv5.blogspot.mx/2017/08/basic-powershell-scripting.html
RyanHelp DeskAuthor Commented:
Robert:

Thank you,
I will look into it as well as other courses.  Looks like it may be worth paying for.
Joe Winograd, Fellow&MVEDeveloperCommented:
You're welcome, Ryan, happy to help. As a matter of curiosity, did you mean to acknowledge just one comment as the only answer to your question, or were you confused by the new closing process in terms of selecting multiple comments as solutions? Regards, Joe
RyanHelp DeskAuthor Commented:
I was just looking for free info only so I gave another person a thumbs up.
Joe Winograd, Fellow&MVEDeveloperCommented:
I was just looking for free info only
Hmmm, but the answer you selected does not have free info...simply has a short (10-day) free trial...while some of the other posts do provide free info. Anyway, that's not really my concern. I'm more interested in how folks are handling the new question-closing process, especially someone like you, who has been a member for more than 16 years and asked more than 120 questions. Regards, Joe
Jason CrawfordTransport NinjaCommented:
The only way you're going to learn how to script is by scripting.  It's actually really amazing what you can automate in your daily work life with just a few basic concepts like looping, variables, and working with the pipeline.  You may be a 3 note rock star for a while but so was Elvis.  If you love it like some of us do you'll start investigating more advanced methods and techniques on your own.  You can't cheat the grind so don't waste time watching and start doing.
RyanHelp DeskAuthor Commented:
I have written a few basic scripts to back up single files to multiple locations as I do not like automitic backup programs which backup everything:

$b = read-host "Input filename to backup"

copy-item "C:\My Documents\$b" -destination "E:\My Documents"

copy-item "C:\My Documents\$b" -destination "F:\My Documents"

copy-item "C:\My Documents\$b" -destination "C:\Users\rbweb\Google Drive\My Documents"

But this doesn't automate anything which is obviously the objective.  I am going to look into a kindle book next month which is cheap and which will help me out a lot I think.  I know PowerShell is very powerful and you can do a lot with it and I am looking forward to learning a lot more in the future.  Thank you to everyone on here for all your help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.