Category: PowerShell

Last updated by at .

WLinux WSL Setup Wizard for Windows 10

WLinux – The best WSL for Windows 10

A couple of Windows 10 releases back, Microsoft delivered the Windows Subsystem for Linux. The Windows Subsystem for Linux allows you to run Linux distros, like Ubuntu, Debian, Suse and others, on Windows 10. Around the Microsoft Ignite 2018 timeframe another distro was released to the Windows Store called WLinux. WLinux is a Linux environment for Windows 10 built on work by Microsoft Research and the Debian project. WLinux is a custom Linux distro built from Debian specifically for use on the WSL. While other distros are available for WSL, WLinux is the first optimized for use by users of WSL for WSL. It helps developer run Linux tooling on Windows and integrates into perfectly into Windows.

WLinux Setup

WLinux WSL Setup Wizard for Windows 10

WLinux comes with a custom setup, to prepare your environment in a very simple and easy wizard. It lets you setup some predefined software and settings and configure integration into Windows.

WLinux WSL Docker Bridge to Windows

WLinux Docker Bridge

If you want to run Docker in the Windows Subsystem for Linux, you can bring the Docker Client to the Windows Docker Engine. This allows you to run Docker directly from WSL and from PowerShell at the same time.

Microsoft Tooling

WLinux Installing Azure CLI

Of course WLinux brings the usual Linux development tools and easy setup for Ruby, NodeJS, Go, Java, Python, editors like emacs and even different shells. You can also easily add Microsoft tooling by adding Azure CLI, PowerShell Core and even Visual Studio Code.

Windows Explorer Integration and WSL Utilities (wslu)

It easily lets you to setup Windows Explorer integration and brings wslu, a collection of utilities for WSL, preinstalled. Wslu bringt the following features to the WSL

  • wslusc This is a WSL shortcut creator to create a shortcut on your Windows 10 Desktop.
  • wslsys This is a WSL system information printer to print out some basic system information.
  • wslfetch This is a WSL Screenshoot Information Tool to print information in an elegant way.
  • wslupath This is a WSL Windows path Converter that can convert Windows path to other styles of path.
  • wslview This is a fake WSL browser that can help you open link in default Windows browser.

WSLfetch

If you want to know more about WLinux, check out the website Whitewater Foundry.

Or download WLinux from the Microsoft Store.

You can also contribute on the project on GitHub.



netsh wireless password

Show Wireless Network Password on Windows 10

Today I have a simple blog post, which is more less just a note for myself. If you are join your Windows 10 device to a Wireless Network and you can’t remember the Wireless Password or Key you can recover this using the netsh command. Simply run this command to show the network key of the wireless network:

To list the wireless networks you have access to, you can use the following command:



Microsoft Learn – A Great Place To Learn!

In a world with always evolving and fast changing technology, it can be hard to keep up with the latest innovation. However, in our just we need to keep learning and be more efficient. It can be difficult to find the right resources and the right content. This is why Microsoft launched Microsoft Learn, a new platform to learn technology and keep up with the fast pace of our industry.

Microsoft Learn

Microsoft recently switch the certification programs for Azure to role-based certifications, for example Azure Administrators, Azure Developers and Azure Architects. The new Microsoft Learn platform also gives you a training and modules based on your role selection.

Microsoft Learn Guide

Microsoft Learn Guide

The platform has a guided experience, explaining you the technology with text, videos, control questions, but also with hands-on training using sandboxes in Azure for free.

Microsoft Learn Sandbox and Hands-on

Microsoft Learn Sandbox

You cannot only read and watch videos, you also have a hands-on expierence. You can get a sandbox environment to live try code or even the portal experience to work with Azure or other Microsoft technology. In this example, I have the Microsoft Learn Guide on one site and Azure Cloud Shell on the other. I don’t even need to jump out of the learning experience, I just simply can try out the code.

Get started with Microsoft Learn

The Microsoft Learning platform is much more than I just explained. And Microsoft is working hard on adding even more content for more products and services to the page. If you want to get startet with Azure Certifications or just Azure in general, Microsoft Learn is the place to be!

And the best thing, it is free. You get amazing content guide and explained with labs to even try it out by yourself. The only thing you need is time and the willingness to learn. To try it out, just visit the Microsoft Learn homepage and let me know what you think!



Microsoft Certified Azure Administrator Associate

Passed Microsoft Certified: Azure Administrator

After the announcement of the new Microsoft Azure certifications at Microsoft Inspire in Las Vegas, I decided to take the beta exam which was available to upgrade my current Azure certifications. Since I had already passed Exam 70-533 Implementing Microsoft Azure Infrastructure Solutions, I needed exam AZ-102 to do the transition. Today I got confirmation that I passed the Microsoft exam AZ-102 and earned the Microsoft Certified Azure Administrator Associate certification.

