r/PowerShell • u/Skippy9871 • Jan 09 '26
Question Learning PS
I dont know if i can ask this here but im kind of out of options. Im studying Server & Network engineering. Within 2 weeks i have an exam where i need to make some scripts. The way they teach in school sucks for me. They just roll over everything & they learn us to copy & paste all cmds they give so i dont rly get the change to get the feeling of it. Do any of u guys know how i could learn or get the feeling from Powershell to pass my exam?
7
Upvotes
3
u/Hefty-Possibility625 Jan 09 '26
Can you add some of the example commands that they are asking you to copy and paste? When you say that you'll need to make some scripts, it sounds like they haven't really covered writing scripts, just using commands one at a time.
If the exam is expecting you to write a script from scratch and they haven't shown you how to do that, it's ok for you to ask your professor for guidance. Letting them know that you feel unprepared gives them feedback that they need to spend more time on a specific area.
Are you the only one who is struggling with this, or are you able to form study groups with classmates who might be able to share information in a different way from the professor?
17
u/CosmoInSpace Jan 09 '26
Powershell in a month of lunches book+youtube videos
8
u/SarcasticFluency Jan 09 '26
https://www.youtube.com/watch?v=NECE5CX69tk&list=PLnK11SQMNnE4vcvuAahz4KhNOS7zOfmB3
This one really opened my eyes and light bulbs started turning on https://www.youtube.com/watch?v=UVUd9_k9C6A&t=20826s&pp=ygUKcG93ZXJzaGVsbA%3D%3D
1
u/Skippy9871 Jan 12 '26
I started learning with chatgpt. Now im slowly getting it. So this could work for me
5
u/Mesmerise Jan 09 '26
If I was in your shoes I would ask if there are any exams from previous years that they could give you so you could get a feel for the scripts they expect you to write.
4
u/j0x7be Jan 09 '26
You might want to check out Get-Command, and lookup those commands that you copy+paste. https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-command?view=powershell-7.5
1
u/miwe77 Jan 11 '26
depends on if you're completely new to scripting / programming or have an idea of what you want to do, i.e. know - on an abstract level - how to tell the computer what to do to achieve a goal, and you just need to use powershell to use as the tool required to get it done. I'd say if you don't know how the stuff works that you want to script for, you're pretty much f*cked in any language.
so if it's the first, I really don't know where to get you started given the amount of time you have, if it's the latter, just get a quick tutorial (youtube or even microsoft learning) on syntax, built-in commands and extensions, and remember how to invoke the powershell helpsystem and how to manage extensions.
what tools are you allowed during exam to create the scripts, btw? and in what context?
1
u/lickmyassandsmile Jan 10 '26
Get-help
Install tgpt - gpt in the terminal https://github.com/aandrew-me/tgpt
1
u/g3n3 Jan 10 '26
So what you gonna do? What are the commands? Post them? It sounds like you didn’t use your time wisely unfortunately. There are no quick trips without speed drugs.
1
u/Middle_Actuator_1225 Jan 10 '26
Use powershell everyday for everything. You’ll get good at it
1
u/netpinoy Jan 12 '26
Not in that timeline. Get book from Amazon to familiarize yourself. And YouTube works too. I have a Udemy class on PS. It works for me.
1
u/FennelMain Jan 12 '26 edited Jan 12 '26
well apart form the obvious 'know someone decent at PowerShell'
I don't think anyone has an issues with you asking, it is however as stated a few times, a bit vague.
most of us likely could teach you what you need to know in a short time frame if we knew what you needed to know
like you can use test-netconnection to test connectivity but to be useful you might want to set that to scan a subnet.
so I'm not sure if that's the kind of copy and past script you are talking about.
Or if its copy and pasting pipelining which you don't get.
also try changing the script to add something useful to it. or pull it apart bit by bit to see what each step gives you can be good ways to learn the meaning to what they give you
1
u/Mountain-eagle-xray Jan 10 '26
Chatgpt is "ok" at ps as of 5.2.