Thanks John! Great content. I grew few brain cells in the last 30 min. Watching your content daily for 30min in the morning is the new 'discipline' I have been building :D On to the next 'Advanced Scripting' vid!
@NTFAQGuy3 жыл бұрын
Fantastic!
@flatbill23 жыл бұрын
I went through the Microsoft powershell training tutorial. You gave me a lot of good information.
@NTFAQGuy3 жыл бұрын
Glad it was helpful!
@sakthipro_YT4 жыл бұрын
No matter how many times i thank, they all look insufficient. Excellent Work!!
@NTFAQGuy4 жыл бұрын
Very kind, thank you.
@JackassGaming914 жыл бұрын
Thanks again John ! Hopefully you can do more powershell video like how workflow, begin, process, finally works
@NTFAQGuy4 жыл бұрын
I’ll look at some new topics :)
@MrMahiyadav4 жыл бұрын
I am not a coder and more from the ops b/g ... and I loved your video... very clearly made and I didnt find it diffcult to understand the script/code here...BIG THANKS :)
@NTFAQGuy4 жыл бұрын
Great to hear, thank you
@ibrahimabdeltawab6418 Жыл бұрын
So informative! Thanks so much for your efforts
@washingtonalmeida753 жыл бұрын
Great tutorials, John. Very educative! Thank you.
@chaminda512 Жыл бұрын
Learn something new every time. thank you so much..!
@NTFAQGuy Жыл бұрын
My pleasure!
@VishnuKamath3 жыл бұрын
Loved the Tutorial. Awesome work.
@NTFAQGuy3 жыл бұрын
Glad you liked it
@ezathel92942 жыл бұрын
Thank you very much for the video! Very well explained, helped a noob like me quite a lot.
@didierfolly5 жыл бұрын
Thank you, a great video again!
@oscargarza68695 жыл бұрын
You did a great job with this video. I enjoyed all of the information. Thank you!
@ornellaputti66913 жыл бұрын
Excelent video! So well explained, just loved it, keep it up!
@bjorndennenbroek12845 жыл бұрын
Thank you, these video's are a tremendous help.
@patrickwilliams72102 жыл бұрын
I noticed on your section at 8:58 you include the execution operator '&' it doesn't appear that you need that for the script to work.
@zt.56773 жыл бұрын
Dear John. Funny thing is: I have just seen your motivational on discipline, and I thought: is it discipline that after my SQL examination, I return to John's PowerShell Class to continue and finish them?
@NTFAQGuy3 жыл бұрын
:-)
@alishavez5 жыл бұрын
Good stuff John.
@NTFAQGuy5 жыл бұрын
Thanks :-)
@TheMarcosmf4 жыл бұрын
Where could I find the concept of Parameters and Strings? I watched PowerShell Fundamentals and I couldn't find it there. I supposed was here.
@NTFAQGuy4 жыл бұрын
Next part in series. kzbin.info/www/bejne/eIe4aICuod6Ao6M
@badsector82 Жыл бұрын
What's the difference between "Write-Output" and "return" in a function?
@Codyyyyyyyyyy5 жыл бұрын
Great video! Thanks
@badsector82 Жыл бұрын
What if I have script to do a task for a million users, for example and I want to have a progress shown on the screen. Should I use "Write-Output" as it can possibly mess with the pipeline, and I have had such cases, or I am allowed to use "Write-Host"?
@pallabkolkata4 жыл бұрын
@john savill John when i try to run the Mod4script2.ps1 in my machine i get the below error : PS C:\Pallab\ARM_JSON> .\pwsh1.ps1 CA-LJ8M0JR2 Get-CimInstance : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". At C:\Pallab\ARM_JSON\pwsh1.ps1:5 char:19 + ... in32CSOut = Get-CimInstance -ClassName win32_computersystem -Computer ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ConnectionError: (root\cimv2:win32_computersystem:String) [Get-CimInstance], CimException + FullyQualifiedErrorId : HRESULT 0x80338012,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand + PSComputerName : CA-LJ8M0JR2 Get-CimInstance : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". At C:\Pallab\ARM_JSON\pwsh1.ps1:6 char:19 + ... in32OSOut = Get-CimInstance -ClassName win32_operatingsystem -Compute ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ConnectionError: (root\cimv2:win32_operatingsystem:String) [Get-CimInstance], CimException + FullyQualifiedErrorId : HRESULT 0x80338012,Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand + PSComputerName : CA-LJ8M0JR2 But i have my variable outputs already listed properly please find below : PS C:\Pallab\ARM_JSON> $paramout | fl Name : Version Value : 10.0.17763 Name : ComputerName Value : Name : Memory Value : 17034072064 Name : Free Memory Value : 7101636 Name : Procs Value : 1 Can you tell me why it's throwing error if i am running the script in totality and how to fix it
@NTFAQGuy4 жыл бұрын
check the firewall is open etc. it can't get to the machine.
@pallabkolkata4 жыл бұрын
@@NTFAQGuy Yes it is my local laptop only. I ran the below command got this : PS C:\Pallab\ARM_JSON> Get-CimInstance Win32_ComputerSystem Name PrimaryOwnerName Domain TotalPhysicalMemory Model Manufacturer ---- ---------------- ------ ------------------- ----- ------------ CA-LJ8M0JR2 Windows User groupinfra.com 17034072064 Latitude 5590 Dell Inc.
@aumpauskar46533 жыл бұрын
If you code doesn't run in powershell, and shows "cannot be loaded because running scripts is disabled on this system", copy and paste this: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
@PaulBunkey5 жыл бұрын
About "Just don't use it" - I don't support boycotting a language command. You just need to understand pros and cons and use an appropriate command. (As I see it) Write-Host is only useful if you want to make output more readable for user, staring at the console. If you always write to log and never need to inform a user about the process or give beautifully readable result, with important parts jumping to the eye, so yeah, never use Write-Host.
@pgrinius4 жыл бұрын
Hi John, what a great video! Superb quality and straight to the point. I noticed, that Write-out at 29:38 outputs Version before Procs, which is the opposite of how you set up the $paramout hashtable. What’s the reason for that?
@NTFAQGuy4 жыл бұрын
Thanks. Hash table is a collection of values, how its output does not have to match. I could control the output format if I wanted to but didn't in this example.