Category: Software

PowerShell 7 Installer

How to Install and Update PowerShell 7

Currently, you can install the cross-platform version PowerShell Core 6 on Linux, macOS, and Windows. Early April the PowerShell team announced the next release called PowerShell 7. PowerShell 7 is built on .NET Core 3 and brings back many APIs required by modules built on .NET Framework so that they work with .NET Core runtime. While PowerShell Core 6 was focusing on bringing cross-platform compatibility, PowerShell 7 will focus on making it a viable replacement for Windows PowerShell 5.1 and bringing near parity with Windows PowerShell. Here is how you can install and update PowerShell 7 (preview) on Windows and Linux using a simple one-liner.

If you want to know more about the roadmap, check out Steves blog post.

One great example of how cross-platform PowerShell can work, check out my blog post: How to set up PowerShell SSH Remoting.

Install PowerShell 7 (Preview)

As mentioned PowerShell 7 is currently in preview. You can download and install it manually from GitHub. However, the easiest way to install it is to use the following one-liners created by Steve Lee (Microsoft Principal Software Engineer Manager in the PowerShell Team). You can also use the same one-liners with different parameters to install the current GA version of PowerShell 6.

If you are installing the PowerShell 7 Preview, this will be a side by side installation with PowerShell 6. You can use the pwsh-preview command to run version 7.

One-liner to install or update PowerShell 7 on Windows 10

Install and Update PowerShell 7

You can use this single command in Windows PowerShell to install PowerShell 7. The difference between the installation of version 6 versus version 7 is the -Preview flag.

iex "& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI -Preview"

There are additional switches to, for example, install daily builds of the latest PowerShell previews.

-Destination
The destination path to install PowerShell Core to.

-Daily
Install PowerShell Core from the daily build.
Note that the ‘PackageManagement’ module is required to install a daily package.

-Preview
Install the latest preview, which is currently version 7. This will

-UseMSI
Use the MSI installer.

-Quiet
The quiet command for the MSI installer.

-DoNotOverwrite
Do not overwrite the destination folder if it already exists.

-AddToPath
On Windows, add the absolute destination path to the ‘User’ scope environment variable ‘Path’;
On Linux, make the symlink ‘/usr/bin/pwsh’ points to “$Destination/pwsh”;
On MacOS, make the symlink ‘/usr/local/bin/pwsh’ points to “$Destination/pwsh”.

One-liner to install or update PowerShell 7 on Linux

Install PowerShell 7 on Linux

You can use this as a single command to install PowerShell 7 on Linux

wget https://aka.ms/install-powershell.sh; sudo bash install-powershell.sh -preview; rm install-powershell.sh

Depending on your distro you are using, this will register Microsoft’s pkg repos and install that package (deb or rpm).

You can also use the following switches:

-includeide
Installs VSCode and VSCode PowerShell extension (only relevant to machines with a desktop environment)

-interactivetesting
Do a quick launch test of VSCode (only applicable when used with -includeide)

-skip-sudo-check
Use sudo without verifying its availability (hard to accurately do on some distros)

-preview
Installs the latest preview release of PowerShell side-by-side with any existing production releases

To currently run the PowerShell Preview, you can run the following command:

pwsh-preview

After Installing

After you have installed PowerShell 7, also make sure to update PowerShellGet and the PackageManagement module.

Remember PowerShell 7 is still currently in preview, if you have any questions, please let me know in the comments.



Nigel Frank Migrating and extending with Microsoft Azure

Article about Azure Migration on Nigel Frank International

This week my blog post on Azure Migration and Hybrid Cloud on the Nigel Frank International blog went live. The title of the article is, Migrating and extending your on-premises environment with Microsoft Azure. In that blog post, I what your advantages are by using the cloud and some of the different approaches to use Microsoft Azure. Before I then go deeper on different Azure scenarios and topics.

I cover a lot of different Azure options like:

Nigel Frank International

