Jumlins TechBlog

The coding hell and the daily IT of Niklas Jumlin

July 13th, 2010 by Niklas Jumlin

You may get this message when you open up Exchange Management Console (EMC) for Exchange 2010.

"Connecting to remote server failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not Include any other information about the cause of the failure. It was running command 'Discover-ExchangeServer -UseWIA $true ..."

And you may also not be able to connect to your Exchange server from Exchange Management Shell together with the following error message:

"VERBOSE: Connecting to servername.domainname.local New-PSSession : [servername.domainname.local ] Connecting to remote server failed with the following error message : The WinRM client received an HTTP server error status (500), but the remote service did not include any other information about the cause of the failure."

(the same shows up 3 times)
Read the rest of this entry »

April 21st, 2010 by Niklas Jumlin

As far as I know, after some googling I couldn’t find any program that could take backups of Virtual Machines running on Hyper-V Core when the .VHD files were located on a Cluster Shared Storage.

If you read my previous post you can probably understand you aren’t able to install any advanced programs in the Core-version either because many required runtime files and libraries aren’t available.

Therefore I decided to write a PowerShell script that would export the machines to a network storage server.

I currently don’t have the required environment to develop or do any testing for this script. Therefore I cannot give you a customized script for your environment or needs.
Please also understand that this script is offered to you freely without any support. Feel free to make your own custom versions of it, while still mentioning me as author for the original script.

Updated 2010-05-12 14:40 UTC +1 (Various fixes/Added option to exclude some virtual machines)
Read the rest of this entry »

March 22nd, 2010 by Niklas Jumlin

Microsoft Windows Hyper-V Server 2008 R2 is a free version much like Windows Server 2008 R2 Core, except it comes with the Hyper-V role preconfigured.

The only thing you will have to take in consideration before installing such a server is that Hyper-V Server 2008 R2 only comes with a PowerShell/CMD-prompt. So to configure such a server you should learn some Windows commands and PowerShell cmdlets.

Read the rest of this entry »

March 7th, 2010 by Dennis

So in my desperate need to make some application shortcut look pretty in linux, i needed to extract the icon from a windows exe.

The icoutils package provides some very nice tools, one of them being wrestool which i used.
Read the rest of this entry »

January 19th, 2010 by Dennis

So i was troubled with how to open and display a psd file with PHP’s imagick component.

I came to the following result, apparently imagick imports all the layers, and by using the image iterator, you can go through them.
The iterator index 0 is the whole image merged together.

By using this simple code, notice the setIteratorIndex(), i succesfully displayed a few multilayered psd files.

// *********************
// *   Developed by:   *
// * Gofolo Consulting *
// *  www.gofolo.com   *
// *********************
$im = new Imagick('Visitkort_Ver1.psd');
header("Content-Type: image/png");
echo $im;
January 5th, 2010 by Niklas Jumlin

So I work with many servers and many customers. Usually I had to write a new backup script for every new customer and server. Therefore I figured I might as well just write a template that I can copy/paste everytime I have to implement a robocopy backup script. So here goes.

Read the rest of this entry »

December 23rd, 2009 by Niklas Jumlin

I’ve already mentioned I work with many customers and servers. Everytime I install a new server that hosts printers I have to handwrite a loginscript that connects/maps the printers on the clients. So I made a template for that as well. There is only a few variables needed to change for it to rock. Check it out.

Read the rest of this entry »

October 10th, 2009 by Dennis

So about a month ago we launched the latest customer project.
It’s a site focused on selling prints on canvas, which is an awesome product. Every functionality was developed in house. The site heavily uses javascript for the functionality for the cropping tool (beskæringsværktøj), which was a requirement for the site.
We chose to use javascript to avoid working with bloated flash or even java for that matter. And we achieved the result that was requested and even more.

September 17th, 2009 by Niklas Jumlin

I had a scenario where I wanted to see what was on the network at a location.

So I figured I’d just ping them all, man was this a pain or what! So I wrote a script for it instead. :)

And yes, I know there is alot of IP-scanners out there. But what hacker would I be if I used someone elses programs? I wanted my results in my own custom preferences.

The script was developed further on and now includes hostname lookup and logging to file with identification tags of the current place.
The script will ask all the necessary questions. Its quite useful. Check it out!

Read the rest of this entry »