Last updated by at .

  • What's new in Hyper-V 2016
  • Microsoft Azure

Tag: Windows

PowerShell New-TemporaryFile

Create a tempfile with PowerShell

When I was using PowerShell in the early stages it was limited in some features, now with PowerShell version 5 Microsoft added some great new features to it. This time it’s about creating a tempfile. I already wrote a blog post in 2011 how you can create a tempfile in older version of PowerShell using .NET:

With PowerShell 5 you got a native cmdlet for this:



Azure Automation PowerShell ISE Add-on

Azure Automation PowerShell ISE add-on

Microsofts Joe Levy (Program Manager, Azure Automation) just announced in the blog post a new PowerShell ISE add-on for Azure Automation: Announcing the Azure Automation PowerShell ISE add-on. the Azure Automation PowerShell ISE add-on helps you if you are writing PowerShell runbooks for Azure Automation:

In Azure Automation, runbook authoring is typically done in the Azure portal, using our browser-based experience. However, in experimenting with ways to improve our runbook authoring process, we developed a new, open-source tool for runbook authoring – the (take a deep breath) Azure Automation PowerShell ISE add-on!

This project has been in the works for a while and is already used by many of our customers. Now we think it’s finally ready for more exposure and usage. We built this experience because we observed two things:

Our customers heavily use the PowerShell ISE when writing PowerShell
They even use the PowerShell ISE when writing runbooks, copy/pasting back and forth with the portal or importing/exporting with the PowerShell cmdlets
So we thought, why not create an Azure Automation experience that builds on top of this powerful tool? If you’re interested in speeding up your runbook authoring process using tools you’re already familiar with, we hope you’ll give the Azure Automation PowerShell ISE add-on a try!

Installation is very easy, you can get the Azure Automation PowerShell ISE add-on from the PowerShell Gallery:

Install the PowerShell Add-on:

If you want the PowerShell ISE to always automatically load the add-on:

If you just want to load the add-on if you need it run:

 

For more information check out Joe Levy blog post on the Azure blog: Announcing the Azure Automation PowerShell ISE add-on



PowerShell Get-Clipboard

Get and Set Clipboard using PowerShell

PowerShell was always a mighty tool to automate stuff, hut with the first versions we were limited in some functionally. With the release of version 3 and 4 PowerShell got even more powerful. With the latest PowerShell version 5, which is included in Windows Server 2016 and Windows 10 and also can be downloaded for older versions of Windows, Microsoft added some cool new functionality. The first thing I am writing about is the Set-Clipboard and Get-Clipboard cmdlets. The cmdlets allow you to get access to the clipboard of your Windows machine.

For example if you use CTRL + C or Copy the files from explorer:

Get-Clipboard File Explorer

You can use this cmdlet:

PowerShell Get-Clipboard

This also works of course with other file types:

PowerShell Get-Clipboard Image

Great new addition to PowerShell!



Best of Windows Server 2016

Recording: Best of Windows Server 2016 – The New Foundation of Windows

Last week I presented in a webinar together with Rick Vanover from Veeam about the Best of Windows Server 2016 – The New Foundation of Windows Server. And now you can watch the recording of that webinar:

Join Veeam for the Best of Windows Server 2016 — The New Foundation of Windows webinar. You’ll be one of the first to know about new, exciting improvements that are coming in Windows Server 2016 and how they’ll improve your day-to-day job.

In this hour-long webinar, Thomas Maurer (Microsoft MVP and Veeam Vanguard) will guide you through the highly anticipated innovations including:

  • Hyper-V 2016 features
  • Nano Server
  • Storage Spaces Direct
  • Storage Replica
  • Windows Server Containers
  • And more!

Enjoy the video:

Best of Windows Server 2016 – The New Foundation of Windows

Join Veeam® for the Best of Windows Server 2016 — The New Foundation of Windows webinar. You’ll be one of the first to know about new, exciting improvements that are coming in Windows Server 2016 and how they’ll improve your day-to-day job. In this hour-long webinar, Thomas Maurer (Microsoft MVP) will guide you through the highly anticipated innovations including: •Hyper-V 2016 features •Nano Server •Storage Spaces Direct •Storage Replica •Windows Server Containers •And more!



diskpart fat32 and gpt

How to create Windows Windows Server bootable USB media for deployment on UEFI based systems

When you were create a USB media for PCs, notebooks and servers which were using BIOS you could use several tools to do this. Now most of the tools do not really create a USB media drive which can be used to boot and install Windows or Windows Server on a UEFI based system such a new servers and for example the Surface Pro line. But it is very simple to do this now, just follow this steps:

  • The USB drive has to be formatted in FAT32
  • The USB needs to be GPT and not MBR
  • Copy all files from the ISO to the USB drive