The public cloud is becoming more and more important for companies that want to stay agile and flexible to meet their business demands. But if a company decides to move to the public cloud, what are the best ways to migrate to Microsoft Azure? In this blog post, we’ll take a quick look at what services Microsoft offers to make your cloud migration easier.

It was fun to work with the team at Nigel Frank International and I hope you like the article.



Download the new Windows Terminal Preview

Install the new Windows Terminal (Preview)

At Microsoft Build 2019, the team announced a new Windows Terminal which will be open-source. There are a couple of improvements which are coming to the new Windows Terminal like; multiple tabs support, GPU accelerated DirectWrite/DirectX-based text rendering engine, advanced configuration settings, and much more. It allows you to run different shells like Windows PowerShell, PowerShell Core, Command Prompt, WSL, and also WSL 2. Today you can download the Windows Terminal Preview from the Microsoft Store. It is still a very early preview and the team, as well as the community, are still working on it. The team’s goal is to work with the community and launch version 1.0 end of 2019. Here is how you can install the new Windows Terminal.

Windows Terminal is a new, modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL.

You can find more information about it here on the Microsoft announcement blog.

Download and Install the Windows Terminal

You were able to download the sources for the terminal from GitHub and build it yourself. However, the preview release in the Windows Store makes it much easier to try it out and stay more up to date.

Windows Terminal

Windows Terminal will be delivered via the Microsoft Store in Windows 10 and will be updated regularly, ensuring you are always up to date and able to enjoy the newest features and latest improvements with minimum effort.

Provide Feedback and get involved

Windows Terminal is a new, modern, feature-rich, productive terminal application for command-line users. It includes many of the features most frequently requested by the Windows command-line community including support for tabs, rich text, globalization, configurability, theming & styling, and more.

The Terminal will also need to meet our goals and measures to ensure it remains fast, and efficient, and doesn’t consume vast amounts of memory or power.

You can file bugs and share feedback with the community and us, as well as fix issues and make improvements on GitHub. If you come across any bugs or want to share feedback, you can do that on GitHub issues for detailed issues/discussions or with the Microsoft Store release in the Feedback Hub. You join the development on GitHub.

If you want to use the new font which was designed for terminals and code editors like VS Code, check out my post about Cascadia Code.

Azure Cloud Shell

Windows Terminal Azure Cloud Shell

Windows Terminal Azure Cloud Shell

I also want to mention that you can run the Azure Cloud Shell directly from the terminal.

Try out the new terminal today, and if you have any questions, please let me know in the comments.



SurfaceBook

10 reasons why the Surface Book is great for IT Pros

As I mentioned in my little Surface Book review a couple of days ago, I really like the Microsoft Surface Book and it is my daily driver since November 2015. The Surface Book has a lot of reasons why it is a great device, but I want to highlight  some reasons why it is not only a great device for artists, but also for the IT professionals.

The performance is incredible

SurfaceBook

As many of you know I am using my Surface Book for a lot of demos and also testing a lot of stuff. I run Hyper-V on my Windows 10 machine and it is extremely fast. Virtual Machines boot up in just a couple of seconds and if you for example run the new Nano Server in a Virtual Machine, the installation of a new Nano Server Virtual Machine is done in under 3 seconds. If you want to run more Virtual Machines on your device, make sure you get the 16GB RAM model. Not only do you get plenty of power with the Intel Core i5 or Core i7 chip, the NVMe SSD disk is blazing fast and can be up to 1TB.

The touchscreen with the pen support is great

Surface Pro and Surface Book

If you have a touch screen machine you just get used to use your fingers while browsing or writing stuff down in OneNote. The pen is just perfect for taking notes or doing presentations or workshops with customers. Since I got my first Surface device, I never really used a whiteboard or something like that. I just used OneNote and a projector to draw and after the meeting I could easily sent the drawings to all the attendees.

Tablet Mode can be handy

