MDT

Links and downloads from SCU 2014 in Basel

Coretech Blog » Kent Agerlund - Fri, 09/19/2014 - 12:30
Below is a list of the links and scripts that I used in my two sessions today on Compliance Management and Troubleshooting ConfigMgr. Compliance examples – download Configuration Manager Support Center: http://www.microsoft.com/en-us/download/details.aspx?id=42645 Microsoft System center 2012 R2 Configuration Manager Toolkit: http://www.microsoft.com/en-us/download/details.aspx?id=36213 Optimizing ConfigMgr database: http://stevethompsonmvp.wordpress.com/2013/05/07/optimizing-configmgr-databases/ Background on maintenance task: http://stevethompsonmvp.wordpress.com/2013/04/19/how-to-determine-if-the-configmgr-rebuild-indexes-site-maintenance-task-is-running/ Configuring SQL Backup and recovery, […]
Categories: MDT

Changing Ubuntu Screen Resolution in a Hyper-V VM

Virtual PC Guy's WebLog - Fri, 09/19/2014 - 12:14

If you install Ubuntu 14.04 inside a Hyper-V virtual machine – you automatically get all the integration components and virtualized drivers.  Including the Hyper-V video driver.  However, if you try to change the screen resolution inside your virtual machine you will notice something odd:

There is only one choice!

Luckily, you can change the screen resolution.  Just not here.  What you need to do is:

  1. Open Terminal
  2. Type: sudo vi /etc/default/grub
  3. Find the line starting with GRUB_CMDLINE_LINUX_DEFAULT, and add video=hyperv_fb:[the resolution you want].  The resolution I want is 1280x720.  So my line ends up looking like this: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:1280x720"
  4. Write the changes and quit vi.
  5. Run: sudo update-grub
  6. Reboot the virtual machine

Now you will get the resolution that you want!

Cheers,
Ben

Categories: MDT

“Error applying Hard Drive changes” on Generation 2 VMs

Virtual PC Guy's WebLog - Thu, 09/18/2014 - 12:33

A Microsoft employee recently contacted us with this issue:

“When I try and attach a virtual hard disk to a generation 2 virtual machine – I get an error message that says ‘Error applying Hard Drive changes’”

It took a bit of conversation – but eventually we figured out what was happening.  Here is the error message in action:

What is happening here? The answer is that we only support .VHDX files with generation 2 virtual machines.  You cannot attach a .VHD file to a generation 2 virtual machine – and if you try to do so you will get the error message above.

If you have a .VHD file that you want to connect to a generation 2 virtual machine, you should convert it to a .VHDX first.

Cheers,
Ben

Categories: MDT

Scripts and links from the ConfigMgr 2012 Site Review session @IT/Dev connections

Coretech Blog » Kent Agerlund - Thu, 09/18/2014 - 05:58
A big thanks to all who showed up at our session, Steve and I had a fantastic time and could easily have gone on for 75 more minutes Below are the links to the scripts and blog post we referenced during the session. Hope to see you all again next year! Optimizing ConfigMgr database: http://stevethompsonmvp.wordpress.com/2013/05/07/optimizing-configmgr-databases/ […]
Categories: MDT

Importing a Virtual Machine with an Incompatible Saved State

Virtual PC Guy's WebLog - Wed, 09/17/2014 - 12:19

This afternoon – an email arrived with the following question for me:

“I’m working with on a Hyper-V migration with an import-vm component. I saw what I believe is your post on importing incompatible VMs. We are experiencing an issue where the incompatibility has to do with a bad saved state after the migration. This can be cleared manually, but nowhere can I find a references to how to resolve this issue with a script.

Could you possible point me in the right direction?”

Happy to help!  The trick in this case is to remember that when you use “compare-VM” the compatibility report that is returned contains an entire copy of the virtual machine that you are trying to import.  You can modify this virtual machine in anyway in order to prepare it for import.  For an incompatible saved state – you will want to use “Remove-VMSavedSate” on the virtual machine object that is included in the compatibility report.

Like this:

Cheers,
Ben

Categories: MDT

Links from the ConfigMgr 2012 R2 precon @IT/Dev Connections

Coretech Blog » Kent Agerlund - Wed, 09/17/2014 - 08:41
Thanks for a great day @Aria in Las Vegas. As promised here are the links we (@Jarwidmark and @Agerlund) mentioned during our preconference: Pre-creating the database using this script SQL backup and restore http://stevethompsonmvp.wordpress.com/2014/02/24/configmgr-2012-site-backup-and-recovery-overview/ Software Update Report dashboard rdl file Software Update step-by-step: http://blogs.technet.com/b/gary_simmons_mcs/archive/2013/12/09/creating-a-custom-report-for-system-center-2012-r2-configuration-manager-part-1.aspx PowerShell Script to set permissions in Active Directory for OSD http://www.deploymentresearch.com/Research/tabid/62/EntryId/160/PowerShell-Script-to-set-permissions-in-Active-Directory-for-OSD.aspx […]
Categories: MDT

Posterpedia is now a Universal App!

Virtual PC Guy's WebLog - Mon, 09/15/2014 - 12:05

I have talked about Posterpedia before.  It is a very handy application that allows you to access electronic versions of our detailed Windows Server Architectural posters.  Well, the authors have released an updated version of it which is a Universal App.  This means you can have it on your phone and your desktop!

