How to “TOTALLY” customize your Home Realm Discovery Page in Windows Server 2012 R2 ADFS

When using the latest version of ADFS, Windows Server 2012 R2 ADFS, if you have multiple identity providers configured, ADFS will display its Home Realm Discovery (HRD) page. It has too; it has to ask you which provider you want to use to login with? The page is fine.. However it’s not fitting in with…

2

How to Dynamically size a data bound control by it’s content

I’ve seen this question posted on the web, and I have been personally asked to do this a couple of times.   There comes a time when we will need to have buttons (or radioButtons, any control) that needs to have it’s width dynamically assigned based on the content within, for example a button with…

1

How to get a callback from a DataBound property

   I’m writing this blog to show something that stumped me for about an hour, and hopefully this will save you some time.. or at least get you thinking creative!     I have a user control in Silverlight, I’m using C# on the back end. The control’s background color changes via viewmodel databinding. What…

0

How to use a Dependency Property in a XAML Style

In this post I will demonstrate how to create a dependency property and then use that property in a XAML style. I have found samples on the internet for each, but not a comprehensive example for both. Hopefully putting these pieces all together for you will save you some time!     First we must…

1

Working with SCVMM 2012 Powershell in C# – InvokePowerShell function

I have a blog post on Working with SCVMM Powershell in C# – InvokePowerShell funciton, that has been pretty popular and helpful to some. I want to write a subsequent blog post on doing the same thing but what has changed in SCVMM 2012. SCVMM 2012 has replaced it’s pssnapin (formerly Microsoft.SystemCenter.VirtualMachineManager) with a PowerShell…

0

How to Serialize a Dictionary or Hashtable in C#

   This post kind of doesn’t fit in with some of my other posts however, I had this question, and when I searched for answers on this, the answers I found were either incomplete, inneficient or outdated. So to make it easy for everyone, I’m writing this complete and up to date blog post (well as…

10

How to get Job progress from SCVMM

Hey guys,    In this post I will discuss a question that has come my way a few times. This post will discuss how to get the percentage of a job task from SCVMM that you may use in your custom applications to allow your end users to watch the progress of a task performed…

0

Getting a thumbnail from Hyper-V or SCVMM in C#

   This blog post will discuss how to get a thumbnail from Hyper-V. I will show you how to set the size for the thumbnail and save the thumbnail as a usable image file. In this example I will be saving the thumbnail image as a .jpg. There are other blog posts that discuss how…

2

Working with SCVMM Powershell in C# – InvokePowerShell function

In may last post I used a function to allow C# to talk to SCVMM via powershell. This blog will demonstrate and show you how to create your own InvokePowerShell functions, and I’ll show you a way you can use this function with external powershell scripts so you can modify the powershell in your application…

2

Working with the SCVMM Templates via Powershell

Ok… this is my first blog post in quite some time. I’ve been doing some different coding and since my ASPNET blog posts helped people out, I thought I’d share what I’ve learned working with SCVMM.  In this post I’ll describe how to request and work with SCVMM template items via powershell and C#. This…

2