15 Useful PowerShell Commands for Beginners | Learn Microsoft PowerShell

  Рет қаралды 146,772

WindowsChimp

WindowsChimp

Күн бұрын

Microsoft created the PowerShell for task automation and configuration management. If you want to learn the PowerShell and looking for some useful commands to start with, then watch this video till the end and you learn such 15 useful PowerShell commands for newbies.
Follow the timestamp to quickly jump to the command you want to learn--
1. Listing the drives 0:34
Get-PSDrive
To list drives with the file system
Get-PSDrive -PSProvider FileSystem
2. Listing the files in a directory 1:10
Get-ChildItem
To list files in another directory
Get-ChildItem path-of-another-directory
3. Changing the current directory 1:36
Set-Location path
4. Creating a new item 1:53
To create directory
New-Item -ItemType Directory -Path path -Name name-of-the-directory
To create file
New-Item -ItemType File -Path path -Name filename -Value “value in your file”
To edit content later
Set-Content -Path path-of-file -Value “your new value”
5. Viewing file information or printing it 3:10
To view file information
Get-Item file-name
To view the content of the file
Get-Content file-name
To view it in an external window
Get-Content file-name | Out-GridView
To print it
Get-Content file-name | Out-Printer
6. Renaming a file or folder 4:03
Rename-Item -Path path -NewName new-name
7. Copying or moving an item 4:34
To copy
Copy-Item path-with-file-name -Destination destination-path
To move
Move-Item -Path path-with-file-name -Destination destination-path
To move and rename
Move-Item -Path path-with-file-name -Destination destination-path-with-new-name
8. Removing a file or directory 5:44
Remove-Item file-or-directory-name
9. Getting all the commands 6:00
Get-Command
To get command of specific type
Get-Command -CommandType function, alias, or cmdlet
To search for a command
Get-Command *search-value
10. Getting help for a command 6:32
Get-Help command-name
To get examples
Get-Help command-name -Example
11. Getting the list of processes and services 7:04
For processes
Get-Process
For services
Get-Service
12. To stop a process 7:20
Stop-Process -Name name-of-process
To stop a particular instance of the process and confirm
Stop-Process -Id id-of-process -Confirm -PassThru
13. Get the list of Windows drivers 8:01
Get-WindowsDriver -Online -All
14. Taking backup of drivers 8:15
Export-WindowsDriver -Online -Destination path-for-backup
15. Scan for malware 8:42
Start-MpScan -ScanType QuickScan/FullScan -ScanPath directory-path-to-be-scanned
We will be uploading a video on advanced PowerShell commands so subscribe to the channel and press the bell button to get the notification.