Surface Book Tablet Mode

I wouldn’t consider myself as a huge tablet user, but there are several scenarios where you will love the possibility to convert your Surface Pro or Surface Book into a tablet. For my job I travel a lot and I realized, I used the tablet mode a lot while for example being in a plan or train, to just read some stuff or watch movies. This is also really handy if you sit at home in front of the TV or if you are in a hotel room and just wanted to watch some Netflix, before you go to sleep. But there are two other very useful scenarios for me. The first one is while I am doing presentations for customer I use the Surface Pen a lot, but instead of sitting in front of my Surface Book, I can take the keyboard of and walk around while doing the presentation and draw on my Surface. The second one is when I am in a meeting and I want to take handwritten notes, the tablet mode is perfect, I can just use it as a piece of paper, which makes it much more attractive to write on and also I am not hiding behind a computer screen. By the way, the tablet or screen it self is extremely light so even holding it with one hand is great.

Enterprise Security and Windows Hello

Surface Book Windows Hello

Well if you are working and traveling a lot, security is a very important part. Protecting your data using the Surface Book is very easy, since it comes with a TPM 2.0 chip you can encrypt your SSD and all the data stored on. The other thing I really like is the camera supporting face detection using Windows Hello. First I thought this feature is just a nice toy, but hey, I really got used to it, I just open my Surface Book and I get logged in without typing the password.

Battery Life is awesome

When did you get a thing and light device and you didn’t had to worry about battery life for a whole day? With the Surface Pro 3 I was very close to it, but the Surface Book finally gets me trough a whole day without the need to recharge. I get around 8-12 hours of battery life depending on the workload I am running. In the morning I can leave without a power supply and can work the whole day.

The Screen

Surface Book

This is another great feature of the Surface Book, the screen is sharp and the colors are amazing, but this is not the only reason I love the Surface Book screen. The Surface Book comes with a 13.5” PixelSense display with a 3:2 aspect ratio and a resolution of 3000 x 2000 (267 PPI). This gives you enough space on the screen to get some work done, without making the device to big. Especially the 3:2 aspect ratio is one thing I really like, especially while writing and reading.

Connectivity and accessories

Microsoft also adds a lot of great accessories to the Surface product line. The Surface Book comes with 2 USB 3.0 ports, a full-sized SD card slot, a headset jack, a Mini DisplayPort and a Surface Connect port, which allows you to connect the power supply or the Surface Docking station. It also used the latest Wifi and Bluetooth connections to connect wirelessly to networks or devices. The Surface Book comes also with great cameras, stereo microphones and speakers which make the device great for video or voice conference calls. But also the small things you will start to like, for example the additional USB port in the power supply, which allows you to charge other devices like your smartphone or your Microsoft Band, without having to carry another charger.

The Docking Station makes it a great workstation

Surface Book Home Office

If I am at home or in our company office I can connect the Surface Book to the Surface Docking Station, which turns it into a full workstation. At home I use 2 Dell 27” screens using the 2 Mini DisplayPort adapters on the Surface Docking station. I also like the additional USB 3.0 ports you get with the docking station.

Perfect device to travel

Surface Book Travel

The Surface Book and also the Surface Pro are in my opinion some of the best options if you travel a lot. First the devices are light and have a small footprint, so carrying them is easy. But they still have a lot of performance to run some heavy workloads where ever you are, and with the battery life you get, even long flights or long work days are not a problem at all. But what really makes it great, you just need one device, you don’t have to carry a notebook and a tablet to have all the options, you can simply unplug the keyboard and you can go from laptop mode to tablet mode. With Windows 10 owning a 2in1 or 3in1 devices makes even much more fun.

Deliver great presentation using the Wireless Display Adapter

Surface Book Presentation

As I mentioned before, I use the Surface Book for a lot of presentations and workshops. With the Microsoft Wireless Display Adapter you can even do this wirelessly, which makes especially workshops more interactive and fun.



