≡ Menu

PowerShell : Reboot Windows

This post explains how to reboot Windows computer using PowerShell command prompt. Open PowerShell prompt by running powershell from cmd. Run the below command which reboots Windows without asking user for any confirmation. restart-computer If you want the user to confirm if reboot is required, then use -Confirm argument. restart-computer -Confirm Example Run: PS C:\> [...]

Learn how to install PowerShell help documents on your local computer and avoid looking up online. Open administrator command prompt Run powershell from cmd. Next you would see PowerShell prompt. Run the command(cmdlet) update-help. That's all you have to do. The command would do automated installation of all help files. After the installation completes,you can [...]

Find files with zero size

This post explains how to find all files with zero size from windows command prompt. forfiles /S /M * /C "cmd /c if @fsize EQU 0 echo @path" If you just want to print the file name and do not need the full path, you can use @file in the place of @path. You can [...]

This post explains how to shutdown windows 10 computer from command line. You will also learn how to cancel a shutdown issued from either from CMD or from GUI. Do the following to shutdown from CMD. Open command prompt(Open run, type in 'cmd' and press enter). Execute the below command shutdown /s This displays a message in [...]

How to flush DNS cache

This post explains how to view / flush DNS cache on the local machine from command prompt. The DNS resolver cache stores the IP addresses for the websites recently visited from this computer. The cache entries can be retrieved using the below command. ipconfig /displaydns Example: C:\>ipconfig /displaydns Windows IP Configuration www.windows-commandline.com ---------------------------------------- Record Name [...]

In Windows, one can share files to other users in the same network using SMB protocol. We can disable sharing of a folder/drive from command prompt using net share command. Open elevated windows command prompt and run the below command. C:\>net share Share name Resource Remark ------------------------------------------------------------------------------- C$ C:\ Default share IPC$ Remote IPC ADMIN$ [...]

This article shows how to disable Wireless network connection(WiFi) on a windows system from command line. We can also find the status of network connections, check if they are connected or disconnected. Open elevated administrator command prompt and run the below command netsh interface set interface name="Wireless Network Connection" admin=DISABLED After running the command, you [...]

If you are running some application or downloading something on your system, and it's going to take a while, do you want to just wait on that to be completed before you go away? Would not it be nice to have the system shutdown automatically after all your tasks are done? This post shows exactly [...]

If you have installed MinGW tools on your system and are trying to run gcc from command prompt, you might get this error - 'gcc' is not recognized as an internal or external command. This post explains how we can fix this problem once for all. The first step is to check what all you [...]

How to open command prompt

This post explains how to open a command prompt on any Windows system. Irrespective of whether you are using Windows 7 / Windows 10 / Windows 8, all the below explained methods should work. For that matter, it should just work fine in the version that would succeed windows 10(command prompt has not changed from [...]

Advertisment ad adsense adlogger