Пікірлер: 80
@Sexyoldgeraldorivera
@Sexyoldgeraldorivera 2 жыл бұрын
Thanks! Brilliant and simple, exactly what i needed.
@thelastagain1202
@thelastagain1202 4 жыл бұрын
You can toggle to turn on Defender in the Virus & Threat protection tab in settings to run concurrently. I re-ran the start-mpscan and it worked just fine.
@bingbird77
@bingbird77 3 жыл бұрын
Thank you for speaking English correctly. So refreshing!
@aaronunroe5267
@aaronunroe5267 3 жыл бұрын
Great video, I'm new to powershell but found this really helpful. Thanks :)
@davegoodo3603
@davegoodo3603 3 жыл бұрын
This looks promising, I might subscribe. I have an automation project in mind that PS might be the answer.
@wisamkhalid5663
@wisamkhalid5663 3 жыл бұрын
very good introduction ..nice and easy to learn thanks
@tubefun71
@tubefun71 11 ай бұрын
Well done. Thank you.
@antoniolelo5832
@antoniolelo5832 Жыл бұрын
Very good content, apprecaited. Set-Location c:\Test2
@lynderavickland4414
@lynderavickland4414 2 жыл бұрын
I thought powershell was supposed to be easier to use >_< Thank you for the information :D
@asonofgod7267
@asonofgod7267 Жыл бұрын
Yeah but what most people think of when they think of these commands is: "But I can just create the file without using Powershell. What good does those commands do?" People are more into commands they wouldn't ordinarily do on their comnputer, things that can make things easier for them or automation etc.
@hajarsa0972
@hajarsa0972 4 жыл бұрын
Thanks.. Very helpful
@WindowsChimp
@WindowsChimp 4 жыл бұрын
Glad it helped
@edwinrosales6322
@edwinrosales6322 Жыл бұрын
Outstanding Tips
@vewidnox8128
@vewidnox8128 3 жыл бұрын
Obrigado! Ótimo vídeo
@CAZNINE2428
@CAZNINE2428 3 жыл бұрын
Actually your sounds seems Great👍👏
@terrybuchanan1
@terrybuchanan1 4 жыл бұрын
this is used for "for task automation and configuration management". can you give practical examples of such uses?
@WindowsChimp
@WindowsChimp 4 жыл бұрын
Will do sure in our upcoming videos, subscribe to the channel :)
@Shaelyncrowe
@Shaelyncrowe 2 жыл бұрын
Thanks i really did want to mess with the PowerShell
@gabrielangellerma4217
@gabrielangellerma4217 3 жыл бұрын
Hi, one question, I have a folder named ''30 - Miscellaneous'', how can I use the Get-ChildItem command when my folder includes the "-" symbol?
@dominicparkhurst8773
@dominicparkhurst8773 Жыл бұрын
This is really useful
@farhatkouif8371
@farhatkouif8371 4 ай бұрын
bravo iam from algeria merci
@sreenivasdatta733
@sreenivasdatta733 2 жыл бұрын
how can I get a list of running apps under categories of Apps in TaskManger
@corkerydan
@corkerydan 4 жыл бұрын
Thanks for the video. For such simple tasks, PS solutions seem quite verbose. I have used linux-like utilities, ported to Windows for years for such tasks. I suspect that this approach for PS is needed for the more complicated tasks that it is capable of.
@corkerydan
@corkerydan 4 жыл бұрын
Okay, my mistake. I could simply be using aliases and things would be much simpler. Also, the verb-noun system is consistent for the number of things PS is capable.
@jb_lofi
@jb_lofi 3 жыл бұрын
@@corkerydan I use both bash (mostly zsh and fish now, I suppose) and PS daily. Basically, they both require different mindsets and I have trouble swapping between them, as I sometimes forget you can do x or y in one or the other. But with tab autocompletion and aliases it's really not too bad, and PS's verbosity makes it very clear and intuitive to see what's going on. I like both, but it took me being forced to use it before I started to enjoy PS.
@ryan4572
@ryan4572 Жыл бұрын
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?
@wisamkhalid5663
@wisamkhalid5663 3 жыл бұрын
where is the link to advanced PowerShell commands? searched for it but did not find it?
@pravinsengottaiyan9244
@pravinsengottaiyan9244 2 жыл бұрын
IO meter application need to run automation after Power On the motherboard. Can you please post the code.
@coolpeoplethings
@coolpeoplethings Жыл бұрын
You earned a subscriber 😊
@jamwithjude2545
@jamwithjude2545 10 ай бұрын
Amazing
@kakitapallisaisantosh3383
@kakitapallisaisantosh3383 3 жыл бұрын
what is the command for restricting modifications
@JacksonLloyd952
@JacksonLloyd952 Ай бұрын
Good Stuff
@oglala_lakota2o
@oglala_lakota2o 3 ай бұрын
so used to linux, this is garbage lol
@Theckonestroh
@Theckonestroh 25 күн бұрын
Lol, PS already uses aliases for linux commands and dos commands. This video is useless and 4 yrs old.
@TechnoNetworkGuy
@TechnoNetworkGuy 2 жыл бұрын
Basic Powershell Commands :- kzfaq.info/get/bejne/eLuonZSgpqyYqok.html
@mataal8770
@mataal8770 4 жыл бұрын
Hi Ma'am! Hope all is good. Just wanted to ask how do you quickly go to a child directory without typing all the parent directories with the absolute path method. I believe before you can use the Drive:/~ / target using the ~symbol as a wildcard if I'm not wrong. Because I have a working folder which is on a folder structure with too many parents and I want to change directories quickly without having to type all of the parents above. Below is my folder structure. I would know if a shortcut is possible in Powershell without having to type all parents. Something like this F:/~ /24NODE JS but this is not working F:\TO STUDY\WEB DEVELOPER\WEB DEVELOPER BOOTCAMP\AON_WEB DEVELOPER BOOTCAMP Colt\24 NODE JS
@trogdorstrngbd
@trogdorstrngbd 4 жыл бұрын
If you mean that, starting in F:\, you want to be able to cd into that deep folder with a wildcard to represent all folders in between, I don't think it's possible. It would be ridiculously resource intensive to implement that kind of syntax on any drive with substantial structure, though you could create a custom function to do it and then only run it when you know in advance the drive has relatively few directories. You could also navigate to the folder in the File Explorer and type "powershell" + Enter in the Address Bar.
@WindowsChimp
@WindowsChimp 4 жыл бұрын
There isn't any wild card like this which I know, however you can copy the full URL and then paste it and delete the folders which you are going to skip. It will save you from typing the whole address again and again. Hope this helps.
@itsme7570
@itsme7570 2 жыл бұрын
Anyone else learn bash first and now trying to get good with PowerShell?
@user-qm9ux2dz5r
@user-qm9ux2dz5r 3 жыл бұрын
Is this a voice bot or a real person? Very clear 10/10 two thumbs way up
@WindowsChimp
@WindowsChimp 3 жыл бұрын
Real Person, Thanks :)
@bobbytabernacle
@bobbytabernacle 2 жыл бұрын
@@WindowsChimp what a very strange thing to just completely lie about
@aktharhussain1606
@aktharhussain1606 2 жыл бұрын
Good .. it should be bit slow
@chat._._._._._._._._._._._.4.
@chat._._._._._._._._._._._.4. 3 жыл бұрын
put "wininit" in on administrator and you get a bsod
@candyxoxo28
@candyxoxo28 3 жыл бұрын
Omg, this shows how linux commands are simple
@candyxoxo28
@candyxoxo28 3 жыл бұрын
@Michael Pilger yes, I compared
@candyxoxo28
@candyxoxo28 3 жыл бұрын
@Michael Pilger then why did you said that
@ventingshow4995
@ventingshow4995 4 жыл бұрын
Take a shot every time she says DASH!
@CC-qt6sf
@CC-qt6sf 4 жыл бұрын
You can run PS Cmdlets without "DASH" by creating your own alias for it (or use existing alias).
@jb_lofi
@jb_lofi 3 жыл бұрын
Are you trying to kill people? :D
@kevin_brown_dc3423
@kevin_brown_dc3423 3 жыл бұрын
That slowly zooming screen was messing with my head. LOL Thought I was getting light headed for a minute there.
@amankrusch5318
@amankrusch5318 3 жыл бұрын
That 13 one is'nt working it shows it does not recognise this as a comment
@chesshooligan1282
@chesshooligan1282 3 жыл бұрын
One process, two processes.
@pankajshinde6205
@pankajshinde6205 3 жыл бұрын
Hi Sir, How can I use power shell to write down PC Lock time and PC unlock time in any of the text applications?
@jeffreyraya
@jeffreyraya 3 жыл бұрын
is this for work and game ?
@cswann8
@cswann8 2 жыл бұрын
CD > Set-Location
@Stopreadingmyusername23
@Stopreadingmyusername23 2 жыл бұрын
1:10 sounds fishy 😂
@teentitans9817
@teentitans9817 3 жыл бұрын
it was just audioDoc
@walerij
@walerij 3 жыл бұрын
Space...Dash....Space....Dach....Space...Dash....
@brendank
@brendank 4 жыл бұрын
Set-path? You can just cd lol
@DeWalt1845
@DeWalt1845 3 жыл бұрын
Or #4? New-Item -ItemType Directory instead of just 'mkdir'
@ThisGuyDakota
@ThisGuyDakota 3 жыл бұрын
@@DeWalt1845 those are extremely useful, but I assume she's sticking to powershell syntax. Those are shorthand aliases for the same powershell command. It's useful for people moving from windows command line to powershell, or even linux terminal to powershell. Get-ChildItem can be called with either "dir" or "ls".
@SeverAlexandru
@SeverAlexandru 4 жыл бұрын
Mhm. How to Disable permanently Windows Defender in Windows 10
@WindowsChimp
@WindowsChimp 4 жыл бұрын
When you install a third-party security suite Windows Defender automatically gets disabled. However, when you uninstall that Defender gets reactivated. Will try to come up with a solution and post a video on it. By the way, why do you want to disable Defender permanently? It is not best but it is better than nothing.
@SeverAlexandru
@SeverAlexandru 4 жыл бұрын
@@WindowsChimp Cause I am the best Windows Defender. For me, Windows Security is useless. I don't need all that processes running in the background. I am a simple user of Windows not a company. I have nothing to hide or to protect.
@SeverAlexandru
@SeverAlexandru 4 жыл бұрын
@Computer User , me too.
@SeverAlexandru
@SeverAlexandru 4 жыл бұрын
@Computer User Once I got Windows 10 I did not like it, mainly because accessing routine settings and such was no longer a one or two-step process. An Operating System shouldn’t be something you have to relearn every couple of months. My desktop have Windows 7 on it and I wanted to keep it that way. At some point Microsoft decided they were going to update me to W10 whether I liked it or not. I’ve used and suggested Microsoft products since at least as far back as 1985 so I’m not new to using a computer. In fact if I could I’d go back to the days of MS-DOS and typing commands at a prompt, at least then you could find a book that listed all the commands and parameters.
@AbodiBhoti93
@AbodiBhoti93 3 жыл бұрын
لا أعلم لما أفهمكِ بشكل واضح .
@pascalauclair4973
@pascalauclair4973 5 ай бұрын
Windows should adopt the POSIX commands instead of that too complicated ones
@pascalauclair4973
@pascalauclair4973 5 ай бұрын
Thanks, the PS commands are absolutly too long so not convenience, I use the Linux commands instead
@amankrusch5318
@amankrusch5318 3 жыл бұрын
Clearly fake
Learn and use PowerShell with just three commands
16:08
TechThoughts
Рет қаралды 55 М.
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 12 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 59 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 168 МЛН
Windows PowerShell [01] Introduction
22:43
John Hammond
Рет қаралды 360 М.
Why Thousands of Windows users will lose their data?
4:54
WindowsChimp
Рет қаралды 47 М.
Top 5 Useful PowerShell Commands
18:52
ITPro
Рет қаралды 33 М.
5 Tips to Help You Learn Windows PowerShell
18:34
Gary Explains
Рет қаралды 41 М.
15 Command Prompt Secrets and Tricks in Windows
12:46
ThioJoe
Рет қаралды 1,6 МЛН
Learn PowerShell in Less Than 2 Hours
1:48:21
PowerShell Engineer
Рет қаралды 251 М.
9 Command Prompt Commands You Should Know!
14:22
ThioJoe
Рет қаралды 1,1 МЛН
4 millions !! Ye Video Na Dekha To Kiya Dekha tum Logo ne....Viral Video
0:13
Sangam संगम
Рет қаралды 82 МЛН
Заботьтесь о любимых❤️🫶🏾 инст:sarkison7
0:58
SARKISONCHIK.OFFICIAL
Рет қаралды 3,5 МЛН
Nika loves to eat chicken #cat #cats
0:17
Princess Nika cat
Рет қаралды 13 МЛН
宠爱天使的小丑。#天使 #小丑 #超人不会飞
0:20
超人不会飞
Рет қаралды 4,6 МЛН
Achieved the result 😂🤯 pro @_miss_tais_  #tutorial
0:31
YANA CHIRKINA
Рет қаралды 13 МЛН
POR QUEEEEE DIVERTIDAMENTE !!! #shorts
0:15
LARISSALADA - LARISSA GOMES
Рет қаралды 20 МЛН