Posts Tagged ‘command prompt’

[Quick Tip] Short cut to open ‘Command Prompt’ pointing to a folder

September 6, 2021 Leave a comment

In this article, lets learn a shortcut to open Command Prompt pointing to a folder from a Windows OS machine.

Regular Approach:
  • To open a folder from a different drive than C, we use the following approach to point to the folder.
  • Above example, I am pointing the Command Prompt to “D:\E\Practice\S2S\packages\Microsoft.CrmSdk.XrmTooling.PluginRegistrationTool.\tools” folder using ‘cd’ command.

  • Go to the folder you want to point the Command Prompt to, and hit cmd.
  • ‘Command Prompt’ window opens up pointing to the folder you hit the cmd from.


Categories: Misc Tags: ,

Restart remote machine using command prompt

We can restart a remote machine if you are domain administrator.

Consider a scenario Machine 1 & Machine 2 are part of Domain “”.

Assume “Machine 1” hanged and not even letting you to Shut down or Restart.

So to restart the machine 1,

Login as administrator to “Machine 2”

  • Open Command Prompt
  • Type shutdown /I and click Enter

Command Shutdown

Command Shutdown

  • It opens a window as below, click Add, type in the name of the remote device (i.e., Name of Machine 1), and hit OK

Remote Shutdown Dialog

Remote Shutdown Dialog

  • Choose the option “Restart/Shutdown” and enter comments
  • Click Ok