I already took the new available beta Exam for the Microsoft Certified Azure Architect at Microsoft Ignite, however for the results I still need to wait a bit.

What is Exam AZ-102 Microsoft Certified: Azure Administrator Associate

The new certifications are based on different job roles, like Azure Administrator, Azure Developer and Azure Architect. You can read more about the new Azure Certifications here on my blog.

Earning Azure Administrator Associate certification demonstrates understanding of services across the IT lifecycle, and ability to take requests for infrastructure services, applications, and environments. Candidates for this certification are typically Azure Administrators who manage cloud services spanning storage, security, networking, and compute cloud capabilities. They recommend services to use for optimal performance and scale, as well as provision, size, monitor, and adjust resources.

This is great news to start in the day while I am flying to a customer in Paris today for some more Azure work.

Exam Preparation

The skills measured in AZ-102 are a mix from AZ-100 and AZ-101 and will focus on Azure Infrastructure and deployment, Azure Integration and Azure Security.

I often get asked how I prepared for exams such as this. Obviously it makes sense to certify the knowledge you already have. I usually use Microsoft free online courses on Channel 9, Virtual Academy and now the new Microsoft Learn. However, I realized that also the Azure Documentation is a great resource to learn. I recommend you check the skills needed for the exam, in this case AZ-102 and read the specific Azure Documentation for these topics, and also try it out.



PowerShell Windows Server System Insights

Windows Server 2019 System Insights

Currently Microsoft is releasing preview versions of Windows Server 2019 to the public. In one of the latest Windows Server Insider Preview builds, Microsoft released a new feature called Windows Server System Insights. The Windows Sevrer 2019 System Insights capability is a machine learning or statistics model that analyzes system data to give insight into the functioning of your Windows Server deployment. These predictive capabilities locally analyze Windows Server system data, such as performance counters or ETW events. This is helping IT administrators proactively detect and address problematic behavior in their Windows Server environment.

Windows Admin Center System Insights CPU Capacity forecasting

System Insights runs completely locally on Windows Server. All of your data is collected, persisted, and analyzed directly on your local machine, allowing you to realize predictive analytics capabilities without any cloud-connectivity. However, if you are using for example Azure Log Analytics (OMS), you forward the events created by System Insights to Azure Log Analytics, which than can give you a unified view about your environment.



Windows Server FTP

Install FTP Server on Windows Server

Windows Server has IIS build in, which also offers a FTP server option. The File Transfer Protocol (FTP) is still a very popular protocol that allows users to simply upload and download files. Of course today you have more modern options, however it is still very often used and a lot of legacy applications still support it.

In this blog post I wanna quickly go rough how you can install the FTP Server on Windows Server. I do this on a brand new Windows Server 2019 operating system, however it didn’t really change since early Windows Server versions.

Install FTP Server Feature on Windows Server

Install FTP on Windows Server using PowerShell

First you will need to install the FTP feature. I usually simply do that using PowerShell to install the FTP Server feature in Windows Server. You can also do that using the Server Manager. However, if you want to use PowerShell, you can use the following command:



AzCopy Azure and Azure Stack

Sync Azure Blob Storage with Azure Stack Blob Storage

There are some scenarios where you want to sync Blob Storage on Azure with Blob Storage on Azure Stack. This easily be done using the AzCopy tool. AzCopy is a command-line utility designed to copy data to and from Microsoft Azure blob and table storage using simple commands with optimal performance. You can copy data from one object to another within your storage account, or between storage accounts in Azure as well as in Azure Stack.

You can get AzCopy on Windows and AzCopy on Linux. You should get at least AzCopy version 7.1.0. In my example I use the version 8.0.0 preview version, which also works fine. Make also sure that you have deployed a supported version of Azure Stack. Check out my blog about updating Azure Stack to get more information.

After the installation you will find the AzCopy.exe in the “C:\Program Files (x86)\Microsoft SDKs\Azure\AzCopy”

How to Sync and copy files from Azure to Azure Stack

You can use AzCopy with Azure Stack as you would do in Microsoft Azure. To copy and Sync files you can use the following command. Be aware that synchronous data transfer between Azure storage and Azure Stack is not supported. There for you will need to specify the the /SyncCopy or –sync-copy parameter.

Of course this works in both directions and also between two different Azure Stack storage accounts.

You can find more about AzCopy on Azure Stack on the documentation page. If you have any questions feel free to comment on the blog post. There are other great storage tools which work great with the Microsoft Hybrid Cloud environment like Visual Studio or Azure Storage Explorer. These scenarios show perfectly how Microsoft built their hybrid cloud environment. Basically you can use the same tools, processes and knowhow in the Public Cloud as well as in your datacenter.