Hello and welcome to errortools articles. Today we will talk about some great and awesome tips and tricks for the command prompt. Commands which can make your life easier and your workday more pleasant.
That being said let's dive in right into muddy waters and swim out with new knowledge.
There are a lot of reasons why you would like to read information from your motherboard, maybe you would like to upgrade your BIOS, perhaps you would like to know the serial number, maybe even the version number. Well, you can, type the following code into the command prompt and you will receive all information about your motherboard.
wmic baseboard get product,version,serialnumber,product
Getting information from the command prompt to a word processor, into an email or any other medium can be somewhat troublesome, usually, people tend to screenshot or write from a command prompt into another destination, which could induce errors, and let's be honest, it is not practical. You can copy command output directly into the clipboard ready for pasting it anywhere with | clip. So for example if you would like to paste the directory structure of your c drive command would look like: dir c: | clip, now output would be placed into the clipboard ready to be pasted anywhere needed.
When you delete data on your hard drive, what really happens is that files are marked with a marker which marks that space for new data writing, but the data itself is still present and can be brought back. This sometimes could impose problems but if you would type: cipher /w:c Windows will write random data over each marked file deleting it forever without means to be brought back.
If you would like to play with your IP address and do fancy stuff with it do the following:
ipconfig /release to release your IP address
ipconfig /renew to renew your IP address
ipconfig /flushdns to flush down DNS information and enjoy a new browsing start.
You installed a new LAN printer, or a new switch, maybe you want to check if your new site is up and running. Use ping destination in order to see if TCP packets are reaching desired information, you can use it with a specific address like ping 192.168.1.1 or you can type a web address, for example, ping google.com and see if a connection can be established.
So you learned some command prompt commands, but you do not know all of their configuration or switches? No worries, just type command/? to get a list of available switches for it. For example ipconfig/? will write you a list of available switches for ipconfig command.
Let us say that for example, you would like to copy files into a different folder, then rename some and delete others and you need to do a couple of times. Instead of writing command after command once each one is finished link them with && and they will execute one after another.
In order to scan files and repair broke or corrupted ones write in the command prompt: sfc /scannow. Please know that this command can take a long time since it is solely dependant on the number of files, their size, and the power of the computer.
Command powercfg will let you manage and see the power configuration of your computer. Just write powercfg/? and see what you need and want to change or get information about.
Windows already has some file associations defined, and some applications take over some type of files but if you want to take control into your own hand use assoc command. For example
assoc.txt= "APPLICATION NAME" will associate txt files with the provided application.
Do you have some folder or file with information that you do not want to be seen when someone opens file explorer? Use attrib +h <name of file> and hide file or attrib +h /D <folder name> to hide folder.
Want to know which drivers are installed in your system? Use driverquery and take a look.
have you shared a folder but forgot which one and where? Do not bang your head on the wall, we have a simple solution for you. just type in command prompt net share and see everything.
You do not have administrator privileges? Do you want to bypass common blockades?
runas /user:yourdomainadministrator command
That is all that we have for you today, I certainly hope you have found something useful here and that we have managed to teach you some valuable things.
“The selected disk is not a fixed MBR disk. The ACTIVE command can only be used on fixed MBR disks.”This kind of error only occurs when you try to activate a disk partition on a UEFI system partition. However, the command works only if your computer is based on BIOS/MBR. The UEFI method has no concept of the active partition and since you have a UEFI system, the disk type is GPT instead of MBR. To simply put it, your BIOS needs the MBR disk type while the UEFI needs the GPT disk type. To fix the “The selected disk is not a fixed MBR disk when trying to use the DISKPART utility” error, there are various potential fixes you can try. You might have to disable Secure Boot, convert the disk to MBR or fix the Boot Manager. For more instructions, follow the options provided below.
“Windows can’t stop your ‘Generic volume’ device because a program is still using it. Close any programs that might be using the device, and then try again later.”It is possible that the system is still using the external device – for instance, a copy operation might still be in progress, or Windows is still indexing the contents of the drive in the background or it could also be that the drive is not configured to be quickly removed. To fix this error, there are a couple of suggestions you can try. You can try to close all the open programs and file explorer windows, or you could also configure the Device Removal Policy or change its file system to FAT32. In addition, you can also try to change its drive letter or use the DISKPART utility to get the drive to be offline or simply manage the hogging process that prevents it from being safely removed. Follow each one of the given potential fixes below to resolve the error when using the Safely Remove Hardware feature.