Other updates include:

  • Featured posters  Find out the latest posters that are available in Posterpedia.
  • Recently viewed  Quickly jump to the last poster you looked at from the hub screen.
  • Download  Download a PDF version of the poster straight to your device.
  • New appbar buttons Quickly go back to the Posterpedia hub page with the home button or get help by using the help button.

You can download the app from the Windows Store, or go directly here:  http://aka.ms/sposterpedia

You can download the app for Windows Phone, or go directly here:  http://aka.ms/Audwjw

You can also view a video of the new features in action here: https://www.youtube.com/watch?v=bYWSBSzfzZI

Cheers,
Ben

Categories: MDT

Miracast in Enterprise Environments - FAQ

The Deployment Guys - Sat, 09/13/2014 - 09:26
Intro

This blog is intended to document our learning's about Miracast technology and explain things to consider when implementing a solution using Miracast. It is primarily about Windows 8.1 tablets and Windows Phone 8.1 as the authors work for Microsoft in the Worldwide Modern Devices Centre of Excellence (CoE). We work on a program called First Wave which assists market leading customers in using and deploying the latest Windows technologies. For video case studies around our projects go to http://www.microsoft.com/en-us/windows/enterprise/customer-stories/default.aspx .

The authors, Lutz Seidemann (Infra) and Paul Tallett (App Dev), are Solution Architects with Microsoft Consulting Services – Worldwide Modern Device Center of Excellence.

We worked on many global projects but the relevant one is the Mandarin Oriental Hotel Group , which is detailed in our second blog.

 

FAQ

Why do I want Miracast?

Miracast technology allows you to wirelessly project your computer/tablet or phone screen onto an HDMI connected device such as a TV or projector. You can play movies for all the family to enjoy or simply enjoy a shared web browsing experience without the need for messy cables. It is similar in concept to Apple’s AirPlay

What is Miracast?

Windows and Windows Phone 8.1 added support for Miracast projection from most devices and can either use a “dongle” that plugs into your TV or nowadays some TVs come with Miracast built in. Often the dongle is USB powered so can plug into a spare USB port on your TV. Most of the dongles are about the size of a pack of cards but some low cost USB-stick-sized devices are starting to emerge.

http://www.amazon.co.uk/Actiontec-SBWD100A01-ScreenBeam-Wireless-Receiver/dp/B00KSAYMH4    
Technically it was designed as a “wireless HDMI cable” so you can think of it that way.

What is the user experience like?

Plug your dongle into the TV and select the correct AV port on the TV and you will see a “Device ready for pairing” type message on the TV. On Windows 8.1 select Devices/Project from the Charms Bar and click on “Add a wireless display”. The computer will scan for devices in range and allow you to select one and go through the pairing process which may involve typing a PIN that is displayed on the TV screen. This is all rather similar to pairing a Bluetooth mouse or headset (but doesn’t actually involve Bluetooth).

On the phone, go to Settings/”Project My Screen” and a similar scanning/pairing process will be initiated.
Once you have paired the device, it is persistent and you will not need to re-pair the device unless you pair the dongle with another device – you will simply be able to connect and display. You can pair with as many devices as you like and can unpair the device from Control Panel or Settings.

Note that once you log off or reboot your device, the mirrored connection is broken and cannot be re-established automatically. There are currently no public APIs to control Miracast projection.

What is performance like?

Performance varies with many factors – dongle manufacturer, computer CPU power, Wi-Fi traffic, Wi-Fi waveband etc (more details later) but you should be able to stream an HD movie from the Internet and project it to your TV with minimal stuttering. Note Miracast also transmits your sound channel as well as the picture.

What components are used in Miracast?

Miracast support is embedded into the display drivers, Wi-Fi drivers and device firmware (including dongle firmware) and it is quite sensitive to driver versions and revisions. The Miracast standard is constantly being tweaked and although backwards compatibility is promised, it is not always transparent. Each large Windows or phone update has required an update to the various components which may be on different delivery schedules. For example, getting a firmware update to the Miracast support in a TV is often a lengthy process and for this reason we recommend using a dongle rather than relying on the TV support. ActionTec have proved very responsive to requests and are tightly integrated into the Windows Operating System team (OSG) so they are the partner of choice for our team.

If you are experiencing problems, make sure you have all the latest drivers and hardware/dongle firmware installed.

What technology does Miracast use?

Miracast is an evolution of Intel’s proprietary Wireless Display (WiDi) technology and uses the Wi-Fi Direct protocol and therefore communicates directly between device and dongle without going through a Wireless Access Point or router. However, the first stage of establishing a Miracast connection senses if the computer Wi-Fi adaptor is already using a Wi-Fi connection with a router and uses the assigned channel for the Miracast communication to prevent thrashing in the Wi-Fi adaptor.

We have not seen dongles that allow the Wi-Fi channel to be manually configured so if the computer is moved and switches channel for signal strength reasons, the Miracast session may become choppy or even disconnect as it tries to switch Wi-Fi channel. Since the bandwidth requirement for transmitting HD video is very high, having more than 3 or 4 dongles sharing the same channel will probably see saturation. Also remember that if you are streaming video wirelessly from the internet, that the stream will be transmitted twice over the Wi-Fi network, one to the computer and once to the dongle. Google’s Chromecast differs in this respect as it can stream directly from the internet but only for certain applications.

