I think more people would understand your videos if you spoke English. I don't know why you're speaking Swahili, I'm only picking up some of the words as English words that I know LOL You're bringing me back to my doss 5.0 days with command lines but there was no networks back then so all the internet stuff is new to me
Hi, I am have been watching you las few months related blockchain and programming languages. I saw you always use V.S code for coding, I have mobile of 6GB ram, can I connect it Vs code to my moblie, I cant pracitice your videos tuturials. please can you provide me right way to connect vs code to firebase, redux, next js and react etc...
For anyone wondering about that shutdown command, the flags are as follows: /r - restart (pretty self explanatory) /fw - firmware - boots to user firmware, this is what brings us to BIOS /f - force - forces shutdown of applications (doesn't asked), can result in loss of unsaved data /t - time-out - specifies timeout before shutdown in seconds, defaults to 30
Huge, huge thank you. I commented about how I'm totally blind and the one command I was really interested in, was the one he didn't actually vocalize the syntax for. Then I found this comment and got the information. Seriously appreciated!
pro tip - don't do ipconfig /release if you are remotely managing a machine. you'll disconnect yourself. Instead do "ipconfig /release && ipconfig /renew " so it will grab the new ip and you can get back into the machine!
As a retired PC tech this video is a throwback reminder to days when these commands were all you had ! It's refreshing to see them being "rediscovered" they've always been there, ever since the days of DOS and come in real handy when Windows and your network take a dump, there are even a lot more commands than these I would like to see an expanded video of those.
Anyone wanting to do Windows troubleshooting, should definitely know some basic commands and also must know some powershell commands as well. Plus with google these days you can find almost anything (except the next possible lottery number to pick and choose).
A must if you have internet as well in today's world. I love that he did this video. Lately, I have been using many DNS commands to get my internet rolling.
I'm impressed by You: 1. Straight to the point 2. Force and energy, all of your videos have a direct This is greatly appreciated, Thanks!!! Merci beacoup!!!
Chuck, I want to thank you in public, I followed up your advise about studying AWS Cloud Practitioner, I got certified on August 5th, your advise about creating a website, I did, your advise about re-formatting your resume, I followed suit. Today... I got my first job as a Cloud Engineer, I have no degree whatsoever and did not have a job experience, only labs, thank you Chuck. Your channel definitely changed my life. Thank you
Love this, fair play man congratulations. Currently studying for the CompTIA A+ 1102 and these videos are definitely helping a lot, gotta give a heap of praise for Chuck, what a legend.
Here are the equivalent PowerShell Cmdlets of the CMD Commands showed in this video. 1. ipconfig - Get-NetIPAddress 2. ipconfig /all - Get-NetIPConfiguration (only shows DNS-Server and Gateway) 3. findstr - Select-String 4. ipconfig /release - Invoke-WmiMethod -Class Win32_NetworkAdapterConfiguration -Name ReleaseDHCPLeaseAll 5. ipconig /renew - Invoke-WmiMethod -Class Win32_NetworkAdapterConfiguration -Name RenewDHCPLeaseAll 6. ipconfig /displaydns - Get-DnsClientCache (you may use '| Format-List' to get all colums) 7. clip - Set-Clipboard 8. ipconfig /flushdns - Clear-DnsClientCache 9. nslookup - Resolve-DnsName 10. cls - Clear-Host (or just Ctrl+L) 11. getmac /v - Get-NetAdapter 12. powercfg - no equivalent afaik 13. assoc - no equivalent afaik (also assoc does not seem to exist on my Windows 11 21H2 VM) 14. chkdsk - Repair-Volume 15. sfc - no equivalent afaik 16. DISM - no equivalent afaik 17. tasklist - Get-Process 18. taskkill - Stop-Process 19. netsh - no equivalent afaik but you can manipulate the Windows firewall, just search with Get-Command *firewall* 20. ping - Test-NetConnection 21. ping /t - Test-Connection -Count 100000 (Test-Connection gives you much more data, while Test-NetConnection just shows the IP and Latency to the target) 22. tracert - Test-NetConnection -TraceRoute 23. netstat - Get-NetTCPConnection 24. route print - Get-NetRoute 25. route add - New-NetRoute 26. route delete - Remove-NetRoute 27. shutdown - Stop-Computer 28. restart - Restart-Computer EDIT: Here are some goodies I just found: Expand-Archive - Extract file from a zip Archive Compress-Archive - Create a zip Archive 2023-06-16 EDIT 2: Added DHCP release/renew That is the list of PowerShell Cmdlets, that I could find. Also a nice addition, if you wanna see all options for a command just type e.g. Get-Process -[Ctrl + Space] to get a list of all available options. This works everywhere, like Tab to autocomplete. Have a nice day. 😃
As a systems engineer, I always thought Linux is the new gold rush in OS (And NetworkChuck encourages us to learn it anyway) but at the end of the day normal users will choose windows anyway... So, we still need to master windows along Linux
It depends on your field, as well. Networking guys obviously spend a lot more time with Linux and VM platforms, but help desk/managed services are almost entirely Windows. Client environments are so reliant on O365 nowadays; Windows isn't going anywhere.
@@JC-Alan just wait for the clear, orgo-, holo- tech which will replace almost all black mirror devices. People will he much more free and Linux will be the go to OS. The days of Blue Light damages and chemical addictions to these radiation devices will come to an apocalyptic end. Solar flares and the Greater Reset :) enjoy! Better get some books on off grid living, fair and loving warning!!
I've been using command line for years, but only the commands I thought I needed. Your presentation was intense! I learned a lot of new stuff and will try it out. (Thank you to all the commenters who added a few other tips!)
One set of shutdown command parameters I use when I need to reboot a machine is 'shutdown /r /t 0'... As you mentioned, /r will reboot the machine, and /t with the value 0 will do it immediately - it otherwise puts up a dialog with a timer (60 seconds, IIRC) before it commences the shutdown. The /m switch has also saved me a few times when I have lost access to a machine with no remote power management set up... You can issue this command remotely to another machine (as long as WinRM is accepting remote requests) by adding /m \\ to the parameter list. This was a great rundown of commands - some of which that I have used in the past at one time or another in my previous job - thanks for sharing, Chuck!
I've used the timer command so many times. For example, if I don't want to wait around for a computer to finish a scan or an update, I pop in the timer for when it's estimated to finish.
Been programming professionally and doing network support and IT for 30+ years, and still there are some commands on this list I didn't know about. Nicely done.
These were all awesome commands especially the last one... The command c:\ shutdown /r /fw /f /t 0 is used to restart the computer and immediately boot into the UEFI BIOS settings. The break down what each part of the command does: shutdown: This is the main command to shut down or restart the computer. /r: Specifies that the computer should restart. /fw: Indicates that the next boot should go directly to the UEFI firmware settings (BIOS). /f: Forces running applications to close without warning. /t 0: Sets the delay time before the restart to zero seconds, meaning an immediate restart. Executing this command will restart your computer and take you directly to the UEFI BIOS settings. It sure is a handy shortcut for accessing BIOS configurations without going through the usual boot process.
For Shutdown don't use "/t 0" as the command will wait for apps to close and if any app has those "save your work" dialog boxes then it will cancel the reboot. Instead use "/t 1" and it will bypass those prompts. Very useful when you have 400 apps open and cba to close them manually.
When using /t higher than 0, the /f (Force shutdown/reboot) is implied in Windows, so either '/s /f /t 0' or '/s /t 1' does the same besides the slightly longer wait.
Great vid! Some of my other favorites are: systeminfo wmic os get lastbootuptime wmic bios get serialnumber (really handy when I was working a retail service desk) net user administrator /active:yes tasklist taskkill diskpart non-commands: pressing the tab key to autocomplete pressing up to view your last command pressing CTRL + C to abort a command line process highlight text then right click to instantly copy
After 30 some years doing this stuff I was saddened you didn't mention the up arrow (or down arrow.. ) to scroll through previous commands you've entered! Very simple and very handy way to navigate cmd prompt work.. also use the left right arrow keys within a cmd line to edit, insert, etc.. keys before hitting Enter.. Love the video :) Show them some EDLIN stuff now..
@@PetrCharousek And do not forget that if press ALT+F7 clear the list of | cached commands... well, that is not related to useful commands, but useful "features"... Ahhhh, do not also forget use the TAB key: Auto-complete | rotate list of items in a folder, so you don't have to write the whole filename | folder name; even it will put the (") if the filename | folder name | path contains spaces in them!
Hi, I am an it engineer for many many years, and I still love learning. Today, I learned things from your video, thank you very much, it is so cool !!!!!! You have a new follower 🙂
I want to share with you some commands i often use. "explorer ." - open current path in explorer (dot stands for current path, two dots - for parent dir path, you can use it in any command where path is needed like "cd .." or "cd ../folder/subfolder" ) "notepad file.txt" - open file in notepad(it creates new one if it doesn't exist) ls - print all files and folders in current dictionary P.S. "clip" was a discovery for me. I find it to be a very useful
I love and admire Chucks energy and passion in the work he puts in, and yes i found this very helpful! Thank you very much, and hope to see more of these Windows/Linux CMD series 😁🔥👏
Thank you! I even learned a few things. I have been working as an SCCM administrator and I use command prompt to fix computers that no longer speak to the console. psexec and command line are the quickest way especially trying to fix systems on slower connections. Keep up the awesomeness!
My favorite command is shtudown /s /f /t 10800 I even made a batch file of it called SLEEP. /f Forces apps to close /s to shutdown /t 10800 for 3 hours. I dont like to leave my computer on all night but if something is downloading I will put the computer on a sleep timer. I have a stop sleep batch file shutdown /a to abort in case I need to cancel it. Thank you for the video. I always new basic commands like netstat and ipconfigs, but today I learned about pipelines and kill commands. I swear this ten minute video taught me more than an hour of class when I went to ITT Tech.
@@NetworkChuck hi if i do reset this pc will i be able to reset registry editor to default with keep my files options or is there a better cmd command please reply me asap would measn alot to me and could put it here please thanks
that's exactly what's this kind of video should be, i mean this are just command they are not any complex things you don't have to make them you just use them and remember them👍
decades ago I started writing batch files (like many of these commands) to do so many of these commands within my work domains. over the years, I've updated and tweaked many in order to work more efficiently. still good to see that even you Chuck, revert to the old ways when it comes to our winders environments......
in linux they're called "bash" files.. acronym for "born again shell". btw in linux all commands are in lower case because everything in linux IS case sensitive including file/directory names. thus boohoo.sy.sh is NOT the same as Boohoo.sy.sh. and note the 2 dots here. linux doesn't use extensions but there are still defaults that users typically define such as ..sh for a typical bash file. oh. no drive letters either everything in unix/linux is defined as a gigantic tree that begins under a partition and those partitions can be located on any drive that is mounted. note though that if you unmount a partition everything within it goes "bye-bye" (which is completely different than windows).
I've been exploring windows since I was grade 6 so I actually knew about 80% of all these commands. But I never knew the shutdown command can reboot into BIOS so that was cool. I always just use it for restarting quickly. Great video 👍
Dude, this is seriously awesome! Its these little things like useful everyday commands that make a world of difference. Thats why I love your channel and content!
I always create a desktop link to "shutdown /s /t 0" ... been doing it since Win9x, but in Win10+ it has real utility. In addition to being a single double-click action instead of mousing around popup Start menu and several clicks, it forces a complete shutdown, as opposed to the quick-restart "hybrid" sleep-mode shutdown that is the default now.
I've been trying to rid my computer of a file association and failed, over and over again, but thanks to this video, I SUCCEEDED! Yay! The file type is now associated with the program I want!
Excellent content as usual! I just ran though and turned a lot of these into batch files :) Instead of putting the ipconfig /displaydns into your clipboard, you could replace "| clip" with ">> %USERPROFILE%\Desktop\DNS.txt" and have the results of the command just port straight to your desktop as well.
so fucking cool ty! - im a complete noob but this finally forced me to figure out my desktop path properly which i had simply never bothered to look up when frustrated. ty sm
@@B0TZ a batch file is a script file for Windows that allows you to write commands out in advance and then save it for execution later. If you open notepad.exe and then input something youd run in the command prompt, then save it as *filename*.bat, you can run that command any time you double click it. Try a few of the commands that NetworkChuck showed in this video, it's very helpful to keep on a flash drive to troubleshoot your friends or family's devices. Personally I use "Shutdown -r -f -t 0" in a .bat file all the time for computers I know have been on all the time just in case a Windows update is preventing a restart.
I need more videos teaching me things like this in my life. I want to learn how to actually use computers for the first time in my life because of this video.
Ubuntu is cool but if you would like to learn more about Linux, I suggest you switch to Kali ....he has multiple videos on kali than any other Linux distro
He has videos on learning Linux, and the bash scripting. Also check out the links he mentions (itprotv and hack the box academy) they will help build a solid understanding.
This is awesome Chuck!! You have helped me so much through out my early IT journey. Studying to take my CompTIA A+. Hope to work my way up to CCNA soon!
Excellent format this. Quick 10minute snippet of a goldmine of information. Admittedly about 25% of the commands I already know, but this video is a great format and can be dropped into my working day with a brew and it not be so time consuming that I stop it and then get distracted when firing up youtube later on and look at something else. Keep up the excellent work Chuck. Your enthusiasm and work ethic is very admirable
@@blargh82for windows terminal you can set to run admin mode everytime. Then you can type wt in windows explorer's address bar hit enter bum admin mode and no need cd command
These were good tips, and I actually did learn something, but I feel like PowerShell is really the thing people should be investing their time learning. It's easier in a lot of ways, more powerful, and newer versions are cross platform.
You need both - in my experience Powershell scripts do not run remotely anywhere near as well as DOS. And DOS can often do with a one line what Powershell requires 2 or more lines to do.
A great alternative to Command 0 at the start is Windows Key + R ; type "cmd"; press ctrl + shift + enter. This way you can run command prompt as an administrator without using any menus!
Liked and subscribed! Great video with a nice assortment of commands. Definitely reminded me of some commands to use more often, and learned a few new things. My favorite in this video is "shutdown /r /t 0 /fw" - use it all the time.
Two more I use frequently are: logoff... which logs you off far easier than using shutdown And pathping, that is kind of a combo between tracert and ping. It'll ping the destination server and all hops between source and destination, timing each hop, for those times when it might actually be the network 😜 I did learn clip today, didn't know that one, glad to know there is a powershell set-clipboard equivalent in cmd!
Oh. Another I use on occasion is arp, it displays and modifies the arp table of the machine, arp -d will display all the Mac addresses you computer has talked to on the local network, again for those times when it's not DNS 😜😂🤣
Port 135: RPC client-server communication Port 445: Microsoft Directory Services (AD) and SMB protocol over TCP/IP Port 3389: RDP (Remote Desktop Protocol)
Thank you Chuck! Needed this video. I'm familiar with Linux commands all thanks to you because of your Linux for hackers playlist. I could mistakenly type Linux commands on my Command Prompt. This video helps to avoid that ambiguity.
@Yashvir The Pentester not true. For example: taskkill /f /im explorer.exe kills explorer. Any windows version that has taskkill will work with this. Now stop spreading misinformation.
When I needed him most, he delivered. I've been getting more into command prompt and starting my scripting journey and this game me a lot of cool ideas to play with. Thanks Chuck!
I enjoy your channel for these particular reasons. 1. The beard. 2. You really know your stuff. 3. You explain things in a way that anyone can understand. 4. Did I mention the beard. 5. The information you provide is useful to most people. 6. THE EFFEN BEARD! Yes, I have beard envy!
I have always been a GUI aficionado as it guides you through many of the steps and reduces errors, which is one reason I use Windows over Linux most of the time. However, many of these commands would have come in really handy over the years!
Keep your computer safe with BitDefender: bit.ly/BitdefenderNC (59% discount on a 1 year subscription)
🔥🔥Join Hackwell Academy: ntck.co/NCAcademy
0:00 ⏩ Intro
0:15 ⏩ Launch Windows Command Prompt
0:18 ⏩ ipconfig
0:25 ⏩ ipconfig /all
0:33 ⏩ findstr
0:49 ⏩ ipconfig /release
0:56 ⏩ ipconfig /renew
1:15 ⏩ ipconfig /displaydns
0:56 ⏩ ipconfig /renew
1:29 ⏩ clip
1:47 ⏩ ipconfig /flushdns
2:09 ⏩ nslookup
2:41 ⏩ cls
2:51 ⏩ getmac /v
3:01 ⏩ powercfg /energy
3:10 ⏩ powercfg /batteryreport
3:28 ⏩ assoc
3:51 ⏩ Is your computer slow???
3:56 ⏩ chkdsk /f
4:07 ⏩ chkdsk /r
4:17 ⏩ sfc /scannnow
4:36 ⏩ DISM /Online /Cleanup /CheckHealth
4:45 ⏩ DISM /Online /Cleanup /ScanHealth
4:51 ⏩ DISM /Online /Cleanup /RestoreHealth
5:24 ⏩ tasklist
5:38 ⏩ taskkill
5:59 ⏩ netsh wlan show wlanreport
6:18 ⏩ netsh interface show interface
6:27 ⏩ netsh interface ip show address | findstr “IP Address”
6:30 ⏩ netsh interface ip show dnsservers
6:36 ⏩ netsh advfirewall set allprofiles state off
6:43 ⏩ netsh advfirewall set allprofiles state on
6:49 ⏩ SPONSOR - BitDefender
8:19 ⏩ ping
8:30 ⏩ ping -t
8:41 ⏩ tracert
8:59 ⏩ tracert -d
9:06 ⏩ netstat
9:12 ⏩ netstat -af
9:28 ⏩ netstat -o
9:38 ⏩ netstat -e -t 5
9:47 ⏩ route print
9:58 ⏩ route add
10:13 ⏩ route delete
10:21 ⏩ shutdown /r /fw /f /t 0
Could you make some for linux too ? (ubuntu)
Damn, I just re-upped my sub.
I think more people would understand your videos if you spoke English.
I don't know why you're speaking Swahili, I'm only picking up some of the words as English words that I know LOL
You're bringing me back to my doss 5.0 days with command lines but there was no networks back then so all the internet stuff is new to me
Hi,
I am have been watching you las few months related blockchain and programming languages. I saw you always use V.S code for coding, I have mobile of 6GB ram, can I connect it Vs code to my moblie, I cant pracitice your videos tuturials. please can you provide me right way to connect vs code to firebase, redux, next js and react etc...
I have a question in the ipconfig/renew is it actually bad if i delete all interface on my computer
For anyone wondering about that shutdown command, the flags are as follows:
/r - restart (pretty self explanatory)
/fw - firmware - boots to user firmware, this is what brings us to BIOS
/f - force - forces shutdown of applications (doesn't asked), can result in loss of unsaved data
/t - time-out - specifies timeout before shutdown in seconds, defaults to 30
Huge, huge thank you. I commented about how I'm totally blind and the one command I was really interested in, was the one he didn't actually vocalize the syntax for. Then I found this comment and got the information. Seriously appreciated!
❤
pro tip - don't do ipconfig /release if you are remotely managing a machine. you'll disconnect yourself. Instead do "ipconfig /release && ipconfig /renew " so it will grab the new ip and you can get back into the machine!
This should be pinned. Great point.
I always create a .bat file:
@ECHO off
ipconfig /release
ipconfig /renew
Run as Administrator
Delete the file after the connection comes back.
I made that mistake when remote so good point, never thought of that. I always used a batch script.
@@heuristix77 or you could delete it in the code using del %filename%
Respect 👍
As a retired PC tech this video is a throwback reminder to days when these commands were all you had ! It's refreshing to see them being "rediscovered" they've always been there, ever since the days of DOS and come in real handy when Windows and your network take a dump, there are even a lot more commands than these I would like to see an expanded video of those.
Anyone wanting to do Windows troubleshooting, should definitely know some basic commands and also must know some powershell commands as well. Plus with google these days you can find almost anything (except the next possible lottery number to pick and choose).
I'm not retired and that's all I thought of this video when I started watching, I'm like, this is DOS, and even #40 "shutdown" 😃
Bro gave his ip
@@Awesomeguy7435YThe's using VPN
A must if you have internet as well in today's world. I love that he did this video. Lately, I have been using many DNS commands to get my internet rolling.
I'm impressed by You:
1. Straight to the point
2. Force and energy, all of your videos have a direct
This is greatly appreciated, Thanks!!!
Merci beacoup!!!
A lot of the commands I already knew but the additional qualifiers to those commands are so powerful. Thanks for the tips.
Chuck, I want to thank you in public, I followed up your advise about studying AWS Cloud Practitioner, I got certified on August 5th, your advise about creating a website, I did, your advise about re-formatting your resume, I followed suit. Today... I got my first job as a Cloud Engineer, I have no degree whatsoever and did not have a job experience, only labs, thank you Chuck. Your channel definitely changed my life. Thank you
This is incredible
damn. good job
Love this, fair play man congratulations. Currently studying for the CompTIA A+ 1102 and these videos are definitely helping a lot, gotta give a heap of praise for Chuck, what a legend.
Here are the equivalent PowerShell Cmdlets of the CMD Commands showed in this video.
1. ipconfig - Get-NetIPAddress
2. ipconfig /all - Get-NetIPConfiguration (only shows DNS-Server and Gateway)
3. findstr - Select-String
4. ipconfig /release - Invoke-WmiMethod -Class Win32_NetworkAdapterConfiguration -Name ReleaseDHCPLeaseAll
5. ipconig /renew - Invoke-WmiMethod -Class Win32_NetworkAdapterConfiguration -Name RenewDHCPLeaseAll
6. ipconfig /displaydns - Get-DnsClientCache (you may use '| Format-List' to get all colums)
7. clip - Set-Clipboard
8. ipconfig /flushdns - Clear-DnsClientCache
9. nslookup - Resolve-DnsName
10. cls - Clear-Host (or just Ctrl+L)
11. getmac /v - Get-NetAdapter
12. powercfg - no equivalent afaik
13. assoc - no equivalent afaik (also assoc does not seem to exist on my Windows 11 21H2 VM)
14. chkdsk - Repair-Volume
15. sfc - no equivalent afaik
16. DISM - no equivalent afaik
17. tasklist - Get-Process
18. taskkill - Stop-Process
19. netsh - no equivalent afaik but you can manipulate the Windows firewall, just search with Get-Command *firewall*
20. ping - Test-NetConnection
21. ping /t - Test-Connection -Count 100000 (Test-Connection gives you much more data, while Test-NetConnection just shows the IP and Latency to the target)
22. tracert - Test-NetConnection -TraceRoute
23. netstat - Get-NetTCPConnection
24. route print - Get-NetRoute
25. route add - New-NetRoute
26. route delete - Remove-NetRoute
27. shutdown - Stop-Computer
28. restart - Restart-Computer
EDIT: Here are some goodies I just found:
Expand-Archive - Extract file from a zip Archive
Compress-Archive - Create a zip Archive
2023-06-16 EDIT 2: Added DHCP release/renew
That is the list of PowerShell Cmdlets, that I could find.
Also a nice addition, if you wanna see all options for a command just type e.g. Get-Process -[Ctrl + Space] to get a list of all available options. This works everywhere, like Tab to autocomplete.
Have a nice day. 😃
Good stuff! I was offended he didn’t show Powershell.
ipconfig - Get-NetIPAddress = does not work on windows 11
What's the difference between cmd and power shell?
I bought you a coffee in my heart.
For a long time i have resisted powershell but I can no longer deny its great power.
This is amazing, no fluff, no gimmicks, no day in the life, just straight knowledge and value
100 years later into the future and this video will still be helping us out
Thanks for this, I work a service desk engineer and use these commands on a regular basis.
Anyone can tell us these commands, but not many can do it in a way that's fun and entertaining! You got my sub! Thank you.
As a systems engineer, I always thought Linux is the new gold rush in OS (And NetworkChuck encourages us to learn it anyway) but at the end of the day normal users will choose windows anyway... So, we still need to master windows along Linux
It depends on your field, as well. Networking guys obviously spend a lot more time with Linux and VM platforms, but help desk/managed services are almost entirely Windows. Client environments are so reliant on O365 nowadays; Windows isn't going anywhere.
@@JC-Alan just wait for the clear, orgo-, holo- tech which will replace almost all black mirror devices. People will he much more free and Linux will be the go to OS. The days of Blue Light damages and chemical addictions to these radiation devices will come to an apocalyptic end. Solar flares and the Greater Reset :) enjoy! Better get some books on off grid living, fair and loving warning!!
@@JC-Alan sadly. What the hell happened?
@@imt3206 the unstoppable monolith that is Microsoft.
@The Untraveled Path but then it would not be Linux.
I've been using command line for years, but only the commands I thought I needed. Your presentation was intense! I learned a lot of new stuff and will try it out. (Thank you to all the commenters who added a few other tips!)
How's the war going Mrs. President?
Saved video for continuous future use - NEVER take this down please!!
This is the coolest 10 minute video I've seen in months and months. Awesome. Send to my tech team to review too.
One set of shutdown command parameters I use when I need to reboot a machine is 'shutdown /r /t 0'... As you mentioned, /r will reboot the machine, and /t with the value 0 will do it immediately - it otherwise puts up a dialog with a timer (60 seconds, IIRC) before it commences the shutdown. The /m switch has also saved me a few times when I have lost access to a machine with no remote power management set up... You can issue this command remotely to another machine (as long as WinRM is accepting remote requests) by adding /m \\ to the parameter list.
This was a great rundown of commands - some of which that I have used in the past at one time or another in my previous job - thanks for sharing, Chuck!
I've used the timer command so many times. For example, if I don't want to wait around for a computer to finish a scan or an update, I pop in the timer for when it's estimated to finish.
OMG...working in IT for few years and still learn something from this video. Nice work!
"years" !=== "experience"
Been programming professionally and doing network support and IT for 30+ years, and still there are some commands on this list I didn't know about. Nicely done.
These were all awesome commands especially the last one...
The command c:\ shutdown /r /fw /f /t 0 is used to restart the computer and immediately boot into the UEFI BIOS settings.
The break down what each part of the command does:
shutdown: This is the main command to shut down or restart the computer.
/r: Specifies that the computer should restart.
/fw: Indicates that the next boot should go directly to the UEFI firmware settings (BIOS).
/f: Forces running applications to close without warning.
/t 0: Sets the delay time before the restart to zero seconds, meaning an immediate restart.
Executing this command will restart your computer and take you directly to the UEFI BIOS settings.
It sure is a handy shortcut for accessing BIOS configurations without going through the usual boot process.
can it be made to run as a batch file at startup so you can select another OS in your boot manager
Thank you man, some of these commands didn't know before, it's was good to catch up such a video
Could have used this when I was studying for the A+! Good stuff
Always love a Network Chuck tutorial, straight to the point and easy to follow.
For Shutdown don't use "/t 0" as the command will wait for apps to close and if any app has those "save your work" dialog boxes then it will cancel the reboot. Instead use "/t 1" and it will bypass those prompts. Very useful when you have 400 apps open and cba to close them manually.
Alternatively, use "/f", and it will force the shutdown with no delay
When using /t higher than 0, the /f (Force shutdown/reboot) is implied in Windows, so either '/s /f /t 0' or '/s /t 1' does the same besides the slightly longer wait.
Great vid! Some of my other favorites are:
systeminfo
wmic os get lastbootuptime
wmic bios get serialnumber (really handy when I was working a retail service desk)
net user administrator /active:yes
tasklist
taskkill
diskpart
non-commands:
pressing the tab key to autocomplete
pressing up to view your last command
pressing CTRL + C to abort a command line process
highlight text then right click to instantly copy
Lot of valuable information in just 11 minutes. Highly appreciated!!
I've been using windows for decades since DOS and some of the commands are new to me. Thanks Chuck!
because they ARE new 😅
After 30 some years doing this stuff I was saddened you didn't mention the up arrow (or down arrow.. ) to scroll through previous commands you've entered! Very simple and very handy way to navigate cmd prompt work.. also use the left right arrow keys within a cmd line to edit, insert, etc.. keys before hitting Enter.. Love the video :) Show them some EDLIN stuff now..
👍👍🤣 We're such geeks 😉😉
my guess is that up and down arrows are not exclusively to windows
And what else, pressing F7 in the Command Prompt lists previously entered commands. Very helpful sometimes for me 😉👍
Doskey is something I miss, used to be some cool things with that command
@@PetrCharousek And do not forget that if press ALT+F7 clear the list of | cached commands... well, that is not related to useful commands, but useful "features"... Ahhhh, do not also forget use the TAB key: Auto-complete | rotate list of items in a folder, so you don't have to write the whole filename | folder name; even it will put the (") if the filename | folder name | path contains spaces in them!
I love how you explain things all other people who make tutorials never get to the point you however get right to it, so big thank you
Hi,
I am an it engineer for many many years, and I still love learning. Today, I learned things from your video, thank you very much, it is so cool !!!!!! You have a new follower 🙂
Love the presentation style, great video!
I want to share with you some commands i often use.
"explorer ." - open current path in explorer (dot stands for current path, two dots - for parent dir path, you can use it in any command where path is needed like "cd .." or "cd ../folder/subfolder" )
"notepad file.txt" - open file in notepad(it creates new one if it doesn't exist)
ls - print all files and folders in current dictionary
P.S. "clip" was a discovery for me. I find it to be a very useful
Great video! Commands 17-20 (SFC scannow, DISM) are go-to commands when having issues with
Windows, just what Microsoft tech support will go through.
Honestly did not know about shotdown straight to the BIOS. Lovely ♥️
Same, how am I finding about this just right now?
Love the end one
Finally some usefull info and knowledge, THANK YOU YT RECOMMENDS!
I love and admire Chucks energy and passion in the work he puts in, and yes i found this very helpful! Thank you very much, and hope to see more of these Windows/Linux CMD series 😁🔥👏
Thank you! I even learned a few things. I have been working as an SCCM administrator and I use command prompt to fix computers that no longer speak to the console. psexec and command line are the quickest way especially trying to fix systems on slower connections. Keep up the awesomeness!
Ping -w for wait is helpful if lateness is higher then the standard ms. Great video.
Dcdiag was good. Thst has some cool options. Lots of great command lines.
My favorite command is shtudown /s /f /t 10800 I even made a batch file of it called SLEEP. /f Forces apps to close /s to shutdown /t 10800 for 3 hours. I dont like to leave my computer on all night but if something is downloading I will put the computer on a sleep timer. I have a stop sleep batch file shutdown /a to abort in case I need to cancel it.
Thank you for the video. I always new basic commands like netstat and ipconfigs, but today I learned about pipelines and kill commands. I swear this ten minute video taught me more than an hour of class when I went to ITT Tech.
I can never learn enough. That is why I am a huge fan of your content. Thanks NetworkChuck!!!
Amazing video and content. Thank you! 💪🏽
Thanks Keith! Good to hear from you!
@@NetworkChuck hi if i do reset this pc will i be able to reset registry editor to default with keep my files options or is there a better cmd command please reply me asap would measn alot to me and could put it here please thanks
For the shutdown command you can also use the /o switch to go straight to the Advanced options boot where you can boot into safe mode etc.
"Put that sucker into beast mode" I going to say that every time I launch AD at work. Thank you for your work in the IT community.
I had no idea the command prompt was this useful, thank you so much for this video!
I'm studying for my A+ how did you know I needed this!?
1002 catch-up crew?
Passed my 1101 now I'm studying for 1102
Chuck knows and sees all 🤣
network chuck is awesome, on the A+ you don't have to know switches however, just the actual ports, don't over think it and good luck!!!
what sources do u use to study A+ ?
that's exactly what's this kind of video should be, i mean this are just command they are not any complex things you don't have to make them you just use them and remember them👍
decades ago I started writing batch files (like many of these commands) to do so many of these commands within my work domains. over the years, I've updated and tweaked many in order to work more efficiently. still good to see that even you Chuck, revert to the old ways when it comes to our winders environments......
in linux they're called "bash" files.. acronym for "born again shell". btw in linux all commands are in lower case because everything in linux IS case sensitive including file/directory names. thus boohoo.sy.sh is NOT the same as Boohoo.sy.sh. and note the 2 dots here. linux doesn't use extensions but there are still defaults that users typically define such as ..sh for a typical bash file. oh. no drive letters either everything in unix/linux is defined as a gigantic tree that begins under a partition and those partitions can be located on any drive that is mounted. note though that if you unmount a partition everything within it goes "bye-bye" (which is completely different than windows).
@@leecowell8165 ok
I have to admit I'm very impressed with the reboot into BIOS command. Slick.
Bro solid vid with exact 10 mins even including sponsor and everything. Really cool!
I've been exploring windows since I was grade 6 so I actually knew about 80% of all these commands. But I never knew the shutdown command can reboot into BIOS so that was cool. I always just use it for restarting quickly. Great video 👍
Dude, this is seriously awesome! Its these little things like useful everyday commands that make a world of difference. Thats why I love your channel and content!
YES! This is great! Can you do one for Powershell as well?!
Yes!!
As far as I know, you can do all this the same in PowerShell 😀, just open PowerShell instead CMD in Administrator mode ofcourse 😎
Sure you can, PowerShell can do the same what CMD and beyond :)
I know some of these from the DOS days. I like the energy he brings into the video, like a kid excited with a new toy. Awesome content.
This was my first NetworkChuck video experience. Very useful. You are Awesome!
As systems engineer myself, these are excellent commands to learn. I'm still learning 15 yrs later.
I swear you are a gem on this RUclips space! I’ve learned so much from you and my IT confidence is going through the roof because of your videos 👍🏿
Œ
I always create a desktop link to "shutdown /s /t 0" ... been doing it since Win9x, but in Win10+ it has real utility. In addition to being a single double-click action instead of mousing around popup Start menu and several clicks, it forces a complete shutdown, as opposed to the quick-restart "hybrid" sleep-mode shutdown that is the default now.
That shutdown script at the end is so handy! I can't believe I didn't know about that.
I've been trying to rid my computer of a file association and failed, over and over again, but thanks to this video, I SUCCEEDED! Yay! The file type is now associated with the program I want!
Excellent content as usual! I just ran though and turned a lot of these into batch files :) Instead of putting the ipconfig /displaydns into your clipboard, you could replace "| clip" with ">> %USERPROFILE%\Desktop\DNS.txt" and have the results of the command just port straight to your desktop as well.
Add "&& notepad %USERPROFILE%\Desktop\DNS.txt" at the end and notepad will open it for you.
so fucking cool ty! - im a complete noob but this finally forced me to figure out my desktop path properly which i had simply never bothered to look up when frustrated. ty sm
Nice!
what is batch file and what are you guys talking about if you could explain
@@B0TZ a batch file is a script file for Windows that allows you to write commands out in advance and then save it for execution later. If you open notepad.exe and then input something youd run in the command prompt, then save it as *filename*.bat, you can run that command any time you double click it. Try a few of the commands that NetworkChuck showed in this video, it's very helpful to keep on a flash drive to troubleshoot your friends or family's devices. Personally I use "Shutdown -r -f -t 0" in a .bat file all the time for computers I know have been on all the time just in case a Windows update is preventing a restart.
Thank you so much Chuck. I've learned so much with your videos, in fact, I took your advice and I'm about to start with CCNA. Keep up the great work.
The Windows CLI is powershell, not cmd. Cmd is only really still around for legacy support reasons.
Really thankful for this video.❤
I need more videos teaching me things like this in my life. I want to learn how to actually use computers for the first time in my life because of this video.
Hey Chuck ,
Could you make some for linux terminal as well? I recently shifted to ubuntu and would like to learn from you
Ubuntu is cool but if you would like to learn more about Linux, I suggest you switch to Kali ....he has multiple videos on kali than any other Linux distro
@@iteeruzz2006
first, kali isn't for every day use. second, all commands in kali will work in ubuntu .
He has videos on learning Linux, and the bash scripting.
Also check out the links he mentions (itprotv and hack the box academy)
they will help build a solid understanding.
This is awesome Chuck!! You have helped me so much through out my early IT journey. Studying to take my CompTIA A+. Hope to work my way up to CCNA soon!
I’m studying for my comptia A+ too, any advice?
@@ellwales7057 never go to look at pingpong show in thailand.
@@janfranko4569 lol
Excellent format this. Quick 10minute snippet of a goldmine of information. Admittedly about 25% of the commands I already know, but this video is a great format and can be dropped into my working day with a brew and it not be so time consuming that I stop it and then get distracted when firing up youtube later on and look at something else. Keep up the excellent work Chuck. Your enthusiasm and work ethic is very admirable
Man, this video still holds so much value. Thank you.
The final command is the best one. Some computers have a different button to get into the bios. The “shutdown /r /fw /f /t makes it easier.
For command prompt:
Windows + R
type cmd
Ctrl + Shift + Enter (For administrator mode)
cool tip, I always thought u can't run as admin mode in run box
Same thing but for Windows Terminal (I prefer using Terminal instead of Command Prompt)
Windows + R
type wt
Ctrl + Shift + Enter
@@blargh82for windows terminal you can set to run admin mode everytime. Then you can type wt in windows explorer's address bar hit enter bum admin mode and no need cd command
This is super useful and powerful! Thanks Chuck! You’re awesome! :)
Thanks Chuck! This was pretty useful.
You certainly are a fast typer.
Time saver.
Holding the right arrow key down will retype the last command.
These are the best pro life tips for using DOS commands. I'm not a nerd or geek, but I work on computers quite often. So these commands are amazing.
DISM /Online /Cleanup /CheckHealth
error 87 , what does that mean ???
These were good tips, and I actually did learn something, but I feel like PowerShell is really the thing people should be investing their time learning.
It's easier in a lot of ways, more powerful, and newer versions are cross platform.
I was just about to say this. But tbf, powershell will still run anything cmd will.
You need both - in my experience Powershell scripts do not run remotely anywhere near as well as DOS. And DOS can often do with a one line what Powershell requires 2 or more lines to do.
135 & 445 are used for file sharing on windows, and 3389 is your remote control (RDP), actually controlling another computer.
A great alternative to Command 0 at the start is
Windows Key + R ; type "cmd"; press ctrl + shift + enter.
This way you can run command prompt as an administrator without using any menus!
Now, i haven't used Windows in a while, but I swear the CTRL+Shift+Enter didn't work with run. Time to check again
One of my very favorite shortcuts. I also like shutdown /r /t 0 for restart.
Came here just to know how to reset into bios, now i feel like i've learned things i shoudn't... That's Great!
Use the UP ARROW to repeat last command if you want to run it again or add switches. No need to retype from scratch.
Liked and subscribed! Great video with a nice assortment of commands. Definitely reminded me of some commands to use more often, and learned a few new things. My favorite in this video is "shutdown /r /t 0 /fw" - use it all the time.
Two more I use frequently are:
logoff... which logs you off far easier than using shutdown
And pathping, that is kind of a combo between tracert and ping. It'll ping the destination server and all hops between source and destination, timing each hop, for those times when it might actually be the network 😜
I did learn clip today, didn't know that one, glad to know there is a powershell set-clipboard equivalent in cmd!
Oh. Another I use on occasion is arp, it displays and modifies the arp table of the machine, arp -d will display all the Mac addresses you computer has talked to on the local network, again for those times when it's not DNS 😜😂🤣
Port 135: RPC client-server communication
Port 445: Microsoft Directory Services (AD) and SMB protocol over TCP/IP
Port 3389: RDP (Remote Desktop Protocol)
It would be nice to have a PDF or word doc of this, I know there are similar online but this was a nice little collection,
Nice vid thanks.
Thank you Chuck! Needed this video. I'm familiar with Linux commands all thanks to you because of your Linux for hackers playlist. I could mistakenly type Linux commands on my Command Prompt. This video helps to avoid that ambiguity.
I do this lol
5:44 you can use /im instead of /pid but you need to supply the exe name instead of the pid in that case.
@Yashvir The Pentester not true. For example: taskkill /f /im explorer.exe kills explorer. Any windows version that has taskkill will work with this. Now stop spreading misinformation.
When I needed him most, he delivered. I've been getting more into command prompt and starting my scripting journey and this game me a lot of cool ideas to play with. Thanks Chuck!
i appreciate the amount of information that fit into the small timeframe, but the video at x.75 speed is a vibe
I'm going to take a year off and just watch all your videos. These are gold. TY for these!
You're flowing bro. Smashed this video. Well done.
Great video,better than most of the other RUclipsrs,direct to the point,thank you for the video❤
Always find myself back to this video for some reason when studying lol Thanks CHUCK!!
That last command.... how many times I needed it and never knew it existed! Hitting all the F keys until I get the right one...
+1 SUB! as a tech support i clipped that link on my notepad, definitly gonna help me solve my clients issues, or mine. thank you!!
With all due respect: I love you, Chuck! Thank you.
SFC and DISM have helped fix bizarre issues for me on lots of occasions.
I enjoy your channel for these particular reasons. 1. The beard. 2. You really know your stuff. 3. You explain things in a way that anyone can understand. 4. Did I mention the beard. 5. The information you provide is useful to most people. 6. THE EFFEN BEARD! Yes, I have beard envy!
Yea by this point I’m just mindblown 9:54 … this has gots to be the best vid I ever seen as far as commands
I have always been a GUI aficionado as it guides you through many of the steps and reduces errors, which is one reason I use Windows over Linux most of the time. However, many of these commands would have come in really handy over the years!