Can’t upgrade to Windows 10?

If you’re one of thousands like me that can’t even get Windows Update to pop out upgrade to Windows 10 from Windows 8.1 (I failed to do so from tablet, ultrabook and desktop), you can try a two workarounds:

First one if you can’t upgrade to Windows 10:

  • Delete everything in %windir%\SoftwareDistribution\Download
  • Search in start for cmd, right click and Run as administrator, then type in uauclt.exe /updatenow and hit enter

Second one if you still can’t upgrade to Windows 10 (that one was the only one working for me):

And… that’s it. Installation after few more downloads, check ins etc. should proceed with Windows 10 upgrade.

Ajax.BeginForm on DropDownList change

Recently I’ve encountered a problem on how to perform AJAX POST with helpers provided by ASP.NET MVC 5 – Ajax.BeginForm on DropDownList change event.

Idea behind

Imagine you have ViewModel like this:

And MVC controller action like this:

My first thought was to to something like this (note I didn’t used TextBoxFor and DropdownListFor because I actually used Ajax.BeginForm to edit attributes of each item in collection of objects inside TestVM, not the TestVM attributes themselves):

However, what I kept receiving was a postback to the /Post address instead of making an AJAX call.
I’ve also added


in several places around thinking it might be rendered wrong but nothing changed.
I’ve also kept changing how, when and where is jquery and jquery-validate loaded but no luck.


In the end I gave a try something like this (kudos to one of fellow StackOverflow’ers for an answer, can’t find it at the moment):

Yes, that’s right – only change is replacing:

onchange = “this.form.submit();”


onchange = “$(this.form).submit();”

With that you can easily forget about button type=”submit” and move on to more natural way of updating records with Ajax.BeginForm on DropDownList change event.

Java exception sites with Powershell

Many of you have came into this problem if you happen to support lots of users with access to certain sites that use Java Applets. Recently there was a change in Security approach in JRE for Java 8 environment.
You actually can’t set up Java to ‘Medium’ Security preset, therefore any site that you want your users to use with Java, needs to be added to so called ‘Exception sites’ list.
You can of course do this manually but I’ll show how to add Java exception sites with Powershell.

Powershell solution

If you’re still struggling with XP stations in your environment, you can also go batch/cmd way:

Batch solution

Either way, make sure you’re allowing the exceptions only if needed to minimize the risk of using security flaws in Java Applets.
Also, if target PC happens to have more than one user (for ex. general user and IT) but don’t have scripts on start from domain set up, you should think of iterating through all of the users in %systemdrive%\Documents and Settings (Windows XP) or %systemdrive%\Users (Windows 7 and later).