What methods are available for pairing a device?

We have seen several methods of pairing the device:

  • Random Pin. Dongle displays a random PIN during the pairing process which must be manually typed into the computer to pair. This prevents pairing with a device that you cannot see, for example a TV in an adjacent hotel room.
  • Automatic pairing. Introduced on Windows in 8.1 Update 1 as the default, a device can automatically pair when you select it. Disabling this feature is sometimes desirable (eg hotel) but has to be done in the dongle firmware if it supports it but not from Windows.
  • Fixed secret PIN. Some dongles support manually setting a secret PIN in the dongle firmware. This prevents the device from being ad-hoc paired to other devices (eg a hotel guest using his phone) and affords greater control. When pairing you will need to know what PIN has been set or you will be unable to use the device.
  • NFC or QR code. Some devices are starting to emerge that use more convenient methods to pair than having to type a PIN. For example Nokia’s solution uses NFC http://www.wpcentral.com/hands-on-microsoft-screen-sharing-lumia-phones

How do I manage the dongle?

Different vendors implement various methods of performing management tasks for the dongle such as upgrading the firmware or changing settings such as device name or timeouts. Some use a local USB port where you load the firmware then press a button on the device to flash it, other use mini web servers on the device (like a router) and present an HTML interface so that they can be managed remotely. Some flavors of the ActionTec firmware use a custom SSID that you connect to in order to manage the device which is a problem if you have a lot of devices as they pollute the experience when trying to connect a laptop to a Wi-Fi network for example, as all the dongle admin SSIDs are visible. You may be able to set the admin SSID to hidden.

Do all Windows 8.1 and Windows Phone 8.1 devices support Miracast?

No. This requires both hardware (Wi-Fi adaptor) and device firmware support. We have tested the following list of devices successfully: Surface Pro 1, Surface Pro 2, Surface Pro 3, Dell Venue 8 Pro, HP ElitePad, Nokia 630, 1020, 1520. Note these may require a firmware upgrade to add this support depending on the age of the device. The following devices do not support Miracast: original Surface RT.

Android 4.2 (JellyBean) or better (eg KitKat) is needed for Miracast support. Apple devices do not support Miracast as they use AirPlay which is a competing proprietary solution (implemented on Apple TV).

Do all TVs and projectors support Miracast?

You almost always require an HDMI input on the TV, so devices that do not have HDMI can be eliminated. Most Miracast solutions use 1080p for their screen resolution, but many HD TVs only support 1080i or 720p. 720p is not really sufficient for Windows 8 as it is below the minimum resolution for Modern Apps so you can’t start a Modern app when running at that resolution. Some of the dongles (eg ActionTec) however, do support 1080i and the results can be very good. (P=Progressive, I=Interlaced, Progressive shows every line, Interlaced draws every other line then goes back and fills in the alternate lines). Picture quality is generally better on 1080p. Resolutions higher than 1080p (1920x1080) are not currently supported by Miracast so 4K for example is not supported.

We tested various dongles (Netgear, ActionTec, Belkin) and TVs with embedded Miracast support (Samsung, Philips, Sony) and arrived at the conclusion that the ActionTec dongle was the most flexible in terms of environment/features and gave the best performance. Also the engineering team were very responsive and turned around custom firmware versions in a few days. For this reason our team would recommend the ActionTec dongle.

Can I add a button to the Windows 8.1 Start Screen to project the screen to aid discovery?

There are no public APIs to control Miracast projection but attached is a sample app that you can pin to the start screen that sends keystrokes to invoke the screen selection menu. The same menu is used for connection or disconnection so the app does not need any knowledge of whether the device is currently projecting or not.

The projection stutters or drops. How can I improve performance?

In a single device setting, make sure you have all the latest drivers and firmware releases including dongle firmware. If these still cause issues, you can experiment with older versions of the drivers as sometimes this helps.

If you can set up a 5GHz Wi-Fi network rather than 2.4GHz (the default) and get your computers to use that by default, this will generally give better results. 5GHz has higher bandwidth but shorter range so your mileage may vary.

In a multi-device setting (e.g. hotel) network traffic may be an issue if multiple devices are using the same channel or if the network has a lot of traffic. Most Wi-Fi Access Points (AP) can be configured to prefer a certain channel, spacing these out across your environment in a matrix arrangement can considerably improve overall Wi-Fi performance. Using a signal strength meter to obtain hard data on signal strength is very important here. There are some signal strength apps available on smart phones if you don’t have a specialized device. Again using 5GHz can be advantageous although 2.4GHz networks can still provide good results if properly configured. Remember that although the Miracast communication uses Wi-Fi Direct and does not go via your router, the channel it uses is determined by the Wi-Fi channel being used by the computer and your connection may not automatically upgrade and switch if a better channel is available. Note you may need to update your Access Point firmware in order to set up a 5GHz network or control channel separation.

 

 

Disclaimer: The information on this site is provided "AS IS" with no warranties, confers no rights, and is not supported by the authors or Microsoft Corporation. Use of included script samples are subject to the terms specified in the Terms of Use.

Categories: MDT

Miracast in Enterprise Environments

The Deployment Guys - Sat, 09/13/2014 - 09:25

