Microsoft Technical Guru – April 2017

The TechNet Guru April 2017 Winners have been announced.

For this round I received a Bronze medal in the Microsoft Azure category for my article Deploying a Bitbucket repo to Azure App Service.

TechNet

Read more of this post

Microsoft Technical Guru – December 2016

The TechNet Guru December 2016 Winners have been announced.

This time I won a Bronze medal in the Microsoft Azure category for my article Understanding the Azure App Service Editor.

Read more of this post

Understanding the Azure App Service Editor

This article is also available on the Microsoft TechNet Wiki.

This article won a bronze medal in The Microsoft TechNet Guru Awards! (December 2016).

Azure App Service Editor is a new tool in Microsoft Azure. It is now available in preview in the Azure Portal.

The App Service Editor was formerly known as Visual Studio Online (Monaco). The tool provides a web-based editor for Azure Web Apps (previously Azure Web Sites). This allows you to make quick edits to your sites without having to open an IDE.

This article looks back on how to edit a web app with older technology (Kudu) and how to use the preview version of App Service Editor to make edits to your sites.

Read more of this post

Microsoft Technical Guru – December 2015

The TechNet Guru December 2015 Winners have been announced and for another month I was selected as a Technical Guru in multiple categories.

This month I won Gold medals in the Windows PowerShell and Miscellaneous categories:

2015-12-Guru-PowerShell

2015-12-Guru-Misc

While another article won a Bronze medal in the Microsoft Azure category:

2015-12-Guru-Azure

These wins bring my total number of TechNet Guru medals to:

  • 5 Gold
  • 5 Silver
  • 4 Bronze

for a grand total of 14 medals. You can view this page to see where I rank amongst the winners: TechNet Guru: The Most Frequent Award Winners

Links to my past winning articles and to all my TechNet Wiki activities can be found through my TechNet Wiki User Page.

Thanks to the judges for all their hard work and kind comments. And thank you to everyone at TechNet Wiki who makes this competition possible.

Related Articles:

Azure Infographics and Visio Templates

This article is also available on the Microsoft TechNet Wiki.

This article won a bronze medal in The Microsoft TechNet Guru Awards! (December 2015).

AzureLogoThis page lists infographics/posters and Microsoft Visio templates related to Microsoft Azure.

These infographics are a great tool for learning Azure. They are PDFs that can be downloaded and printed. They measure 26 x 39 in./66.04 x 99.06 cm.

Azure Infographics

Azure Architecture Infographics

Azure Architecture Visio Templates And Tools

See Also

List Services With PowerShell

This article is also available on the Microsoft TechNet Wiki.

This article won a gold medal in The Microsoft TechNet Guru Awards! (December 2015).

Most people know you can see all the running services in a Windows operating system by employing services.msc through the Search box or Run command. From there, you can filter by Name or Startup Type to view what services are started, which are stopped, and which should have been started and perhaps failed.

You can also retrieve this information through PowerShell. The benefit of using PowertShell is that you can filter by Startup Type (startmode in PowerShell) or Status (state). For example, by using a PowerShell command you can find all services that have a Startup Type of Automatic and a Status of Stopped. This information is filtered and presented quickly to you. This saves you time from sorting and scrolling through the list of services.

Methodology

To find the services we are looking for, we will use the Get-WmiObject cmdlet within PowerShell. It is used to carry out system administration tasks and can even be run against remote computers. This cmdlet gets an instance of Windows Management Instrumentation (WMI) and any of its available sub-classes. We could also use its alias gwmi to shorten the cmdlet call.

Script To Find All Services

If you want to run a PowerShell command to find all services on your operating system, you can use a script similar to the one shown in the image below. It retrieves the Name, DisplayName, State, and StartMode of the services and then sorts them by State and Name. Setting the script up this way lets us see all of the Running and Stopped services grouped together. This provides a quick glimpse into services you suspect are causing a problem, especially if one is supposed to be Running and it is set to Stopped.

svc01

Script To Filter Services

