Learn PowerShell in Less Than 2 Hours

Learn PowerShell in Less Than 2 Hours

PowerShell Engineer

1 год назад

236,915 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Nolan
Nolan - 07.02.2023 06:31

It seems nomatter what I do it won't let me run scripts. It keeps saying that i have unauthorized access despite setting the policy in both PS and ISE in either order, with administrative privileges. I'm on W11, PS version 5 latest build.

Ответить
Denali Mike
Denali Mike - 09.11.2023 04:43

Probably one of the better tutorials! Mike from MI

Ответить
FUSIZ
FUSIZ - 05.11.2023 22:36

DO YOU KNOW DOS COMMAND TO MAKE SHORTCUT FILES ?

Ответить
Raymond Seger
Raymond Seger - 05.11.2023 14:51

great video.

Ответить
Matt Sanford
Matt Sanford - 04.11.2023 03:32

I'm sure you're very busy but I was hoping you could look at this PowerShell script for me. I was having fun with it and decided to add a prompt so I could collect user input about the Pokemon Region number. But after I begin running it returned the wrong regions. For example if I input 2 it would return Hoenn instead of Kanto or if I entered 3 it would return Johto. What did I do wrong?

Write-Host "Is your Pokemon from Kanto, Johto, or Hoenn?"
$Pokenum = Read-Host -Prompt "Enter the Region Number for your Pokemon (1 to 386)"
If($Pokenum -ge 1 -and $Pokenum -le 151) {
Write-Host "Your Pokemon is from Kanto"
} Elseif($Pokenum -ge 152 -and $Pokenum -le 251) {
Write-Host "Your Pokemon is from Johto" }
Elseif($Pokenum -ge 252 -and $Pokenum -le 386) {
Write-Host "Your Pokemon is from Hoenn"}
Elseif ($Pokenum -le 0) {
Write-Host "That is not a valid number! Start again." }

Thanks for taking the time to look at the script. The issue is probably obvious but I can't see it. Thanks for the video and thanks for your time.

Ответить
Promise Chidi
Promise Chidi - 30.10.2023 19:00

Thank you. This video was so helpful. I'm just starting my journey learning PowerShell and this was so helpful. You gave me some confidence in learning it now.

Ответить
thesis new
thesis new - 28.10.2023 02:32

Hello, I tried getting full OS build number of my pc using below commands
$OSBuildNumber = (Get-Item "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion").GetValue('CurrentBuild')
$OSBuildNumber = (get-wmiobject -Class win32_OperatingSystem).BuildNumber
But I only get 19405 and not 19405.3570, please help me in getting full build number even after point (.)
Thanks in advance

Ответить
BlueKaiTheEnd
BlueKaiTheEnd - 25.10.2023 18:01

This is exactly what I needed! Brought me up to speed

Ответить
Lewis Lyles
Lewis Lyles - 09.10.2023 23:09

I took powershell in college.

Ответить
Invincible
Invincible - 09.10.2023 11:30

I made this mistake back in 2015 and I promise my self not to do it again. Just learn Bash

Ответить
Anuvind
Anuvind - 08.10.2023 16:31

Hey James, I am a graduate who is trying to get into system administration and I am learning both linux and windows server. I have basic knowledge in programming and bash shell scripting. I was confused if I should learn python for scripting as it is cross platform, or just move on with powershell and bash shell. Can I get your opinion?

Ответить
Zuko
Zuko - 25.09.2023 22:27

I appreciate at the references used for programming. I didn't realize we were up to 908 pokemon these days. But I'm partial to the Johto region.

Ответить
ThackTracks
ThackTracks - 25.09.2023 16:53

This was so helpful! Thank you!

Ответить
swapnali mohite
swapnali mohite - 17.09.2023 17:05

Great video and great examples 😊 🎉

Ответить
TechMode
TechMode - 28.08.2023 15:31

That was a very helpful video, keep it up! :)

Ответить
Ibnziyad Tariq
Ibnziyad Tariq - 28.08.2023 02:40

Thank you !

Ответить
Ronald Co
Ronald Co - 23.08.2023 20:23

a very nice one for beginner!

Ответить
Jamal Lee
Jamal Lee - 15.08.2023 21:28

I had my doubts about you and 2 hrs but I have to admit that this gets down to the nitty gritty. Thanks for taking the time.

Ответить
Ken Wood
Ken Wood - 15.08.2023 03:57

It's good to see commercial Windows making some effort to catch up with free Linux.

Ответить
Mukund Kumar
Mukund Kumar - 25.07.2023 17:03

Thank you-I was able to learn PS basics- I like your teaching style..too good🤘

Ответить
Ms
Ms - 10.07.2023 15:14

thanks

Ответить
Crypto Woo
Crypto Woo - 02.07.2023 12:12

This helped me so much

Ответить
Dyddho
Dyddho - 18.06.2023 18:12