This blog is intended to document our learning's about Miracast technology and explain things to consider when implementing a solution using Miracast. It is primarily about Windows 8.1 tablets and Windows Phone 8.1 as the authors work for Microsoft in the Worldwide Modern Devices Centre of Excellence (CoE). We work on a program called First Wave which assists market leading customers in using and deploying the latest Windows technologies. For video case studies around our projects go to http://www.microsoft.com/en-us/windows/enterprise/customer-stories/default.aspx

The authors, Lutz Seidemann (Infra) and Paul Tallett (App Dev), worked on many of these projects but the relevant one is the Mandarin Oriental Hotel Group project which is detailed in the Customer Scenarios section. Both are Solution Architects with Microsoft Consulting Services – Worldwide Modern Device Center of Excellence.

What is Miracast

What is Miracast and how you can use it in your architectural concepts?
Let's have a first look to Wikipedia:

"Miracast is a peer-to-peer wireless screencasting standard formed via Wi-Fi Direct connections in a manner similar to Bluetooth. It enables wireless delivery of audio and video to or from desktops, tablets, mobile phones, and other devices. It allows users to, for example, echo display from a phone or tablet onto a TV, share a laptop screen with the conference room projector in real-time, and watch live programs from a home cable box on a tablet. Both the sending and receiving devices must support Miracast for the technology to work. However, to stream music and movies to a device, such as a TV, that does not support Miracast, adapters are available that plug into HDMI or USB ports. Miracast allows a portable device or computer to send, securely, up to 1080p HD video and 5.1 surround sound (AAC and AC3 are optional codecs, mandated codec is linear pulse-code modulation — 16 bits 48 kHz 2 channels).The protocol uses a direct Wi-Fi connection between the two devices without involvement of a wireless router and cannot be used to stream to a router access point. It was created by the Wi-Fi Alliance." (From <http://en.wikipedia.org/wiki/Miracast> )

Ok, here the same again in a nutshell:
Miracast is a protocol that will transmit audio and video between devices via Wi-Fi. It relies on the Wi-Fi network available (802.11n), using 2.4GHz and 5GHz bands. With this, you can enjoy multimedia content streaming from any Miracast enabled device such as your Windows 8.1 Tablet or Windows Phone to the Miracast device in our environment. It is not necessary that both devices are connected to the Internet. They only need to share the same local wireless network. The shared information is sent by the device via Wi-Fi through a Wi-Fi Direct connection to a receiver connected to the display device. The receiver then decodes the video signal and passes it to the TV display (or other display device). Miracast supports WPA2-PSK encryption, so all you share is safe.

Windows 8.1 or Android with version 4.2 and higher support Miracast natively. For Windows 7 you need to download the Intel WIDI drivers. If you familiar what Apple called Airplay, Miracast works similarly.

 

Miracast Devices

Broadcasting photos, videos, music and other media from your mobile device or PC to your TV need not be a laborious process, fraught with wires and extra peripherals. Miracast, and Intel's compatible cousin technology WiDi, let you beam whatever is on your device's screen right to a television, and there's a good chance that the devices you already own have this technology built in.

Nowadays, all Windows 8.1 PCs with recent Intel CPUs and Wi-Fi cards already have the hardware necessary. On the phone side windows 8.1 phones and Android 4.2 Jelly Bean or later you can use to send a Miracast signal. If you have a Miracast-capable Phone or Tablet, all you need is a receiver to attach to your home theatre. To help you choose, have a look on current Miracast receivers.

Step 1.) Select your Miracast receiver

Rocketfish Miracast Video Receiver ($79.99):

Belkin Screencast 4.0.18.0 ($119.99):

Netgear Push2TV PTV3000  ($59.99)

D-Link DHD-131 ($99.99)

Actiontec Screen-Beam Pro ($69.99)

 

Lumia HD-10 ($79.99)

 

You need make sure the Miracast device is compatible with your TV. Most Miracast solutions use 1080p for their screen resolution, but many older TVs only support 1080i or even only 720p. The only device we found that can support 1080i & 1080p is the Actiontec Screen-Beam Pro.

The Wi-Fi Alliance website maintains a comprehensive list of compatible devices, although that list does not account for Miracast-compatible technologies like Samsung's AllCast Share. More information, including a list of Wi-Fi Certified Miracast products, the Wi-Fi Alliance Display technical specification, white paper, and more is available at www.wi-fi.org/miracast.

Step 2.) Connect your Miracast receiver to your TV

All Miracast receivers plug into a TV's HDMI port and are ready to receive as soon as they turn on.

Step 3.) Connect your Windows 8.1 PC or Tablet

After you added your Miracast connection , from now you can access via the usual project

For detailed instructions have a look here .

Step 3.a) Connect your Windows 8.1 Phone

After you tab your phone is displayed to the TV

  Step 3.b) Connect your Android Phone

Note: instructions differ depending on whether you are streaming from an different Android version. This is Android 4.4 (KitKat)

Go to Settings/Connections and tap on Screen Mirroring

You will then see this screen and you can tap your Miracast dongle:

The device will go through the pairing process:

And your screen is now mirrored and you can tap to disconnect:

  Customer Scenario

One year ago Mandarin Oriental partnered up with Microsoft in early adopter program called Windows Firstwave.