Cisco Champion 2016

Cisco Champion 2016

Just had a look at my inbox and found out that I received the Cisco Champion Award for 2016, which is my third Cisco Champion Award in a row, after 2014 and 2015. I feel highly honored to get this award and looking proud into the future. Since I do a lot of Datacenter projects with Microsoft and Cisco technologies I can see that the new partnership between Cisco and Microsoft is really paying off and we can expect even better integration and services from both companies.

Hi Thomas Maurer

 

Because of your impactful and valuable contributions to the IT community, you have been chosen out of hundreds of nominees to be part of the 2016 Cisco Champion program. Congratulations!

 

Cisco Champions are a group of highly influential IT technical experts who enjoy sharing their knowledge, expertise, and thoughts across the social web and with Cisco. The Cisco Champion program encompasses a diverse set of areas such as Data Center, Internet of Things, Enterprise Networks, Collaboration, and Security. Cisco Champions are located all over the world.

 



PowerShell PackageManagement Add PackageSource

How to install SysInternals using PowerShell Package Management

I already made a post in April 2014 where Microsoft announced the first preview of the Windows Management Framework 5.0. At this time, the Windows Management Framework V5 Preview came with a module called OneGet, which allowed you to install and manage packages. In the latest versions, the name from OneGet changed to PackageManagement. With Windows 10, you can now make use of this module. This helps you to install software and features. This can also be used to install Sysinternals using PowerShell.

The Sysinternals web site was created in 1996 by Mark Russinovich to host his advanced system utilities and technical information. Whether you’re an IT Pro or a developer, you’ll find the utilities to help you manage, troubleshoot, and diagnose your Windows systems and applications.

Packagemanagement PowerShell Commands

By default you get the PowerShell Gallery as a source for Packages, the first thing you can do is add the chocolatey Repository to your Package Sources:

Register-PackageSource -Name chocolatey -ProviderName Chocolatey -Location http://chocolatey.org/api/v2/

After you have added Chocolatey, you can search for the Packages you want to use. In my case, I want to install SysInternals using the following command:

Find-Package -Name Sysinternals

After you found your Package you can also install this Package using the following command:

Find-Package -Name Sysinternals | Install-Package

PowerShell PackageManagement Add PackageSource

After Package Manager is finished downloading and unpacking the zip file you can find it here:

C:\Chocolatey\lib\sysinternals.2015.07.20\tools

SysInternals

So if you like Sysinternals and PowerShell as much as I do, this is the way to go and helps you to get started very quickly. I hope this gives you an idea of how you can install the SysInternals tools using PowerShell.



Microsoft KiPi

Microsoft Learning: Know it. Prove it. Challenge for Hybrid Cloud

Some weeks ago I passed Microsoft Exam 70-533 Implementing Microsoft Azure Infrastructure Solutions which means I am now Microsoft Certified on Microsoft Azure technology. Microsoft has just lunched a new certification challenge called Know it. Prove it. which leverages free resources at the Microsoft Virtual Academy and take  Microsoft exams afterwards.

A few things about the challenge:

  • There are 8 different learning tracks, ranging from Cloud Development over Web Development to Hybrid Cloud or Office 365.
  • Each track consists of a learning module which is accessible from anywhere so learners can watch video tutorials and do assessments whenever is easy!
  • During KiPi, learners can track their progress, earn badges and points, compete against other challenges, and share experiences with others who are participating.
  • Although the challenge officially kicked off on February 1st, it’s not too late to get started.
  • The “Know It” portion of the challenge runs all of February and the “Prove It” part (i.e. get certified) will start March 1st and end on March 31st

For all Virtualization and Cloud Architects and Engineers this makes really sense to prepare what is coming next for Microsoft Cloud or Windows Server as well as System Center and Hyper-V. So checkout the the Know it. Prove it. challenge on the Microsoft Virtual Academy.