diskpart fat32 and gpt

This is it, and here is how you do it:

First plugin your USB drive to your computer. The USB drive should be bigger than 4GB.

Open a CMD prompt or PowerShell using the Run as Administrator option and open diskpart. Now you can do list all this by using

Select the USB disk, in my case this was disk 1

Clean the disk. Be careful this will remove all files and partitions on the USB media.

Now convert it to GPT

Create a new primary partition. But make sure the partition is not greater than 16GB otherwise it can be formatted with FAT32.

Format the partition with FAT32

Assign a drive letter to the volume

now you can exit the diskpart and copy all files from the Windows or Windows Server to the USB drive and boot it. This works with Windows 8, Windows 8.1, Windows 10, Windows Server 2012, Windows Server 2012 R2 and Windows Server 2016 or even Hyper-V Server in the same editions.

 



Transparent PowerShell Background in Windows 10

Transparent PowerShell Background in Windows 10

After some recent blog post, where I posted some screenshots of my PowerShell console, some people were asking about how I made the background of the PowerShell console transparent. Well this is very simple, Microsoft changes a lot on the Command Prompt and PowerShell in Windows 10.

Simply right click on the title bar of the PowerShell console or CMD console and click on properties.

PowerShell Options

Now in the Colors tap you can change the transparency of the console window using the opacity slider.

Transparent PowerShell Background in Windows 10

This also works with the command prompt (CMD) on Windows 10.



Microsoft Display Dock HD-500

First view on the Microsoft Display Dock HD-500 and Windows 10 Continuum for Phones

Some days ago I received my new Microsoft Lumia 950 XL, which is one of the first phones with Windows 10 Mobile. Microsoft also created some new cool accessories, such as the Microsoft Display Dock HD-500. The Microsoft Display Dock allows you to connect your Lumia 950 or Lumia 950 XL using a USB-C cable and adding a keyboard and mouse and connect it to a bigger screen. Windows Universal Apps such as for example, Mail, Outlook, Office, Edge, File Explorer and several others scale up on the connected screen like they would run on a desktop computer running Windows 10. This Windows 10 Mobile feature is called Continuum for Phones and it allows you to use your phone as a desktop PC. This is great for example think about it, you only carry your phone and when you need to do some real work you can connect it to mouse, keyboard and screen and you have a desktop ready to use.

Microsoft Display Dock

Display Dock Connections

The Microsoft Display Dock HD-500 has a USB-C Port for connecting and charging your phone, 1 powered and 2 full-sized USB 2.0 ports to connect keyboard, mouse, USB drives or external drives, a HDMI and a Display-Port for connecting the screen or beamer. The device supports a resolution up to Full HD (1920×1080).

Microsoft Display Dock HD-500 Lumia 950 XL

Continuum for Phones

Continuum for Phones makes it possible to use this feature. Now Continuum for Phone also works wirelessly using Miracast for example with the Microsoft Display Adapter or even using the Xbox One with the Wireless Display App (right now for Preview Members only). You can also connect a Bluetooth keyboard and mouse to your phone, so you can use this feature completely wireless.

Continuum for Phones

Continuum for Phones has also some limitations, right now it only supports Windows Universal Apps and no Win32 apps or old Windows Phone Apps.

Some apps which work with Continuum for Phones:

  • Mail
  • Calendar
  • File Explorer
  • Photos
  • OneNote
  • Excel
  • Word
  • PowerPoint
  • Messages
  • Maps
  • MSN Money
  • MSN Sports
  • MSN News
  • Alarm and Clock
  • Groove Music
  • Movies & TV
  • Microsoft Edge
  • Xbox
  • Facebook
  • Fitbit
  • Cortana
  • Camera

I am sure a lot of developers are working on porting apps to the Windows Universal App Platform and make them available on several devices. Continuum for Phones is one of the best examples how Windows 10 and the Windows Universal Apps will improve the Windows Ecosystem. I think for some people and even employees, Windows 10 Mobile phones could replace the desktop PCs, since you have a lot of great Universal Apps for Mail, Office and other Offices tasks. If Microsoft makes a Universal App for Remote Desktop available you can even have a full desktop, with full desktop apps on your phone while docked to a screen. And with the new Mobile device Management options in Windows 10 Mobile, this can be perfectly managed by enterprises. They can also implement the Microsoft Windows Store for Business on Windows 10 and Windows 10 Mobile.