Mandarin Oriental’s intention is to make its wealth of online marketing content, hotel information and guest services more easily accessible to its digitally savvy guests. Leveraging the Microsoft platform, Mandarin Oriental is able to integrate a combination of services formerly offered via the television, telephone or guest directory with content available on the company’s website to deliver a more intuitive in-room experience for guests via custom touch apps running on Microsoft Surface Pro tablets. The Mandarin Oriental Group has piloted Microsoft Surface Pro tablets in four of their award-winning properties in London, Washington DC, Las Vegas and Tokyo.

Microsoft Consulting Services worked together with the hospitality solutions partner iRiS Software Systems, and InterKnowlogy to develop a suite of custom Windows 8.1 touch apps, available in nine different languages, that manage services for in-room dining, concierge and housekeeping requests, a guest compendium which provides information about the hotel’s facilities and access to guest feedback and guest preferences.

Here a quick overview of the solution architecture before we go deep on our Miracast implementation experiences during the pilot:

During the Architecture design session we proposed to use Windows Embedded 8.1 Industry on Microsoft Surface Pro to Mandarin Oriental. This version of Windows 8.1 is functionally identical to the consumer/pro versions of Windows 8.1 with the exception that Embedded 8.1 industry adds capabilities to lock down the device - in this specific case a Write Filter is used to write all changes that happen to the OS after it is booted into a cache which is then overlaid on the file system. In normal operation this cache is transparent to the user and Industry Embedded 8.1 operates as any Windows 8.1 PC would. However when the Surface Pro is rebooted the cache is deleted restoring the Surface Pro device to the install state. This is how user state (files, downloaded apps, browsing history, customization, etc.) is removed through a reboot initiated at checkout. It's a simple and effective process and it's similar to the way that 3rd Party products (e.g. Deep Freeze) works except in this case, the capability is built into the OS making Surface Pro with Windows Industry 8.1 ideal for this type of commercial application. The user can install any app, download email, work on documents, change any configuration they want, including log into a Microsoft Account (MSA) with the surety that at checkout, or when the Surface device is rebooted, all user-specific data is removed.

Additionally, all OS updates are applied after checkout by automatically switching the device to Servicing Mode where the write filter is disabled and all the patches applied keeping the install image secure and up to date. For real-time updates required by application such as Defender or Microsoft Forefront you can add folder level write filter exclusions to prevent that data being wiped off at reboot. An important benefit of this approach is that specific hotel apps can be sourced from multiple developers, and these can be complemented by any app that can be downloaded from the Windows Store (the very functional Bing apps for example).

This contrasts with the alternative Android/iOS mechanisms in use for tablets deployed for this type of application in hotels. For these OS's which do not have such evolved management mechanisms, the typical approach is to build one large app that must contain all required functionality. The tablet is then locked in kiosk mode running this app only. Writing one big monolithic app is clearly a less efficient software development approach, and it removes from the user experience nearly all of the familiar tablet functionality associated with the OS - i.e. something as simple as a web browser - if such functionality is desirable to include in the user experience, must be written/included in the hotel app development process. In Windows 8.1 Industry Embedded such functionality, and much more, is included out of the box leaving the developers to spend their time and money developing line-of-business hotel-specific functionality which means they can be potentially much more productive.  
(Read the Mandarin Oriental Hotel Group Press Release , Blog or watch the Video )

OK, let's circle back to Miracast, what this blog is all about :

Part of the Mandarin Solution is Miracast to provide all guests the possibility to stream there preferred videos, watch Hulu or Netflix, internet TV channels or any other content direct on the big in-room TV. Imagine you go into a hotel room and can watch your preferred movie without messing around with a cable connection or different kinds of adapters. You just connect to Netflix and watch, I would call this very slick.

What you need consider to build such a solution?

Remember that although the Miracast communication uses Wi-Fi Direct and does not go via your router, the channel it uses is determined by the Wi-Fi channel being used by the computer and your connection may not automatically upgrade and switch if a better channel is available.
In a multi-device setting network traffic may be an issue if multiple devices are using the same channel or if the network has a lot of traffic. That’s important for environments such as Hotels, where you have many Miracast devices (Dongle and PC/Phone) very close to each other.

Understand your Wi-Fi Network:

  1. Most Wi-Fi Access Points (AP) can be configured to prefer a certain channel, spacing these out across your environment in a matrix arrangement can considerably improve overall Wi-Fi performance. Using a signal strength meter to obtain hard data on signal strength is very important here. There are some signal strength apps available on smart phones if you don’t have a specialized device.
  2. In general the 5GHz bandwidth is less noisy than 2.4GHz ; you can find baby monitors, microwave or Bluetooth devices sending on 2.4GHz. More information here.
  3. If you can set up a 5GHz Wi-Fi network rather than 2.4GHz (the default) and get your computers to use that by default, this will generally give better results. 5GHz has higher bandwidth but shorter range so your mileage may vary. Configure your Router for "Optimize for compatibility" mode, which allow to configure a separated 5GHz channel per room (36,40,44,48,149,153,157,161).

Drivers and Firmware

  1. Make sure you have all the latest Wi-Fi drivers and device firmware releases
  2. Update your Miracast dongle firmware.
  3. Update your Wi-Fi Router firmware, especially if you plan to go for 5Ghz infrastructure.
  4. Update your TVs when using the build-in Miracast function

 

 

Code samples