++GOOD! Watched a ton of videos on the topic the last 2 days - this one is by far the best: well structured, understandable examples, fun to key along in my own system.Keep up the good work!

Ответить
Kandrius91
Kandrius91 - 07.06.2023 18:16

Great examples.. Star Wars and Pokemon :) i like that. easier to learn that stuff

Ответить
Daniel Milewski
Daniel Milewski - 06.06.2023 22:40

thank you sir!🥰

Ответить
Down-N-Out
Down-N-Out - 05.06.2023 14:57

Thanks for the video.

Ответить
Joey Hyde
Joey Hyde - 01.06.2023 21:30

This was phenomenal thank you.. I learned a ton..

Ответить
Ashutosh Pandey
Ashutosh Pandey - 15.05.2023 18:18

best powershell tutorial video i have seen on the internet🔥🔥🔥

Ответить
ChrumkavySuchar
ChrumkavySuchar - 12.05.2023 21:38

Thank you for the video. Very helpful. May the force be with you.

Ответить
Ryan
Ryan - 12.05.2023 06:30

Hi, When I type net session in Powershell, it shows me an SMB connections. Is there a way I can show SSH connection from PowerShell?

Ответить
Tombaugh
Tombaugh - 04.05.2023 17:21

Complete NOOB here, I used Set-ExecutionPolicy unrestricted, as admin but I still get the red cd : Cannot find path 'C:\Scripts' because it does not exist.
At line:1 char:1
+ cd C:\Scripts.
Windows 10 Pro v 1909

Ответить
vreels
vreels - 02.05.2023 21:49

the video is great, but the audio has issues, intro was bit too loud

Ответить
e-bz
e-bz - 27.04.2023 16:11

I'm on linux & stumble to this ...Why not ~

Ответить
Devi Sirigidi
Devi Sirigidi - 19.04.2023 11:05

I got a call On powershell scripting Language (automation)based project..did it usefull to take the project.and is it use full in future..?
Give some suggestions guys please

Ответить
Neeraj Jha
Neeraj Jha - 27.03.2023 18:29

Can you please help me create group manage service account, a basic one and start any service using that gmsa account

Ответить
Dominique Does Life
Dominique Does Life - 23.03.2023 15:48

Update: this video helped my buddy to ditch the GUI and to be comfortable doing it! Yay!!!

This is fantastic!! Thanks! I’m recommending this to a friend who uses windows exclusively, who hasn’t ditched the GUI yet. This really is a great tutorial. Appreciate you.

Ответить
Robb C.
Robb C. - 12.03.2023 22:21

Thanks mate, good vid. Newbie here and learnt a lot, much appreciated.

Ответить
Karol Stenzel
Karol Stenzel - 10.03.2023 23:20

Very nice course! Stuff nicely explained in a straightforward way, this is what I've been looking for.
But maaan... Your voice is so quiet throughout the whole video! That outro jingle with the volume up spooked me out 😅
Anyway, thanks for the knowledge, I wish you all the best!
Cheers!

Ответить
cut-out witch
cut-out witch - 10.03.2023 00:55

Rookie question (doesn't come super easy to me!). How do you decide when to write the script in the script window and when to do it in the console window?

Ответить
HBOMB1111111111
HBOMB1111111111 - 25.02.2023 19:56

Hi, great vid so far in 30 minutes or so.

I use power shell in general for deploying applications via sccm. Pretty basic stuff probably from your perspective. Start-process etc with silent switches and so on for msi and exes etc.

Are there any links or urls you could advise that would help with this particular area of power shell and deploying apps or making changes to a systems file system for example (usually deploy the ps script via sccm with a admin service account to the remote device)

Seen some folk get really into a massive long script with other app deployment, I have no idea how they manage to retain the information to write from scratch to be honest. Personally I grab other people’s code online, test and then make it cater for the app in question needs (if it needs to be installed when the device has batter greater than 10 percent for example)

Would it be possible to message you a couple of questions with some scripts I have for you opinion on them?

Thanks 🙏

Ответить
Sachin V
Sachin V - 12.02.2023 15:41

Thank you James ! Hope you'll also guide with additional (advanced) knowledge on the same topic.

Ответить
Pilgrim153
Pilgrim153 - 17.01.2023 08:08

Great video, any other resources you recommend to keep learning PS.

Ответить
mrslippyfist18
mrslippyfist18 - 11.01.2023 09:56

Nice work, great little refresher!

Ответить
Li Yun
Li Yun - 09.01.2023 08:05

I like those fun examples! Thank you!

Ответить
Thiago Alexsander Luiz
Thiago Alexsander Luiz - 05.01.2023 04:10

Nice vid, touched every major topic.
Do you happen to know a good static analyzer for PowerShell?

Ответить
SysAdmin
SysAdmin - 30.12.2022 17:31

Thank you james👍
Do you recommend books for learning PowerShell and automating with PowerShell

Ответить