Run CMD as Administrator – Command Prompt

The elevated command prompt allows users to execute commands with administrative privileges.

By default, when opening the command line in Windows, you will not have full rights and not all commands will work.

In this short note i am showing the easiest and quickest way of how to run CMD as administrator.

This method of opening the elevated command prompt works in Windows 7, Windows 10 and higher. (more…)

Windows: `Watch` Equivalent – CMD & PowerShell

The watch command in Linux is used to execute a command periodically and show the output.

This is extremely useful if you need to track any changes in the output of a repeatedly executed command.

There is no direct equivalent for the watch command in Windows, however the same result can be achieved using the while loop in a Windows PowerShell or the for loops in a Windows command-line prompt (CMD). (more…)

Windows: Install Telnet Client – CMD & PowerShell

The telnet client in Windows is disabled by default.

Before using the telnet command in Windows it is needed to enable the telnet client, otherwise you’ll get a result similar to the below messages:

CMD: ‘telnet’ is not recognized as an internal or external command, operable program or batch file.

PowerShell: The term ‘telnet’ is not recognized as the name of a cmdlet, function, script file, or operable program.

In this note i am showing how to install the telnet client via the Windows CMD & PowerShell and how to use the telnet command to watch the Star Wars movie on the command prompt. (more…)

[SOLVED] CMD does not support UNC paths as current directories

If you try to cd to a network drive from the Windows CMD, you will get the following error:

CMD does not support UNC paths as current directories

Instead of cd command in CMD you can use a pushd command, that creates a drive mapping to the network share and then changes into a path relative to the share it creates.

In PowerShell you should be able to cd to a network drive without any errors as it natively supports UNC paths and the cd command.

In this small note i am showing how to cd to a network drive from the Windows CMD and fix the error: “CMD does not support UNC paths as current directories“. (more…)

Windows: Safe Mode – Start from Boot|Reboot & CMD

Safe Mode in Windows is a special diagnostic mode that allows to use Windows with basic drivers and can help to troubleshoot various problems.

Windows can be started in Safe Mode in different ways, depending on the OS version (Windows 10, 8, 7, XP) and the hardware vendor (Lenovo, DELL, HP, Asus, Acer).

In this note i am showing how to boot Windows 10, 8, 7, XP in Safe Mode from startup (cold boot) and how to restart it and boot it in Safe Mode from a login screen or directly from Windows.

I am also showing how to configure Windows to boot in Safe Mode from the command-line interface (CMD). (more…)