For the Mandarin Oriental project we wrote a Modern app that sent keystrokes to invoke the charms bar and bring up the projection screen which we pinned to the Start Screen to make it very easy for guests to discover this functionality. Since Modern apps are not allowed to send keystrokes to the system, we used a technique called Brokered Components which allows desktop code to be called from a side-loaded Modern app. Sending the keystrokes is fairly trivial, here's the code we used in the Brokered Component:

private async Task<int> StartProjectionTask(int n)
{
await Task.Delay(1);
InputSimulator.SimulateModifiedKeyStroke(VirtualKeyCode.LWIN, VirtualKeyCode.VK_K);
Thread.Sleep(1000);
InputSimulator.SimulateKeyPress(VirtualKeyCode.DOWN);
InputSimulator.SimulateKeyPress(VirtualKeyCode.DOWN);
Thread.Sleep(1000);
InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
//Thread.Sleep(3000);
//InputSimulator.SimulateKeyPress(VirtualKeyCode.UP);
//InputSimulator.SimulateKeyPress(VirtualKeyCode.UP);
//InputSimulator.SimulateKeyPress(VirtualKeyCode.UP);
//InputSimulator.SimulateKeyPress(VirtualKeyCode.SPACE);
//Thread.Sleep(1000);

return 0;
}

Brokered Components in Windows 8.1 apps is documented in this article: http://msdn.microsoft.com/en-us/library/windows/apps/dn630195.aspx

And a step-by-step guide is here: http://devhawk.net/2014/04/25/brokered-winrt-components-step-one/

 

Summary

As a recap, Miracast is a very exciting technology and if you spend a little time on the key points it works very well. After testing a few dongles, we selected ActionTec because of the wider selection of TV resolution (1080i and 1080p) and configuration options we got in the firmware. Working with the Actiontec engineering team was a pleasure.
Your environment may differ, so we don’t want to give a generic recommendation.

Those are the critical components :

  • WI-FI Drivers
  • Tablet Firmware   
  • Wi-Fi Router Firmware
  • Wi-Fi Network configuration
  • Miracast Dongle
  • Dongle Firmware

Finally, give us feedback; share your implementation experiences; ask question and we will try to help.

Happy Implementing Lutz and Paul

Disclaimer: The information on this site is provided "AS IS" with no warranties, confers no rights, and is not supported by the authors or Microsoft Corporation. Use of included script samples are subject to the terms specified in the Terms of Use.

Categories: MDT

KB2966828 breaks Net.Pipe listener adapter service and more!

cluberti.com - Wed, 09/10/2014 - 21:02

Install from Windows Server 2012 R2 Update 1 media (technet, MSDN, etc. – doesn’t matter):

Add the features .NET 3.5, HTTP, and Non-HTTP activation, and you will end up with the service in question, Net.Pipe Listener Adapter:

Install KB2966828, and restart (that is the awesome PSWindowsUpdate in action):

The service is now busted:

I’ve also encountered it causing issues with starting ASP.NET app pools and causing failures while running iisreset. A quick workaround is to add the public key token that is failing (b03f5f7f11d50a3a, found while debugging the crash) to the registry in the strong name validation bypass list:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\*,b03f5f7f11d50a3a

Adding that will allow things to work again, until the problem is fixed by Microsoft at some point.

Categories: MDT

House of Cards–The ConfigMgr Software Update Point and WSUS

Coretech Blog » Kent Agerlund - Wed, 09/10/2014 - 08:38
A Card house; fun to build but not very solid and when one card falls the whole house often goes down with it. It’s a little like that with the WSUS server and Configuration Manager. Installing WSUS seems so easy but there are still some moving part, and if you get one of the wrong […]
Categories: MDT

Put agent into maintenance mode remotely via PowerShell in SCOM 2012 R2

cluberti.com - Fri, 09/05/2014 - 19:48

Our SCOM monitoring environment monitors one of our provisioning environments, where machines come and go regularly. These hosts are potentially in many, many different groups depending on function, and they can come and go many times a day. Yes, a group can be put into maintenance mode easily, but doing so for a host, remotely, isn’t necessarily as easy. Here’s a PowerShell script (created after reading about something similar on the Coretech Blog, here) that takes machine names passed in as the first parameter, places all machine names in an array, and sets each machine into maintenance mode in a particular SCOM management group. There’s little error checking here, so if you wanted to make this more robust, you’d probably want to add some parameter validation, etc. Without ado, here it is:

# Parse Params: [CmdletBinding()] Param( [Parameter( Position=0, Mandatory=$False, HelpMessage="Full path of text file with list of machine names to put into maintenance mode:" )] [String]$TextPath = "C:\TEMP\MachineNames.txt" ) [Parameter( Position=1, Mandatory=$False, HelpMessage="How long should maintenance mode last (in minutes - default is 15)?" )] [ValidateRange(5,999)] [int]$Minutes = 15, [Parameter( Position=2, Mandatory=$False, HelpMessage="Which SCOM server should this script connect to?" )] [string]$SCOMServer = "SCOMServerName", [Parameter( Position=3, Mandatory=$False, HelpMessage="Add a comment about why you're doing this here:" )] [String]$Comment = "MaintenanceModeScript" ) $MachineNames = Get-Content $TextPath $MachineArray = New-Object System.Collections.ArrayList foreach($Machine in $MachineNames) { $MachineArray.Add($Machine) | Out-Null } # Connect to SCOM server: $Session = New-PSSession -ComputerName $SCOMServer $Session = Get-Pssession # Run script remotely against SCOM server: Invoke-Command -Session $Session -ScriptBlock { Param($MachineArray, $SCOMServer, $Minutes, $Comment) Write-Host $MachineArray.Count # Invoke OperationsManager module: Add-PSSnapin "Microsoft.EnterpriseManagement.OperationsManager.Client" # Create/connect to the DCSSCOM management group on SCOM server: Set-Location "OperationsManagerMonitoring::" $mgConn = New-ManagementGroupConnection -ConnectionString:$SCOMServer; # Connect to agent and set params for maintenance mode: $Agents = Get-Agent $QueriedAgents = @() for($i = 0; $i -lt $MachineArray.Count; $i++) { Write-Host "Working on: $($MachineArray[$i])" -ForegroundColor Cyan $AgentToAdd = $Agents | Where {$_.ComputerName –eq $MachineArray[$i]} if($AgentToAdd -eq $null) { Write-Host "Could not find agent for $($MachineArray[$i])" -ForegroundColor Red continue } $QueriedAgents += $AgentToAdd } foreach($Agent in $QueriedAgents) { $StartTime = [DateTime]::Now $EndTime = $StartTime.AddMinutes($Minutes) Start-SCOMMaintenanceMode -Instance $Agent.HostComputer -EndTime $EndTime -Reason "PlannedOther" -Comment $Comment } } -ArgumentList $MachineArray, $SCOMServer, $Minutes, $Comment # Cleanup! Remove-PSSession -Session $Session
Categories: MDT

3rd party updates & Compliance using Secunia and System Center 2012 ConfigMgr

Coretech Blog » Kent Agerlund - Fri, 09/05/2014 - 08:33
This is the 3rd and final post in my series of Secunia CSI and System Center 2012 Configuration Manager integration. Part 1 focused on installing and configuring, Part 2 focused on deploying and installing 3rd party software updates. This blog post will introduce you to the monitoring options in the product. You can monitor compliance […]
Categories: MDT

PowerShell is King – Bulk import applications I MDT

The Deployment Bunny - Wed, 09/03/2014 - 09:30

Often I need to import applications into the Deployment workbench and that is fine. The process is easy and fast, but it is boring and if you have more then 5 apps it is really boring. Based on the fact that almost all my apps in MDT is deployed using VB or PowerShell wrappers its is just one file in a folder and then there is a subfolder with the content. You don’t need to be a genius to figure out that 90% of all the apps pretty much have the same folder and file structure in the root of the application folder, so why don’t we use PowerShell to import all the apps based on some guessing?

The Logic:

This parts can be modified, edit, or you can add your own. Basically it reads the from the folder structure you specify and the script will then scan the folder structure for folders, assuming that every folder is an application. If it finds .msi, .msu, exe, .bat, .wsf, or .ps1 files it will then import them as applications. The important thing is that it will import the first “hit”. That means that you should store the real setup files in a subfolder, I usually use .\Source as the source folder. Here you can see the .WSF part logic


Part of the script.

The command line:

This is the tricky part, since there is no way to know that it will be a guessing game and the command line might need to be modified after import, but I rather modify 2-3 applications instead of importing all of them manually.

The default cmdline for all imported apps will be:

.EXE "$Install /q" .MSI "msiexec.exe /i $Install /qn" .MSU "wusa.exe $Install /Quiet /NoRestart" .PS1 "PowerShell.exe -ExecutionPolicy ByPass -File $Install" .WSF "cscript.exe $Install" The Script:

The script is rather easy, it takes 2 parameters. The folder from where to import and the deployment share. You need to have MDT installed since it is using PowerShell cmdlets from MDT. The syntax for the script looks like this:

.\Import-MDTApps.ps1 -ImportFolder C:\Script\AppFolder -MDTFolder C:\MDTBuildLab

you could also add –Verbose if you like lots of text on the screen.


Output when using –Verbose during import.

You can download the script here: http://1drv.ms/1pGTvkA

/mike


Categories: MDT

Issue – Emulex Nic in Windows Server 2012 R2 with VMQ still does not work

The Deployment Bunny - Wed, 09/03/2014 - 05:40

Today, working at a customer deploying Hyper-V hosts with Emulex CNA1100 we run into issues (did not surprise me, since the issue have been around for more than a year, but I still try and test to see if it ever gets better).

The issue is that VMQ still needs to be disabled on every Emulex NIC. That bad thing is that the issue has been around for a very, very long time. It took a very long time for the vendor to acknowledge the issue and now they state that there is a solution soon to be released. I really hope that, but I have heard it before…

Read more here:

http://blogs.emulex.com/implementers/2014/06/19/microsoft-windows-20122012-r2-hyper-vms-losing-network-connectivity-workaround/

My simple recommendation is to disable VMQ in all Emulex Network adapters if they are installed in Windows Server 2012 R2 or buy something that works and use VMQ.

When they release something that actually works I will remove this blog post.

/m


Categories: MDT

‘Unnamed VM’ could not initialize… The security ID structure is invalid (0x80070539)

Virtual PC Guy's WebLog - Wed, 09/03/2014 - 02:13

While working on a system recently, I imported an old virtual machine – which then failed to start with this error message:

What to do?  Well – thankfully the solution is already documented here: http://support.microsoft.com/kb/2927313/en-us

But how did this happen?  And what is going on?

Well, Hyper-V allows you to grant access to the virtual machine screen for non-administrative users.  You can do this using the Grant-VMConnectAccess cmdlet.  However, if virtual machine screen access has been granted to a user account that no longer exists, Hyper-V does not handle it correctly.

Now, System Center Virtual Machine Manager uses Grant-VMConnectAccess automatically on all virtual machines.  So the easiest way to hit this problem is to take a virtual machine that is managed by SCVMM and move it to a Hyper-V server in a different domain.

Personally, I used a slightly different method than what is documented in the KB article above.  What I did was to open a PowerShell window and ran this command:

What am I doing here?

Using Grant-VMConnectAccess to add my current account causes Hyper-V to remove any invalid entries from the access table.  However, I do not actually need access (I am a Hyper-V Administrator – so I always have access).  Furthermore, if I just run Grant-VMConnectAccess, I will hit this problem again if I move the virtual machine to a host on a different domain.  So granting access and immediately revoking it solves the problem and makes sure it does not happen again.

Cheers,
Ben

Categories: MDT

ConfigMgr 2012 Evaluation version expired

Coretech Blog » Kent Agerlund - Mon, 09/01/2014 - 07:44
So what actually happens when an evaluation version expires? You will notice a few things, like the ConfigMgr administrator console very clearly tells you it expired. As you can see from above you will still be able to open the console but only with Read permisions. Trying to perform actions via PowerShell will give you […]
Categories: MDT

Issue (Hyper-V/SCVMM) – VMM cannot complete the host operation on the HOST server because of error:Storage for virtual machine ‘HOSTNAME’ failed with error ‘The device is not ready.’ (0x80070015)

The Deployment Bunny - Thu, 08/28/2014 - 09:22
Issue: When trying to migrate a VM’s storage to a local device using SCVMM you could see this:

Error (12700)
VMM cannot complete the host operation on the HOST server because of the error: Storage migration for virtual machine ‘VM’ (GUID) failed with error ‘The device is not ready.’ (0x80070015).

Operation not allowed for virtual machine ‘VM’ because Hyper-V state is yet to be initialized from the virtual machine configuration. Try again in a few minutes.(Virtual machine ID )
Unknown error (0x800c)

When trying to migrate a VM’s storage to a local device using Hyper-V manager you could see this:

"Storage migration for virtual machine"HOST’ failed.
Operation not allowed because the replication state is not initialized.
Storage migration for virtual machine "HOST’ failed with error ‘The device is not ready’ (0x80070015)."

Solution:

So far the only solution I have found, tried (and it did work) is to restart the Hyper-V management service.

http://social.technet.microsoft.com/Forums/systemcenter/en-US/eb4511c5-23f9-4c1e-af32-88de0eeaaef1/vhdx-failed-to-migrate-to-local-storage?forum=virtualmachingmgrhyperv


Categories: MDT

My sessions at TechEd Europe 2014

The Deployment Bunny - Wed, 08/27/2014 - 10:00
TechEd Europa 2014

TechEd Europe is Microsoft’s premier technology conference for IT Professionals and Enterprise Developers, providing the technical education, product evaluation, and community resources to plan, architect, deploy, manage and secure a connected enterprise. TechEd Europe will be held October 28-31 at Fira Barcelona in Barcelona, Spain. For more information: http://europe.msteched.com

PRC05: Deploying and Managing Windows in the Real World

What does it take for organizations to deploy and manage Windows 8.1 and Windows Phone? During this all-day seminar, examine the requirements needed to execute the entire process. We ensure that you understand what has changed in Windows 8.1, how you prepare for a Windows 8.1 migration, how to create your Windows 8.1 image, how to deploy Windows 8.1, and how to deploy Windows Store apps to the already-deployed computers using an enterprise app store. Regardless of whether you are new to Windows deployment and management, new to Windows 8.1, or an existing Windows 7 or Windows XP expert, there will be benefits for all attendees, from “how-to’s” to best practices, to tips and tricks

WIN-B314: Deploying Windows 8.1 Using Microsoft Deployment Toolkit (MDT)

If your job contains the duty of deploying Windows 8/8.1 and you would like to do this using the free tools provided by Microsoft, this session is for you. During the session we cover the basic steps to install the solution and the configure it. We explain things like reference images, Windows Deployment Services, Microsoft Deployment Toolkit, Lite Touch, new computer scenario, refresh old computers and how to replace old computers while keeping the user data and re-installing applications.

A message from Mike:

You are invited and very much welcome to my sessions. If you do have the time to join the sessions, please don’t hesitate to swing by the podium before or after sessions, it’s ok to just say hi. I hope to see U.
/mike


Categories: MDT

Managing 3rd. party Software Updates with System Center 2012 ConfigMgr & Secunia CSI Part II

Coretech Blog » Kent Agerlund - Wed, 08/27/2014 - 05:51
In Part I focused on installing and configuring Secunia CSI 7 and System Center 2012 R2 ConfigMgr. In this part I will explain how you can deploy software updates. I do anticipate that you already have a working Software Update Management infrastructure managed by System Center 2012 R2 ConfigMgr. Deploying 3rd party software updates The […]
Categories: MDT

Pages