If you need to be more precise in your searching, you can apply filters to your Get-WmiObject calls so that they return only the information you need. Using our example from above, to find all services that have a Startup Type of Automatic and a Status of Stopped we can apply a filter to return only services that meet this criteria.

svc02

Conclusion

In this article we saw how we can use the PowerShell Get-WmiObject cmdlet to find all the running services on an OS. We also saw how we can filter the data returned so it only shows the information we need to troubleshoot a problem. Using this filtering capability, we can see how much easier it is to quickly find services that meet our troubleshooting criteria.

References

Scripts

Download a copy of each PowerShell script from the TechNet Gallery:

They can also be found in my .

Related Articles

Command Prompt improvements in Windows 10

This article is also available on the Microsoft TechNet Wiki.

This article won a gold medal in The Microsoft TechNet Guru Awards! (December 2015).

With Windows 10, the Command Prompt has finally gotten some much needed improvements. The following list details many of the new items.

Enabling The New Features

To enable the new features in the Windows 10 Command Prompt, you must disable the legacy version. First launch the Command prompt by typing Command Prompt into the search box on the menu bar and clicking the app.

Within the Command Prompt, right-click the title bar and select Properties. Select the Options tab and then clear the Use legacy console (requires relaunch) check box. Close the Properties dialog box and then close the Command Prompt Window. Follow the steps above to open it once again.

CP_01

Once the Command Prompt window is open, open Properties again. You will notice that you now have selections enabled under both Edit Options and Text Selection.

CP_02

Window Upgrades

The Command Prompt window received some upgrades that allows it to be a first class citizen within Windows.

Windows Resizing

No longer are we restricted to the Windows Size we set in the Layout tab of the Properties dialog. If you click the Maximize button the window will fill the screen. Clicking minimize will restore the window to its previous size. Dragging the Command Prompt window to the top of the screen will also maximize it, as will pressing Alt + Enter.

You can also manually size the window by using the double-ended arrows on each corner to stretch and shrink the window to meet your needs.

CP_03

Transparency

The Command Prompt window can now be made transparent using an Opacity slider. Transparency will come into effect when you layer the Command Prompt window over another and when it is less than 100% (the default). The minimum value is 30%.

To set the transparency, open the Properties dialog box and select the Colors tab, The Opacity slider is at the bottom. Use the slider to set the your desired value. You can also use Ctrl+Shift+Plus(+) or Ctrl+Shift+mouse scroll up to increase the transparency. To decrease it, use Ctrl+Shift+Minus(-) or Ctrl+Shift+mouse scroll down.

CP_04

CP_05

Edit Upgrades

How you work with text inside the Command Prompt has also been upgraded.

Quick Edit Mode

This feature has been been around for a while but in Windows 10 it is now enabled by default. Quick Edit mode allows you to select text without having to Mark it first before you copy it.

CP_06

Enable Ctrl Key Shortcuts

The best new enhancement that the Command Prompt has received is the ability to use Copy and Paste (Ctrl+C, Ctrl+V) right within the command window. This has long been the bane of developers who work a lot with the Command Prompt. Check Enable Ctrl key shortcuts to copy and paste within the window as well as from the Command Prompt into other applications. If you choose to not use Quick Edit Mode then you can also use Ctrl+M to Mark the text within the window so you can begin to edit your code.

Filter Clipboard Contents On Paste

When this is enabled, in conjunction with the Ctrl Key shortcuts option, certain characters like tabs and quotes will be either converted or stripped out when you paste text into the Command Prompt window.

Word Wrap

You can now also enable word wrapping within the window through these new options in the Properties dialog box. Click Enable line wrapping selection within the Text Selection section on the Options tab. This feature comes in handy when you may need to resize your window down during your session.

Extended Text Selection Keys

With this selected, you can use common shortcuts for text selection. Using the Shift plus arrow keys allows for finer grain selection of text within the window. As well, Ctrl+A is also available within the window.

Summary

As you can see, there have many improvements to the Command Prompt in Windows 10. Many of them can be used in conjunction so play around to see which combinations work  for you.