PowerShell is a language but also a tool developed! By Microsoft to take some of the weight off its shoulders. PowerShell is an object-oriented automation engine and scripting language that helps administrators configure and automate administrative tasks. like batch processing in creating system management tools for frequently implemented processes built on the NET Framework. It automates tasks with command lets scripts executables in the installation of standard net classes a command is the most common element for PowerShell automation and performs one single task. PowerShell includes more than 200 basic commands here we discussed the top 10 PowerShell Commands I wish I knew before.
The first one is really basic it helps not so much tool to fix things with but just let you know. How you can get more help and find out more information. So this tells you a little bit about where you can download more information online. So when you’re doing a search for help on a certain command. You can tell it to go online and you can even update the help feature local to your computer.
For example, you can get more information about “Get-Process” using Get-Help Get-Process.
As well when you’re running a search for any command, for example, nbtstat- R and you’re not sure what you want. It to use what the command is you can add a space/ in a question mark, and that gives you help on that which leads us into. Here is the nbtstat space minus capital R and you want to be sure that you put it case sensitive.
If you have a lowercase you can see it does something completely different where it only lists the names and the capital R purges and reloads the cash. So this is really good to help with many different network issues that you may be having if you’re not sure if this already just typing in CLS and hit enter the clear screen
we’ve got ipconfig it’s just typing in that in pressing enter it gives you some information about your network. Now if you did I keep config space/ all and hit enter it gives you quite a bit more information. Where you’re able to see the physical address which is your Mac address continuing with the ipconfig. Something else once you know what your information is by just doing the ipconfig that we did earlier maybe.
ipconfig / release
you realize that you need to get a new IP address. So ipconfig / release will release the IP address and once the IP is released! you’ll lose network access. So then you can go into doing ipconfig / renew and press enter and that will give you a new IP address.
Now, something to do something to know with this is that you could go straight into the ipconfig renew. You don’t have to release first but there may be issues with that and you have to release first before renewing.
ipconfig /flushdns Is continuing with the IP config is flush DNS and that flushes out the DNS cache in the system. So if you’re having trouble finding network resource is online by their names it may be something with DNS and that will flush it out and hopefully fix that issue.
kind of Going hand in hand with this last command of course another IP config is to register the DNS. That forces it to re-register the DNS information on the computer. You can see that it gives you information on this. It will give you an update in the event viewer within 15 minutes if there are any issues. So if this doesn’t fix your issue you could check the event viewer a bit later on.
netsh int ip reset
You can see that it runs through several options here that it resets for you. It goes way beyond the IP config release renew that we did this kind of reset the entire IP stack. You can see the list of everything that it does and you don’t need to worry too much where you’re seeing their resetting failed and access denied. This happens in every single case but I’ve seen it fix many issues even when it’s showing that it’s got these errors.
netsh windsock reset
We’ve got netsh specifically with our windsock reset. This tells you that it’s successfully reset the Winsock catalog. But you’re going to have to restart the computer for these changes to take effect. So the windsock is short for Windows sockets and their files allow windows programs to connect to the Internet and other computers. So if you’re having problems again with network shares this could help reset that catalog a refresh it so that you can get an up-to-date list.
net stop wuauserv
This is my favorite and fixing windows updates and you may find that to fix the windows updates. You have to rename or delete these distribution folders and he’ll get an error message. Such as this one that the folder is in use. So if we go into PowerShell we can do net stop wuauserv. And press enters and it says the Windows Update service is stopping.
Then it stopped successfully so if we go back to this message we can say try again. Now it’s successfully renamed it continuing off that we can then say to start with that same service. It’s starting and then eventually successfully started. If we go back we can now see that it’s automatically recreated that folder for us.
It is a good one if you’re having problems with the computer overall is sfc / scannow . That will run a scan and repair on the entire computer system and this can take a fair amount of time depending on the speed of your computer. How big the drive is and how full it is but it will run through and it may tell you some details at the end and asking you to restart the computer this is a really good utility to run other than a Scandisk which is built into the windows you may find it this fixes a lot of issues.
if you would like to read more about it so visit here!