Good stuff John, Legend! Loved the gradual progression from script to Modules. It helped me fill in some gaps in my knowledge! Just back from reading the docs about PSModulePath - Powershell 7 is honouring the PSModulePath changes. Great news! Modules, parameter binding, here I come!
@amitdubey9864 жыл бұрын
Thanks John. You have been an Amazing teacher. I have just started my powershell journey and it has started to appear very easy.
@NTFAQGuy4 жыл бұрын
Wonderful!
@prasannakumaryr3 жыл бұрын
He is a master teacher!
@RDSBL2 жыл бұрын
Good video John, nice pace, good bite-sized examples. I’ll be watching more of your lectures now!👍🏼
@MatSmithLondon2 жыл бұрын
Top presenting style. Basically, musical voice. Reeeeally easy to understand, and makes it very watchable. I rarely read or watch powershell for fun, I'm usually googling in anger when it comes to PS :) Thanks!
@kurchak5 жыл бұрын
( )
@NickRoman2 жыл бұрын
curly braces or just braces (since it is the only thing called braces, the adjective is redundant). Language is no where near as simple as 'you guys were first'. Just saying.
@kurchak2 жыл бұрын
@@NickRoman just a joke
@ymsalem5 жыл бұрын
Very useful indeed. Thanks.
@ardenercelik24234 жыл бұрын
Real useful. Thank you, this content is helping me a lot at work.
@NTFAQGuy4 жыл бұрын
Great to hear! Thanks.
@deserve_it5 жыл бұрын
Very useful and enlightening bundle of lectures . I see it more and more how power shell is a graceful and effective language to resolve all different kinds of problems. Problem is that it is still not such popular as it should be . At my work nor one actually knows how to use it . In a best case the people know that it is exist , sometimes even this knowledge is absent. My boss thought we need install it on Windows. Windows 10 ,I mean. Today everyone use Python. Some folks still use Batch in Windows , I feel a very strong urge to puke whence i am looking at Batch. I personally don't understand how is it possible that people prefer Python above Powershell especially in WIndows environment ? I ready to bet , almost every issue you can resolve quicker in Powershell. Pipes are great for it . You even don't need to read a pile of documentation to receive something , it is enough to receive an excel object and if you know how to use all this truck as Select and Where and so on... you can very quickly to extract what you are looking for. May be it will be not an elegant way but it will be a quick way. Sometimes it is a preferable way , above other ways when you need to spend an hour to investigate this library for to find a function that fits. This truck shall be much more popular and familiar to everyone. It is astonishing how this language makes your life easier. In this lecture I revealed many very useful things , i did it by using another ways, simply because it is difficult to imagine that life may be even more easier . As says my friend in shortly we will go to crap without coming out from bad. But in my opinion it is Great!!
@ibrahimabdeltawab6418 Жыл бұрын
So informative! Thanks so much ❤
@shinigamilee59155 жыл бұрын
It's really important to have a debugger. I used to use VBS Edit years ago, just because I could step through the code even I was coding in PowerShell or Python. I did this so I look at the windows objects more completely. Yes, Python has a debugger, but it wasn't as good when working with Windows objects. Now with a proper debugger in Microsoft Code, I don't have to do this anymore. It was a bit of a pain to convert code back and forth but not really that difficult since I have done it for so many years on small projects and frameworks I needed for making my Windows and Linux code work on both platforms.
@thearchibaldtuttle4 жыл бұрын
Thanks for sharing the material!
@geroffmilan33282 жыл бұрын
I still debug manually using a separate powershell console - just do not understand how to configure the VSCode debugger or its options. I gave VSCode a fresh try today, but after prompting that it wanted to create a launch.json, triggering a source control change, my script completely failed because the debugger claimed a module was not installed. That module is installed, and the script runs fine in production. I never faced this degree of complexity when debugging Pascal way back in the day!
@PabloTBrave4 жыл бұрын
You mention wmi had been replaced by cim how would you find out which is the newer/preferred command when there are various options
@badda_boom80174 жыл бұрын
Try using a cim explorer. It's much easier
@seanvogel80675 жыл бұрын
John, this was useful and well presented. This refreshed my memory on how to write scripts with parameters, enable Help and also create functions that would be available on the command line. Many years ago I found that info on the MS site, but this time I couldn't find it. Thank you. For what it's worth, this is my understanding as an American: ( ) Parentheses [ ] Square brackets { } Braces (or curly braces) < > Angle brackets Mind you, I'm not saying the way you said it was wrong...it's language differences. >chuckle
@NTFAQGuy5 жыл бұрын
I'm constantly learning :-) Appreciate the bracket break down :-) cheers!
@djmichaelm33014 жыл бұрын
Sean Vogel 100% agree, it’s exactly what I call them all too in the US
@luizzurobski4462 Жыл бұрын
ty
@calebjoyner5284 жыл бұрын
I got the compinfo ps1 script from your GitHub and tried to run it but it literally does nothing. Pretty frustrating.
@NTFAQGuy4 жыл бұрын
make sure winrm is configured on your machine.
@calebjoyner5284 жыл бұрын
It is configured, says the winrm service is already running on this machine. WinRM is already setup for remote management on this computer.
@calebjoyner5284 жыл бұрын
I have the ps1 saved to my desktop the directory is set to my desktop, when I enter the .\compinfo.ps1 command it does nothing.
@NTFAQGuy4 жыл бұрын
check your execution policy. i cover that in modules. if it does nothing there is something else.
@krzydoug802 жыл бұрын
also make sure the file isn't "blocked" by right clicking and choosing properties. Down at the bottom of the general tab if there's a checkbox to unblock, check it and hit ok. Since you downloaded the script from the internet, depending on where it's saved, this could be the issue.
@markadam15063 жыл бұрын
Just to confirm: its either Brackets or Square Brackets :-)