Tag: command

Command to open folder in explorer from same location.

Trick to open a GUI folder from command prompt.

In order to to open a GUI folder from command prompt and list all its content you may just enter the command start followed by a period as shown below:

start.

VICE-VERSA: Similarly, if you wish to open a command prompt from a GUI folder, you can shift-right-click on a desired folder and select “Open command window here”. This should take you to the command prompt.

Thanks,
WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , ,

Stop multiple services starting with same name

Stop multiple services starting with same name. Well I was in need to reboot a Windows 2008 server and before reboot all the application services were supposed to be stopped. I had to manually stop all services one by one. After couple of days I was requested to perform the same activity once again. This time I thought to look for an option to stop all services using single command. I found that all the application services names started in same format. Hence, below listed powershell command made my task very easy.

Get-Service | Where-Object {$_.displayName.StartsWith(“ABCD”)} | stop-Service

Note: Replace ABCD with your requirement.

Thanks,

WintelAdmin

Filed under: Windows(2003/2008/2012)Tagged with: , , , , , , , ,